From 393b4971f42bcbf46c0e01eb4c8caeccd4c44323 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 1 Mar 2013 21:39:27 -0600 Subject: include some http ascii from the ROM --- preprocessor.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'preprocessor.py') 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) -- cgit v1.2.3