summaryrefslogtreecommitdiff
path: root/sdcc-sdcc_z80_enable_incbin.patch
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-08-11 22:52:30 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-08-12 00:33:23 +0200
commit80a5ffad6e6a2e0bb8faab202e101feee9061a06 (patch)
treec1a371862afde2b46a3bce712984204d088a6fdc /sdcc-sdcc_z80_enable_incbin.patch
parent9b81852097e4a8bfde2c09a28783c6d2c7e1e543 (diff)
WIP: Add some gameboy tooling
Diffstat (limited to 'sdcc-sdcc_z80_enable_incbin.patch')
-rw-r--r--sdcc-sdcc_z80_enable_incbin.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sdcc-sdcc_z80_enable_incbin.patch b/sdcc-sdcc_z80_enable_incbin.patch
new file mode 100644
index 0000000..d2918f1
--- /dev/null
+++ b/sdcc-sdcc_z80_enable_incbin.patch
@@ -0,0 +1,26 @@
+diff --git a/sdas/asz80/z80pst.c b/sdas/asz80/z80pst.c
+index 66f481b..0e91b43 100644
+--- a/sdas/asz80/z80pst.c
++++ b/sdas/asz80/z80pst.c
+@@ -44,20 +44,21 @@ struct mne mne[] = {
+ { NULL, "ABS", S_ATYP, 0, A_ABS },
+ { NULL, "NOPAG", S_ATYP, 0, A_NOPAG },
+ { NULL, "PAG", S_ATYP, 0, A_PAG },
+
+
+ { NULL, ".page", S_PAGE, 0, 0 },
+ { NULL, ".title", S_HEADER, 0, O_TITLE },
+ { NULL, ".sbttl", S_HEADER, 0, O_SBTTL },
+ { NULL, ".module", S_MODUL, 0, 0 },
+ { NULL, ".include", S_INCL, 0, 0 },
++ { NULL, ".incbin", S_INCL, 0, I_BNRY },
+ { NULL, ".area", S_AREA, 0, 0 },
+
+ { NULL, ".org", S_ORG, 0, 0 },
+ { NULL, ".radix", S_RADIX, 0, 0 },
+ { NULL, ".globl", S_GLOBL, 0, 0 },
+ { NULL, ".local", S_LOCAL, 0, 0 },
+ { NULL, ".if", S_CONDITIONAL, 0, O_IF },
+ { NULL, ".iff", S_CONDITIONAL, 0, O_IFF },
+ { NULL, ".ift", S_CONDITIONAL, 0, O_IFT },
+ { NULL, ".iftf", S_CONDITIONAL, 0, O_IFTF },