You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
317 B

; Stores a 16-bit value into the address stored in HL
; \1 The value to store (immediate or register)
MACRO STORE16
ld [hl], HIGH(\1)
inc hl
ld [hl], LOW(\1)
ENDM
; Stores an 8-bit value into memory
; \1 Write address
; \2 8-bit value
MACRO SET8
ld h, HIGH(\1)
ld l, LOW(\1)
ld [hl], \2
ENDM