X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=freeldr%2Ffreeldr%2Fmem.S;h=770a1defc42825bb07e7b454cdb9d6210a1c5de7;hp=631eb3515da5f46bd0f48044ccd9c017b98d9932;hb=5d289c12b217f3959b7b415c1dafbeaafe538139;hpb=4750bc0160dddc6a9e5e7e9939b7291337d04c33 diff --git a/freeldr/freeldr/mem.S b/freeldr/freeldr/mem.S index 631eb3515da..770a1defc42 100644 --- a/freeldr/freeldr/mem.S +++ b/freeldr/freeldr/mem.S @@ -46,19 +46,19 @@ EXTERN(_GetExtendedMemorySize) cmpw $0,%ax je .cmem - andl $0xffff,%ebx + movzwl %bx,%ebx shll $6,%ebx - andl $0xffff,%eax - add %ebx,%eax + movzwl %ax,%eax + addl %ebx,%eax jmp .done_mem .cmem: cmpw $0,%cx je .oldstylemem - andl $0xffff,%edx + movzwl %dx,%edx shll $6,%edx - andl $0xffff,%ecx + movzwl %cx,%ecx addl %ecx,%edx movl %edx,%eax jmp .done_mem