You can tell the assembler to put a label at a certain location in memory by starting the line with =nnn where nnn is an integer and specifies an address. For example, to place a list of 3 integers at location 1000, do: =1000 NUMBERS: NUM 17 NUM 256 NUM -4 It is also common to tag at least the first instruction with a label, as shown above. The number 17 will be placed into word 1000, 256 into word 1001, and -4 into word 1002. Since addresses go from 0 up to 4095 inclusive, no number greater than 4095 may appear after the equals sign. Complete programs will be shown in the next section. |