Could someone please explain what the opcode 0x08
does on the LR35902 processor. The mnemonic is LD (a16),SP
.
I'm confused because the stack pointer is a 16-bit value but (a16)
is an address to somewhere only capable of storing 8 bits (I think!). I could guess that the first 8 bits are placed into (a16)
and the next are placed adjacent to those but I would like confirmation.