added some routines

This commit is contained in:
ceriel 1987-06-09 10:50:47 +00:00
parent 33bd1f17af
commit 7f64ff28c0
6 changed files with 52 additions and 0 deletions

View file

@ -49,3 +49,8 @@ fat.s
trp.s trp.s
stop.s stop.s
print.s print.s
ret6.s
ret8.s
lfr6.s
lfr8.s
retarea.s

10
mach/i86/libem/lfr6.s Normal file
View file

@ -0,0 +1,10 @@
.sect .text
.define .lfr6
.extern .retarea
.lfr6:
pop bx
push .retarea+4
push .retarea+2
push .retarea
jmp bx

11
mach/i86/libem/lfr8.s Normal file
View file

@ -0,0 +1,11 @@
.sect .text
.define .lfr8
.extern .retarea
.lfr8:
pop bx
push .retarea+6
push .retarea+4
push .retarea+2
push .retarea
jmp bx

10
mach/i86/libem/ret6.s Normal file
View file

@ -0,0 +1,10 @@
.sect .text
.define .ret6
.extern .retarea
.ret6:
pop bx
pop .retarea
pop .retarea+2
pop .retarea+4
jmp bx

11
mach/i86/libem/ret8.s Normal file
View file

@ -0,0 +1,11 @@
.sect .text
.define .ret8
.extern .retarea
.ret8:
pop bx
pop .retarea
pop .retarea+2
pop .retarea+4
pop .retarea+6
jmp bx

5
mach/i86/libem/retarea.s Normal file
View file

@ -0,0 +1,5 @@
.sect .text; .sect .rom; .sect .data; .sect .bss
.define .retarea
.retarea:
.space 8