nga-python: fix a bug in use of IntegerStack (#20)

FossilOrigin-Name: 42d2e7424dbb5d434a9123eed9976f81d6b920cd5beda654eb9ebcfe3a837091
This commit is contained in:
crc 2020-12-17 19:49:54 +00:00
parent 4e78a4ef15
commit d185b6e423

View file

@ -476,7 +476,7 @@ class Retro:
if self.ip == notfound:
print("ERROR: word not found!")
if self.ip == self.Cached["d:add-header"]:
self.Dictionary[self.extract_string(self.stack.stack[-3])] = self.memory[3]
self.Dictionary[self.extract_string(self.stack[-3])] = self.memory[3]
opcode = self.memory[self.ip]
I0 = opcode & 0xFF
I1 = (opcode >> 8) & 0xFF