implemented spec change: now cell 127 always return 1

This commit is contained in:
Luxferre
2025-04-30 11:04:43 +03:00
parent 0a3361f8ab
commit c4af5dec42
7 changed files with 37 additions and 30 deletions
+1
View File
@@ -62,6 +62,7 @@ def ilexec(lno:int, cmd:int=0, x:int=0, y:int=0, z:int=0):
if traceflag:
print(f'PC: {lno} INSTR: {cmd} {x} {y} {z}')
DMEM[0] = 0.0 # force the value at 0 to always be 0
DMEM[127] = 1.0 # force the value at 127 to always be 1
data_override = False
# perform a boundary check and prefetch the memory values
bcheck = True