First page Back Continue Last page Overview Graphics
Write the assembler directives to define a constant, named FirstOffset, equal to 2510 and to reserve an uninitialized byte-sized memory location named “Offset”.
FirstOffset: equ 25
aOffset: ds.b 1
Write the executable assembly code that will read this constant (load the value into a register) and store the value at location “Offset”.
- LDAA #FirstOffset
- STAA aOffset
I've named the location “aOffset” to avoid conflicting with the name of the assembler directive offset.