From Lucho: smaller Protect/Restore 386 register macros.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@785 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-02-23 23:26:01 +00:00
parent f03eba4e15
commit decc3f5c37

View File

@ -146,18 +146,14 @@ irp_hi equ 26
push fs push fs
push gs push gs
%else %else
ror eax,16 push eax
push ax pop ax
ror eax,16 push ebx
ror ebx,16 pop bx
push bx push ecx
ror ebx,16 pop cx
ror ecx,16 push edx
push cx pop dx
ror ecx,16
ror edx,16
push dx
ror edx,16
%endif %endif
%endmacro %endmacro
@ -168,18 +164,14 @@ irp_hi equ 26
pop gs pop gs
pop fs pop fs
%else %else
ror edx,16 push dx
pop dx pop edx
ror edx,16 push cx
ror ecx,16 pop ecx
pop cx push bx
ror ecx,16 pop ebx
ror ebx,16 push ax
pop bx pop eax
ror ebx,16
ror eax,16
pop ax
ror eax,16
%endif %endif
%endmacro %endmacro