File tree 2 files changed +8
-0
lines changed 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ def assemble(text_program):
38
38
labels = {}
39
39
instructions = []
40
40
sideset_count = 0
41
+ sideset_enable = 0
41
42
for line in text_program .split ("\n " ):
42
43
line = line .strip ()
43
44
if not line :
Original file line number Diff line number Diff line change @@ -44,6 +44,13 @@ def testNop(self):
44
44
self .assertAssemblesTo (".side_set 1\n nop side 1" , [0b101_10000_010_00_010 ])
45
45
self .assertAssemblesTo (".side_set 1\n nop side 1 [1]" , [0b101_10001_010_00_010 ])
46
46
47
+ def testSidesetOpt (self ):
48
+ self .assertAssemblesTo (".side_set 1 opt\n nop side 1" , [0b101_11000_010_00_010 ])
49
+ self .assertAssemblesTo (
50
+ ".side_set 1 opt\n nop side 0 [1]" , [0b101_10001_010_00_010 ]
51
+ )
52
+ self .assertAssemblesTo (".side_set 1 opt\n nop [1]" , [0b101_00001_010_00_010 ])
53
+
47
54
def testJmp (self ):
48
55
self .assertAssemblesTo ("l:\n jmp l" , [0b000_00000_000_00000 ])
49
56
self .assertAssemblesTo ("l:\n jmp 7" , [0b000_00000_000_00111 ])
You can’t perform that action at this time.
0 commit comments