First page Back Continue Last page Overview Graphics

Assembler: Location Counter


When assembling a three byte instruction, the location counter will increment by three bytes to accommodate the memory needed for the instruction. Separate location counters are used for different sections of the program. Typically one section is used for code and another for data. Actual locations are fixed during the linking process.

The following statement forces the location counter to start at offset address 10 hexadecimal.
org $10
An ORG is typically not needed since the linker will fix final addresses.