mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 14:40:25 +02:00
* stack frame eliminated also in fpc_longJmp for i8086
git-svn-id: trunk@25804 -
This commit is contained in:
parent
0d24dcc21b
commit
acbf73ec6e
@ -34,11 +34,10 @@ end;
|
|||||||
|
|
||||||
Procedure fpc_longJmp (Var S : Jmp_buf; value : smallint); assembler;nostackframe;[Public, alias : 'FPC_LONGJMP']; compilerproc;
|
Procedure fpc_longJmp (Var S : Jmp_buf; value : smallint); assembler;nostackframe;[Public, alias : 'FPC_LONGJMP']; compilerproc;
|
||||||
asm
|
asm
|
||||||
push bp
|
mov si, sp
|
||||||
mov bp, sp
|
|
||||||
|
|
||||||
mov bx, ss:[bp + 6 + extra_param_offset] // S
|
mov bx, ss:[si + 4 + extra_param_offset] // S
|
||||||
mov ax, ss:[bp + 4 + extra_param_offset] // value
|
mov ax, ss:[si + 2 + extra_param_offset] // value
|
||||||
test ax, ax
|
test ax, ax
|
||||||
jnz @@L1
|
jnz @@L1
|
||||||
inc ax
|
inc ax
|
||||||
|
Loading…
Reference in New Issue
Block a user