summaryrefslogtreecommitdiff
path: root/src/arch/micro_asm_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/micro_asm_test.py')
-rwxr-xr-xsrc/arch/micro_asm_test.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/arch/micro_asm_test.py b/src/arch/micro_asm_test.py
index 4a643565c..816a74b71 100755
--- a/src/arch/micro_asm_test.py
+++ b/src/arch/micro_asm_test.py
@@ -68,17 +68,22 @@ class TestMacroop(Macroop):
assembler = MicroAssembler(TestMacroop, microops, Rom('main ROM'))
testAssembly = '''
+# Single line comment
+
def rom {
goo: bah
extern la: hoop 4*8, "a"
-};
+}; /* multiline comment on one line */
+
+/* multi line comment across lines
+ to make sure they work */
def macroop squishy {
.tweak
bah
.untweak
bah
- dah
+ dah # single line comment after something
.tweak
};
@@ -86,6 +91,6 @@ def macroop squashy {
bah
};
-def macroop (bar);
+def macroop jumper (bar);
'''
assembler.assemble(testAssembly)