summaryrefslogtreecommitdiff
path: root/preprocessor.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-03-01 21:39:27 -0600
committerBryan Bishop <kanzure@gmail.com>2013-03-01 21:40:01 -0600
commit393b4971f42bcbf46c0e01eb4c8caeccd4c44323 (patch)
tree2bd8cacb2673db0d25b2de2fca17cbeeb0f56c84 /preprocessor.py
parent570e6d43da445504dce72028a6dadd23b961b16e (diff)
include some http ascii from the ROM
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)