Some shit software I was messing with on gb
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.
 
 
 
 

31 lines
534 B

if !def(_video_inc_)
_video_inc_ equ 0
bgmap_width equ 32
bgmap_height equ 32
screen_width equ 20
screen_height equ 18
tile_height equ 8
len_1bpp_tile equ 1 * tile_height
len_2bpp_tile equ 2 * tile_height
tile equs "+ len_2bpp_tile *"
tiles equs "* len_2bpp_tile"
coord: MACRO
if _NARG < 4
ld \1, (\3) * screen_width + (\2) + w_tilemap
else
ld \1, (\3) * screen_height + (\2) + (\4)
endc
ENDM
bgcoord: MACRO
if _NARG < 4
ld \1, (\3) * bgmap_width + (\2) + v_bgmap1
else
ld \1, (\3) * bgmap_width + (\2) + (\4)
endc
ENDM
endc