use pusha and popa instructions, and on the proper place

This commit is contained in:
ceriel 1989-02-08 15:47:22 +00:00
parent cd70a74d25
commit dcde07e7a7
2 changed files with 5 additions and 16 deletions

View file

@ -29,7 +29,6 @@ ngi.s
nop.s nop.s
print.s print.s
rck.s rck.s
return.s
rmi.s rmi.s
rmu.s rmu.s
rol.s rol.s

View file

@ -8,13 +8,6 @@
! May only be called with error no's <16 ! May only be called with error no's <16
.sect .text .sect .text
.error: .error:
push ebp
push esi
push edi
push edx
push ecx
push ebx
push eax
mov ecx,eax mov ecx,eax
mov ebx,1 mov ebx,1
sal ebx,cl sal ebx,cl
@ -24,19 +17,16 @@
jne 2f jne 2f
call .trp call .trp
2: 2:
pop eax
pop ebx
pop ecx
pop edx
pop edi
pop esi
pop ebp
ret ret
.Xtrp: .Xtrp:
pusha
cmp eax,16 cmp eax,16
jge 1f jge 1f
call .error call .error
popa
ret ret
1: 1:
jmp .trp call .trp
popa
ret