Fix stress cart text branch condition to produce boolean before JMP_IF_FALSE
This commit is contained in:
parent
91f67e3aaf
commit
db55207fb9
@ -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.
Loading…
x
Reference in New Issue
Block a user