summaryrefslogtreecommitdiff
path: root/src/arch/micro_asm_test.py
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-05-31 20:45:05 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-05-31 20:45:05 +0000
commitace2890f9fd10fb8b19004b80befc1c9d0948246 (patch)
treebbd2b34bd7404d77eae87b68082c6b38db9cd7f3 /src/arch/micro_asm_test.py
parentc432588981c2903fda4b00bf03ada3c2c04063f7 (diff)
downloadgem5-ace2890f9fd10fb8b19004b80befc1c9d0948246.tar.xz
Handle comments
--HG-- extra : convert_revision : 3f93baaf250922eb40d8718e978273b0def1e4dd
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)