From 3f063a7a05bb1d17d693aaebded785f51e08c043 Mon Sep 17 00:00:00 2001 From: crc Date: Fri, 8 Oct 2021 09:47:26 +0000 Subject: [PATCH] update python implementation to support image changes FossilOrigin-Name: bd8f98ee3677556c37efd199bed4d188f64b2c2119761a5351dc5c4778ac480d --- vm/nga-python/retro.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 vm/nga-python/retro.py diff --git a/vm/nga-python/retro.py b/vm/nga-python/retro.py old mode 100644 new mode 100755 index 5c2b8fb..783a1ac --- a/vm/nga-python/retro.py +++ b/vm/nga-python/retro.py @@ -149,7 +149,7 @@ class Retro: Dictionary = dict() header = self.memory[2] while header != 0: - named = self.extract_string(header + 3) + named = self.extract_string(header + 4) if not named in Dictionary: Dictionary[named] = header header = self.memory[header] @@ -162,7 +162,7 @@ class Retro: header = self.memory[2] Done = False while header != 0 and not Done: - if named == self.extract_string(header + 3): + if named == self.extract_string(header + 4): self.Dictionary[named] = header Done = True else: @@ -679,7 +679,7 @@ class Retro: else: for token in line.split(): self.inject_string(token, self.memory[7]) - self.stack.push(1024) + self.stack.push(self.memory[7]) self.execute(self.Cached["interpreter"], self.Cached["not_found"]) def run_file(self, file): @@ -695,7 +695,7 @@ class Retro: elif in_block: for token in line.strip().split(): self.inject_string(token, self.memory[7]) - self.stack.push(1024) + self.stack.push(self.memory[7]) self.execute( self.Cached["interpreter"], self.Cached["not_found"] )