From decc3f5c37f1d147a32f8f8f8607ae81d9b05839 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Mon, 23 Feb 2004 23:26:01 +0000 Subject: [PATCH] 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 --- hdr/stacks.inc | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/hdr/stacks.inc b/hdr/stacks.inc index a74c9f6..1321b55 100644 --- a/hdr/stacks.inc +++ b/hdr/stacks.inc @@ -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