fix in assembly file
This commit is contained in:
parent
cd1d6382fd
commit
fa92ee4364
@ -103,9 +103,10 @@ class Ram(object):
|
||||
Run machine to completion
|
||||
'''
|
||||
while self.current < len(self.instr):
|
||||
print(self.current)
|
||||
print(*self.instr[self.current]['args'])
|
||||
print(self.current+2)
|
||||
#print(*self.instr[self.current]['args'])
|
||||
self.instr[self.current]['op'](self, *self.instr[self.current]['args'])
|
||||
print(self.work_registers)
|
||||
|
||||
def generate_graph(self):
|
||||
'''
|
||||
|
@ -58,7 +58,7 @@ JUMP(-38) // restart loop
|
||||
SUB(r6, 1, r9) // address symbol to copy on stack
|
||||
JE(r9, r5, -40) // inner loop condition, restart outer loop
|
||||
ADD(r11, 1, r11)
|
||||
ADD(i@r11, i@r9)
|
||||
ADD(i@r9, 0, r@r11)
|
||||
SUB(r9, 1, r9)
|
||||
JUMP(-4)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user