added return.s

This commit is contained in:
ceriel 1987-08-26 13:06:09 +00:00
parent 99f8e49e93
commit 7de2968629
2 changed files with 18 additions and 0 deletions

View file

@ -56,3 +56,4 @@ lfr6.s
lfr8.s
retarea.s
blm.s
return.s

17
mach/i86/libem/return.s Normal file
View 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