GB Programming: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
>ISSOtm (Continued the page. Man, it's been a long time (in galaxy far, far away...)) |
>Flandre Scarlet m (→Memory) |
||
Line 448: | Line 448: | ||
To access the memory location pointed to by HL, just do... (hl)! It's the same with BC and DE. |
To access the memory location pointed to by HL, just do... (hl)! It's the same with BC and DE. |
||
So, to retrieve the value at memory address $ |
So, to retrieve the value at memory address $6511 into register A : ''ld a, ($6511)'' |
||
And to store the value of register C into the memory pointed to by HL : ''ld (hl), c'' |
And to store the value of register C into the memory pointed to by HL : ''ld (hl), c'' |