added return.s
This commit is contained in:
parent
99f8e49e93
commit
7de2968629
|
@ -56,3 +56,4 @@ lfr6.s
|
|||
lfr8.s
|
||||
retarea.s
|
||||
blm.s
|
||||
return.s
|
||||
|
|
17
mach/i86/libem/return.s
Normal file
17
mach/i86/libem/return.s
Normal file
|
@ -0,0 +1,17 @@
|
|||
.define .sdret, .dsret, .sret, .dret, .cret
|
||||
.sect .text
|
||||
|
||||
.dsret:
|
||||
pop di
|
||||
.sret:
|
||||
pop si
|
||||
.cret:
|
||||
mov sp,bp
|
||||
pop bp
|
||||
ret
|
||||
|
||||
.sdret:
|
||||
pop si
|
||||
.dret:
|
||||
pop di
|
||||
jmp .cret
|
Loading…
Reference in a new issue