fixed Q logic

This commit is contained in:
Luxferre
2022-08-11 11:55:32 +03:00
parent f68975f5c8
commit ef0aee083f
+1 -1
View File
@@ -565,7 +565,7 @@ int main(int argc, char* argv[]) {
} else if(!ram.II && (instr == 0xFFU || instr == INS_QUIT)) { /* if not in II mode, process EOF or Q instruction: trigger interpreter loop */
cputc(CR); /* echo CR */
cputc(LF); /* echo LF */
ram.cmdbuf[+ram.ibp] = 0; /* end program with 0 */
ram.cmdbuf[++ram.ibp] = INS_QUIT; /* end program with INS_QUIT */
ram.IM = 1; /* set the mandatory interpretation mode flag */
equi_main_loop(); /* and run the interpreter loop */
cputc(CR); /* echo CR */