summaryrefslogtreecommitdiff
path: root/src/macros/code.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2018-04-10 10:27:18 -0500
committerGitHub <noreply@github.com>2018-04-10 10:27:18 -0500
commit7cce23ef764bcc3bfaed851f8d72dcadde1400f6 (patch)
tree0371e3e80bcc1d99979f5dfb97e52ce668316b9b /src/macros/code.asm
parentd5e21ce300222d80c3e4c35ada6451a67817a9ea (diff)
parent217eff6eda39082b1f31a0bf5c28834e032ab43a (diff)
Merge pull request #40 from xCrystal/master
Create *_DECK_ID constants ; minor style changes
Diffstat (limited to 'src/macros/code.asm')
-rw-r--r--src/macros/code.asm32
1 files changed, 1 insertions, 31 deletions
diff --git a/src/macros/code.asm b/src/macros/code.asm
index 276bd6a..9e8a4ce 100644
--- a/src/macros/code.asm
+++ b/src/macros/code.asm
@@ -1,20 +1,3 @@
-INCROM: MACRO
-INCBIN "baserom.gbc", \1, \2 - \1
-ENDM
-
-const_def: MACRO
-if _NARG > 0
-const_value = \1
-else
-const_value = 0
-endc
-ENDM
-
-const: MACRO
-\1 EQU const_value
-const_value = const_value + 1
-ENDM
-
lb: MACRO ; r, hi, lo
ld \1, (\2) << 8 + ((\3) & $ff)
ENDM
@@ -39,19 +22,6 @@ else
endc
ENDM
-; the rst $38 handler is a single ret
+; the rst $38 handler is a single ret instruction
; probably used for testing purposes during development
debug_ret EQUS "rst $38"
-
-emptybank: MACRO
- rept $4000
- db $ff
- endr
-ENDM
-
-textpointer: MACRO
- dw ((\1 + ($4000 * (BANK(\1) - 1))) - (TextOffsets + ($4000 * (BANK(TextOffsets) - 1)))) & $ffff
- db ((\1 + ($4000 * (BANK(\1) - 1))) - (TextOffsets + ($4000 * (BANK(TextOffsets) - 1)))) >> 16
- const \1_
-GLOBAL \1_
-ENDM