Add debug print
This commit is contained in:
parent
c360c96b69
commit
1e6ab47f40
|
@ -116,6 +116,10 @@ def step():
|
|||
|
||||
# 0nnn call_machine
|
||||
elif high_byte >> 4 == 0:
|
||||
# Our own non-standard debug
|
||||
if high_byte & 0xf == 0x1:
|
||||
print(low_byte & 0xf, data_registers[low_byte & 0xf])
|
||||
else:
|
||||
print("%03x: Can't call machine language!" % (ip - 2))
|
||||
sys.exit(1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue