summaryrefslogtreecommitdiff
path: root/boot/disk_load_16.asm
diff options
context:
space:
mode:
Diffstat (limited to 'boot/disk_load_16.asm')
-rw-r--r--boot/disk_load_16.asm15
1 files changed, 9 insertions, 6 deletions
diff --git a/boot/disk_load_16.asm b/boot/disk_load_16.asm
index 764b80d..fe573ea 100644
--- a/boot/disk_load_16.asm
+++ b/boot/disk_load_16.asm
@@ -10,7 +10,7 @@
STR_ERROR:
db "Disk Read Error",0
-STR_SPACE
+STR_SPACE:
db " ",0
STR_OK:
@@ -41,12 +41,13 @@ disk_load_lba:
pusha
- mov bx,0x1000 ;target es:bx
+ mov bx,0x1800 ;target es:bx
mov es,bx
mov bx,0
next_sectors_lba:
+ jmp skip_debug_lba
;show es - target
pusha
mov bx,es
@@ -59,6 +60,8 @@ disk_load_lba:
popa
;--
+ skip_debug_lba:
+
mov [lba_addr_sector],es
mov ax,[LBA]
mov [lba_first_sector],ax
@@ -93,11 +96,11 @@ disk_load_chs:
pusha
- mov bx,0x1000 ;target es:bx
+ mov bx,0x1800 ;target es:bx
mov es,bx
mov bx,0
- next_sectors_chs
+ next_sectors_chs:
jmp skip_debug
pusha
@@ -147,7 +150,7 @@ disk_load_chs:
call print_nextline
- skip_debug
+ skip_debug:
mov ax,[LBA]
@@ -225,7 +228,7 @@ lba_adr:
dw 0x0000 ; target addr. offset
lba_addr_sector:
- dw 0x1000 ; target addr. sector
+ dw 0x1800 ; target addr. sector
lba_first_sector:
dw 10 ; first sector to read