mirror of https://github.com/pret/pokecrystal.git
hldims, bcdims, dedims
This commit is contained in:
parent
145a1c3441
commit
1321a70029
|
@ -27,6 +27,15 @@ bgcoord: MACRO
|
||||||
endc
|
endc
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
hldims EQUS "dims hl,"
|
||||||
|
bcdims EQUS "dims bc,"
|
||||||
|
dedims EQUS "dims de,"
|
||||||
|
|
||||||
|
dims: MACRO
|
||||||
|
; register, width, height
|
||||||
|
lb \1, \3, \2
|
||||||
|
ENDM
|
||||||
|
|
||||||
dwcoord: MACRO
|
dwcoord: MACRO
|
||||||
; x, y
|
; x, y
|
||||||
rept _NARG / 2
|
rept _NARG / 2
|
||||||
|
@ -53,8 +62,3 @@ lda_coord: MACRO
|
||||||
ld a, [(\2) screenrows + (\1) + \3]
|
ld a, [(\2) screenrows + (\1) + \3]
|
||||||
endc
|
endc
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
ld_dims: MACRO
|
|
||||||
; register, width, height
|
|
||||||
lb \1, \3, \2
|
|
||||||
ENDM
|
|
||||||
|
|
Loading…
Reference in New Issue