mirror of
https://github.com/lloeki/python-dcpu_16.git
synced 2025-12-06 09:54:39 +01:00
fix [next word + register] not using reg value
This commit is contained in:
parent
a2d39a818b
commit
0b1f2a84ef
1 changed files with 1 additions and 1 deletions
|
|
@ -198,8 +198,8 @@ def register_value(c, code):
|
||||||
@pointerize
|
@pointerize
|
||||||
def next_word_plus_register_value(c, code):
|
def next_word_plus_register_value(c, code):
|
||||||
"""[next word + register]"""
|
"""[next word + register]"""
|
||||||
v = "c.m[0x%04X + 0x%01X]" % (c.m[c.pc], code-0x0F)
|
|
||||||
c.pc += 1
|
c.pc += 1
|
||||||
|
v = "c.m[0x%04X + c.r[0x%01X]]" % (c.m[c.pc], code-0x0F)
|
||||||
if c.debug: log(v)
|
if c.debug: log(v)
|
||||||
return v
|
return v
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue