aboutsummaryrefslogtreecommitdiffstats
path: root/asm/test.py
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2023-02-12 18:06:08 +0000
committerGravatar Peter McGoron 2023-02-12 18:06:08 +0000
commit7b3eaf9b4f9aaec02ce63be638de373397fa9460 (patch)
tree8231125e0b6d1dad534fae72fe9880ba1bda33cb /asm/test.py
parentjump tests (diff)
add pseudoinstructions that compile to regular instructions
Diffstat (limited to 'asm/test.py')
-rw-r--r--asm/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/asm/test.py b/asm/test.py
index 00e9e5e..4008e3d 100644
--- a/asm/test.py
+++ b/asm/test.py
@@ -50,7 +50,7 @@ class PushTest(unittest.TestCase):
p = Program(reglen=0x8000000)
p.parse_asm_line("PUSH r134217727")
b = p()
- self.assertEqual(b, b'\x01\xFC\x87\xbf\xbf\xbf\xbf\x00')
+ self.assertEqual(b, b'\x01\xFC\x8f\xbf\xbf\xbf\xbf\x00')
def test_compile_push(self):
p = Program()
@@ -318,7 +318,7 @@ class LabelTest(unittest.TestCase):
"CLB l0",
"add r0 r0 -1",
"add r1 r1 1",
- "jg l0 r0 0"
+ "jl l0 0 r0"
])
ex = ffi.Environment(p())
self.assertEqual(ex(), ffi.RunRet.STOP)