From 831df8bcb2717442a41464533bacf0a58a4af0ce Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 24 Oct 2014 01:42:05 +0200 Subject: working on bootloader (extended mem) (broken!) --- boot/disk_load_16.asm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'boot/disk_load_16.asm') diff --git a/boot/disk_load_16.asm b/boot/disk_load_16.asm index fe573ea..78aa22b 100644 --- a/boot/disk_load_16.asm +++ b/boot/disk_load_16.asm @@ -76,15 +76,15 @@ disk_load_lba: jc disk_read_error mov bx,es - add bx,0x0200 - cmp bx,0x9e00 + add bx,0x0800 + cmp bx,0x9000 je disk_load_finish mov es,bx mov bx,0 mov ax,[LBA] - add ax,16 + add ax,64 ; 64 sectors = 0x2000*4 bytes ;16 sectors this is 0x200*0x10 butes mov [LBA],ax jmp next_sectors_lba @@ -157,6 +157,7 @@ disk_load_chs: ;calculate chs call lba_to_chs + ; and now READ it! mov al,16 ;number of sectors to read mov dl,[BOOT_DRIVE] @@ -221,7 +222,7 @@ lba_to_chs: lba_adr: dw 0x10 ; size of packet ( 16 byte) - dw 16 ; number of sectors to read + dw 64 ; number of sectors to read ; target is 0x10000 -- cgit v1.2.3