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
@@ -42,6 +42,7 @@ function createmu808(lineOut, charOut, lineIn) {
var halt = 0, data_override = 0, bcheck, i, v1, v2, v3
while(halt == 0) {
v1 = v2 = v3 = data_override = DMEM[0] = 0 /* force the value at 0 to be always 0 */
DMEM[127] = 1 /* force the value at 127 to be always 1 */
if(lno == 0) halt = 1 /* immediate instruction */
if(runlimit > 0 && runcount > runlimit) {
halt = 1