include some http ascii from the ROM

This commit is contained in:
Bryan Bishop
2013-03-01 21:39:27 -06:00
parent 570e6d43da
commit 393b4971f4
2 changed files with 45 additions and 4 deletions

View File

@@ -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)