|
That means that if you need to move the memory address memAddress into a register, you must use:
movw rN, #:lower16:memAddress movt rN, #:upper16:memAddress |
And the assembler has conveniently equated every label used in an assembler program to its corresponding memory address for us !!!
So if you need to move a memory address into a register, you can use its label to represent the memory address value !!!
|
How to run the program:
|
In class, I will show you that the register r0 will indeed contain the address 100228 which is the memory location of the value 4444 in the memory.