summaryrefslogtreecommitdiff
path: root/tools/asm_processor/asm_processor.py
diff options
context:
space:
mode:
authorRémi Calixte <remicalixte.rmc@gmail.com>2021-03-27 18:40:05 +0100
committerRémi Calixte <remicalixte.rmc@gmail.com>2021-03-27 18:40:05 +0100
commitda21d9dc67083e0076e478e332fbda9a9e493e70 (patch)
treef6825ded878bc15a8523c49d7f8d46360eb21eb7 /tools/asm_processor/asm_processor.py
parente831892511c1440df4e20f5ae1478c2b86d17060 (diff)
asm_processor: fix number of skip instructions
Diffstat (limited to 'tools/asm_processor/asm_processor.py')
-rwxr-xr-xtools/asm_processor/asm_processor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/asm_processor/asm_processor.py b/tools/asm_processor/asm_processor.py
index f0054204..5c909388 100755
--- a/tools/asm_processor/asm_processor.py
+++ b/tools/asm_processor/asm_processor.py
@@ -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: