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 gs
%else
ror eax,16
push ax
ror eax,16
ror ebx,16
push bx
ror ebx,16
ror ecx,16
push cx
ror ecx,16
ror edx,16
push dx
ror edx,16
push eax
pop ax
push ebx
pop bx
push ecx
pop cx
push edx
pop dx
%endif
%endmacro
@ -168,18 +164,14 @@ irp_hi equ 26
pop gs
pop fs
%else
ror edx,16
pop dx
ror edx,16
ror ecx,16
pop cx
ror ecx,16
ror ebx,16
pop bx
ror ebx,16
ror eax,16
pop ax
ror eax,16
push dx
pop edx
push cx
pop ecx
push bx
pop ebx
push ax
pop eax
%endif
%endmacro