asm_processor: fix number of skip instructions

This commit is contained in:
Rémi Calixte
2021-03-27 18:40:05 +01:00
parent e831892511
commit da21d9dc67

View File

@@ -824,7 +824,7 @@ def repl_float_hex(m):
def parse_source(f, opt, framepointer, input_enc, output_enc, print_source=None):
opt = "O4"
min_instr_count = 3 # idk
skip_instr_count = 2 # idk
skip_instr_count = 3 # mandatory instructions: push, pop and mov r0, 0
use_jtbl_for_rodata = False
if opt in ['O2', 'g3'] and not framepointer: