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
@@ -27,6 +27,7 @@ function ilexec(lno, cmd, x, y, z, halt, data_override, bcheck, i, v1, v2, v3)
while(halt == 0) {
if(traceflag) printf("PC: %hu INSTR: %hu %hu %hu %hu\n", lno, cmd, x, y, z)
DMEM[0] = data_override = 0 # force the value at 0 to be always 0
DMEM[127] = 1 # force the value at 127 to always be 1
bcheck = (x < MEMLIMIT) && (y < MEMLIMIT) && (z < MEMLIMIT)
if(bcheck) {
v1 = DMEM[x]; v2 = DMEM[y]; v3 = DMEM[z] # prefetch the memory values