Gotchas: Difference between revisions

36 bytes removed ,  1 year ago
m
Line 464:
=={{header|Z80 Assembly}}==
===JP (HL)===
This is a bit of misleading syntax. For every other instruction, parentheses indicate a dereference of a pointer.
<lang Z80>LD HL,(&C000) ;load the word at address &C000 into HL
LD A,(HL) ;treating the value in HL as a memory address, load the byte at that address into A.
1,489

edits