diff options
| author | 2023-02-25 21:10:08 +0000 | |
|---|---|---|
| committer | 2023-02-25 21:10:08 +0000 | |
| commit | 481dc56522f99c2fb715e1bb477c1c95b6b77bed (patch) | |
| tree | e55ccbda55321edcadcb2b5eae39c1f4da80aec0 /asm/test.py | |
| parent | test repeat db (diff) | |
add db overwrite
Diffstat (limited to 'asm/test.py')
| -rw-r--r-- | asm/test.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/asm/test.py b/asm/test.py index 9e82f9d..ac93180 100644 --- a/asm/test.py +++ b/asm/test.py @@ -459,6 +459,19 @@ class DataTest(unittest.TestCase): self.assertEqual(ex(), ffi.RunRet.STOP) self.assertEqual(ex.getdat(0), [5,6,7,8,9]) self.assertEqual(ex.getdat(1), [0x10,0x11,0x12,0x13]) + def test_alloc_repeat_jump_skip(self): + p = Program() + p.parse_lines([ + "db d0 [1,2,3,4]", + "db d1 [10,11,12,13]", + "j .end", + "db d1 [5,6,7,8,9]", + ".end" + ]) + ex = ffi.Environment(p()) + self.assertEqual(ex(), ffi.RunRet.STOP) + self.assertEqual(ex.getdat(0), [1,2,3,4]) + self.assertEqual(ex.getdat(1), [0x10,0x11,0x12,0x13]) class SCEnv(ffi.Environment): def syscall(self, s): |
