Index: /trunk/src/VBox/Devices/PC/BIOS-new/support.asm
===================================================================
--- /trunk/src/VBox/Devices/PC/BIOS-new/support.asm	(revision 41653)
+++ /trunk/src/VBox/Devices/PC/BIOS-new/support.asm	(revision 41654)
@@ -86,5 +86,4 @@
                 push    edx
                 push    ecx
-                push    ebx
 
                 rol     eax, 16
@@ -98,5 +97,4 @@
                 mul     ecx                 ; eax * ecx -> edx:eax
 
-                pop     ebx
                 pop     ecx
 
@@ -115,4 +113,6 @@
 ; memset taking a far pointer.
 ;
+; cx, es may be modified; di is preserved
+;
 ; @returns  dx:ax unchanged.
 ; @param    dx:ax   Pointer to the memory.
@@ -121,8 +121,5 @@
 ;
 _fmemset_:
-                push    es
                 push    di
-                push    cx
-                pushf
 
                 mov     es, dx
@@ -132,8 +129,5 @@
                 xchg    al, bl
 
-                popf
-                pop     cx
                 pop     di
-                pop     es
                 ret
 
@@ -141,4 +135,6 @@
 ;;
 ; memset taking far pointers.
+;
+; cx, es may be modified; si, di are preserved
 ;
 ; @returns  dx:ax unchanged.
@@ -150,10 +146,7 @@
                 push    bp
                 mov     bp, sp
-                push    es
                 push    di
                 push    ds
                 push    si
-                push    cx
-                popf
 
                 mov     es, dx
@@ -164,10 +157,7 @@
                 rep     movsb
 
-                pushf
-                pop     cx
                 pop     si
                 pop     ds
                 pop     di
-                pop     es
                 leave
                 ret
