GB Programming: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Bbbbbbbbba
m (→‎A special jp: Change "jp (hl)" to "jp hl")
old->44HyXpert
Line 48: Line 48:
* A group of 32 bits is called a '''double word''' or '''dword'''.
* A group of 32 bits is called a '''double word''' or '''dword'''.
* A group of 64 bits is called a '''quadruple word''' or '''qword'''.
* A group of 64 bits is called a '''quadruple word''' or '''qword'''.
We will mostly be working with bytes, sometimes with words and rarely with nibbles. It is wery rare to work with other structures, so you may forget them if you will.
We will mostly be working with bytes, sometimes with words and rarely with nibbles. It is very rare to work with other structures, so you may forget them if you will.


Now, let's talk about '''hexadecimal'''. It is '''base 16''', so we will be working with 16 symbols : 0 1 2 3 4 5 6 7 8 9 A B C D E F. Again, we will prepend hex numbers with a $ to differentiate them.
Now, let's talk about '''hexadecimal'''. It is '''base 16''', so we will be working with 16 symbols : 0 1 2 3 4 5 6 7 8 9 A B C D E F. Again, we will prepend hex numbers with a $ to differentiate them.
Line 541: Line 541:
|Equivalent to ''ld a, (hl)'' then ''dec hl''.
|Equivalent to ''ld a, (hl)'' then ''dec hl''.
|}
|}
These are often used to operate on cHunks of memory.
These are often used to operate on chunks of memory.


===Overflow===
===Overflow===