From 03cb792d510a067d4ffead2c8088ee953d70c2cb Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 24 Oct 2014 16:03:23 +0200 Subject: Minor changes/fixes in bootloader --- boot/disk_load_16.asm | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'boot/disk_load_16.asm') diff --git a/boot/disk_load_16.asm b/boot/disk_load_16.asm index 5eb43a9..ae34360 100644 --- a/boot/disk_load_16.asm +++ b/boot/disk_load_16.asm @@ -54,11 +54,20 @@ disk_load_lba: pusha mov bx,es + ;mov al,bh + ;call print_hex_byte + + ;mov al,bl + ;call print_hex_byte + + mov bx,[LBA] + mov al,bh call print_hex_byte mov al,bl call print_hex_byte + popa ;-- @@ -79,16 +88,17 @@ disk_load_lba: mov bx,es add bx,0x0800 - cmp bx,0x9000 - je disk_load_finish - - mov es,bx - mov bx,0 mov ax,[LBA] add ax,64 ; 64 sectors = 0x2000*4 bytes ;16 sectors this is 0x200*0x10 butes mov [LBA],ax + cmp bx,0x9000 + je disk_load_finish + + mov es,bx ;next target es:bx + mov bx,0 + jmp next_sectors_lba ;####################### -- cgit v1.2.3