Gotchas: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) m (→JP (HL)) |
||
Line 410: | Line 410: | ||
===JP (HL)=== |
===JP (HL)=== |
||
This is a bit of misleading syntax. For every other instruction, parentheses indicate a dereference of a pointer. |
This is a bit of misleading syntax. For every other instruction, parentheses indicate a dereference of a pointer. |
||
⚫ | |||
<lang Z80> |
|||
⚫ | |||
LD A,(HL) ;treating the value in HL as a memory address, load the byte at that address into A. |
LD A,(HL) ;treating the value in HL as a memory address, load the byte at that address into A. |
||
EX (SP),HL ;exchange HL with the top two bytes of the stack. |
EX (SP),HL ;exchange HL with the top two bytes of the stack. |