Fix a stack bug in survey_baremetal. I'm not sure how my tests weren't
crashing, but I won't bother digging further.
This commit is contained in:
Kartik K. Agaram 2021-05-14 08:09:04 -07:00
parent a42f4613f7
commit 63a9263aff
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@ -184,6 +184,7 @@ subx-survey: # infile: (addr buffered-file), out: (addr buffered-file)
81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp
$subx-survey:end:
# . reclaim locals
81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0x18/imm32 # add to esp
03/add 0/mod/indirect 5/rm32/.disp32 . . 4/r32/esp Max-labels/disp32 # add *Max-labels to esp
03/add 0/mod/indirect 5/rm32/.disp32 . . 4/r32/esp Input-size/disp32 # add *Input-size to esp
# . restore registers