Mess around with macro definitions and add rgbfix command (doesn't interfere with verification)

This commit is contained in:
MineRobber9000 2018-04-29 11:48:18 +00:00
parent 7053bd4acf
commit 916b6911e3
3 changed files with 13 additions and 11 deletions

View File

@ -3,6 +3,7 @@ OBJFILES:= $(ASMFILES:.asm=.o)
tetris.gb: $(OBJFILES)
rgblink -O baserom.gb -o tetris.gb $(OBJFILES)
rgbfix -t "TETRIS" -r 0x00 -n 0x01 -l 0x01 tetris.gb
%.o: %.asm
rgbasm -o $@ $^

12
macros.asm Executable file → Normal file
View File

@ -1,11 +1 @@
fill: MACRO
REPT \2
db \1
ENDR
ENDM
fillnull: MACRO
fill $00,\1
ENDM
fillff: MACRO
fill $ff,\1
ENDM
INCLUDE "macros/utility.asm"

11
macros/utility.asm Executable file
View File

@ -0,0 +1,11 @@
fill: MACRO
REPT \2
db \1
ENDR
ENDM
fillnull: MACRO
fill $00,\1
ENDM
fillff: MACRO
fill $ff,\1
ENDM