Fixed a severe typo

svn path=/trunk/; revision=1774
This commit is contained in:
Eric Kohl 2001-04-03 20:18:21 +00:00
parent b63d768a18
commit 8d1e0c87b3

View file

@ -282,24 +282,26 @@ entry:
xor ebx,ebx
mov [_multiboot_mem_upper],ebx
mov [_multiboot_mem_lower],ebx
mov ax, 0xe801
int 015h
mov ax, 0xe801
int 015h
jc .oldstylemem
cmp ax, 0
je .cmem
and ebx, 0xffff
and ebx, 0xffff
shl ebx,6
mov [_multiboot_mem_upper],ebx
and eax,0xffff
add dword [_multiboot_mem_upper],eax
and eax,0xffff
add dword [_multiboot_mem_upper],eax
jmp .done_mem
.cmem
.cmem:
cmp cx, 0
je .oldstylemem
add edx, 0xFFFF
and edx, 0xFFFF
shl edx, 6
mov [_multiboot_mem_upper], edx
and ecx, 0xFFFF
@ -308,8 +310,8 @@ entry:
.oldstylemem:
;; int 15h opt e801 don't work , try int 15h, option 88h
mov ah, 088h
int 015h
mov ah, 088h
int 015h
cmp ax, 0
je .cmosmem
mov [_multiboot_mem_upper],ax
@ -320,7 +322,7 @@ entry:
mov al, 0x31
out 0x70, al
in al, 0x71
and eax, 0xffff ; clear carry
and eax, 0xffff ; clear carry
shl eax,8
mov [_multiboot_mem_upper],eax
xor eax,eax
@ -836,7 +838,7 @@ pe_load_module:
int 021h
%endif
mov edx, [_mb_bss_end_addr]
mov edx, [_mb_bss_end_addr]
cmp edx, 0
je .no_bss
mov edi, edx