macros - itIsBrando/GBzLib GitHub Wiki
macros.inc
contains routines pseudo ops and other useful functions
List of routines:
- [ld_indirect](#ld_indirect r16, [hl])
- [sto_indirect](#sto_indirect [hl], r16)
- enum
- cart_name
- memcpy_vram
- vid_vram_readable
- Performs a
ld r16, [hl]
instruction -
ex:
ld_indirect bc, [hl]
Destroys: A
- Performs a
ld [hl], r16
pseudo opcode -
ex:
sto_indirect [hl], de
Destroys: A
- Creates an enumeration starting at
0
- Unlimited number of parameters
-
ex:
enum T1,T2,T3
Destroys: None
- For use in the header
- Automatically pads string with
0
s -
ex:
cart_name “Test Cart”
Destroys: None