vm: turns out adding and subtracting are different
parent
f284ac2b48
commit
7bd7d0234d
|
@ -102,7 +102,7 @@ void factor_vm::dispatch_signal_handler(cell *sp, cell *pc, cell handler)
|
|||
// Make a fake frame for the leaf procedure
|
||||
cell leaf_word = find_word_for_address(this, *pc);
|
||||
|
||||
cell newsp = *sp + 4 * sizeof(cell);
|
||||
cell newsp = *sp - 4 * sizeof(cell);
|
||||
*(cell*)(newsp + 3*sizeof(cell)) = 4*sizeof(cell);
|
||||
*(cell*)(newsp + 2*sizeof(cell)) = leaf_word;
|
||||
*(cell*) newsp = *pc;
|
||||
|
|
Loading…
Reference in New Issue