summaryrefslogtreecommitdiff
path: root/preprocessor.py
diff options
context:
space:
mode:
authorSanky <gsanky@gmail.com>2013-03-02 21:40:02 +0100
committerSanky <gsanky@gmail.com>2013-03-02 21:40:02 +0100
commitaec5a652c8ed7d482330dd9254b48e5a7141866d (patch)
tree06678a02f28e62a39b2c61fb576468afc335f634 /preprocessor.py
parent5af3f92d9080cb874b6c46aa5b52c2a6cdab24f0 (diff)
parent9ee0600524218d47ce2faa9b122a8e2b498e9b66 (diff)
Merge http://github.com/yenatch/pokecrystal
Diffstat (limited to 'preprocessor.py')
-rw-r--r--preprocessor.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/preprocessor.py b/preprocessor.py
index 3ef9e1e88..cb09fb898 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -599,6 +599,11 @@ def read_line(l):
if "INCLUDE \"" in l:
include_file(asm)
+ # ascii string macro preserves the bytes as ascii (skip the translator)
+ elif len(asm) > 6 and "\tascii " in [asm[:7], "\t" + asm[:6]]:
+ asm = asm.replace("ascii", "db", 1)
+ sys.stdout.write(asm)
+
# convert text to bytes when a quote appears (not in a comment)
elif "\"" in asm:
quote_translator(asm)