Bochs BIOS: helper functions lcmpul and lsrul need to preserve EBX.
This fixes issue #268.
This commit is contained in:
parent
5489f18ff2
commit
140e2e96ae
Binary file not shown.
Binary file not shown.
@ -455,12 +455,14 @@ typedef unsigned long Bit32u;
|
||||
;; cmp function
|
||||
lcmpl:
|
||||
lcmpul:
|
||||
push ebx
|
||||
and eax, #0x0000FFFF
|
||||
shl ebx, #16
|
||||
or eax, ebx
|
||||
shr ebx, #16
|
||||
SEG SS
|
||||
cmp eax, dword ptr [di]
|
||||
pop ebx
|
||||
ret
|
||||
|
||||
;; sub function
|
||||
@ -519,6 +521,7 @@ typedef unsigned long Bit32u;
|
||||
|
||||
;; sr function
|
||||
lsrul:
|
||||
push ebx
|
||||
mov cx,di
|
||||
jcxz lsr_exit
|
||||
and eax, #0x0000FFFF
|
||||
@ -530,6 +533,7 @@ typedef unsigned long Bit32u;
|
||||
mov ebx, eax
|
||||
shr ebx, #16
|
||||
lsr_exit:
|
||||
pop ebx
|
||||
ret
|
||||
|
||||
;; sl function
|
||||
|
Loading…
Reference in New Issue
Block a user