Fix stress cart text branch condition to produce boolean before JMP_IF_FALSE

This commit is contained in:
2026-03-24 13:40:51 +00:00
parent 91f67e3aaf
commit db55207fb9
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ fn heavy_load(rom: &mut Vec<u8>) {
// y = (i * 30 + t) % 180
rom.extend(asm("GET_LOCAL 1\nPUSH_I32 30\nMUL\nGET_GLOBAL 0\nADD\nPUSH_I32 180\nMOD"));
// string (toggle between "stress" and "frame")
rom.extend(asm("GET_LOCAL 1\nPUSH_I32 1\nBIT_AND"));
rom.extend(asm("GET_LOCAL 1\nPUSH_I32 1\nBIT_AND\nPUSH_I32 0\nNEQ"));
let jif_text_alt_offset = rom.len() + 2;
rom.extend(asm("JMP_IF_FALSE 0"));
rom.extend(asm("PUSH_CONST 0")); // "stress"
Binary file not shown.