Bootloader debug - use max sector read of 128 sectors

This commit is contained in:
Jeremy Soller 2016-09-30 09:41:17 -06:00
parent ba2d97ca01
commit e1025ed00f
2 changed files with 31 additions and 31 deletions

View file

@ -45,16 +45,16 @@ boot: ; dl comes with disk
; TODO rewrite to (eventually) move larger parts at once ; TODO rewrite to (eventually) move larger parts at once
; if that is done increase buffer_size_sectors in startup-common to that (max 0x80000 - startup_end) ; if that is done increase buffer_size_sectors in startup-common to that (max 0x80000 - startup_end)
load: load:
cmp cx, 64 cmp cx, 128
jbe .good_size jbe .good_size
pusha pusha
mov cx, 64 mov cx, 128
call load call load
popa popa
add ax, 64 add ax, 128
add dx, 64 * 512 / 16 add dx, 128 * 512 / 16
sub cx, 64 sub cx, 128
jmp load jmp load
.good_size: .good_size:
@ -63,31 +63,31 @@ load:
mov [DAPACK.count], cx mov [DAPACK.count], cx
mov [DAPACK.seg], dx mov [DAPACK.seg], dx
; mov bx, [DAPACK.addr + 2] mov bx, [DAPACK.addr + 2]
; call print_num call print_num
;
; mov bx, [DAPACK.addr] mov bx, [DAPACK.addr]
; call print_num call print_num
;
; mov al, '#' mov al, '#'
; call print_char call print_char
;
; mov bx, [DAPACK.count] mov bx, [DAPACK.count]
; call print_num call print_num
;
; mov al, ' ' mov al, ' '
; call print_char call print_char
;
; mov bx, [DAPACK.seg] mov bx, [DAPACK.seg]
; call print_num call print_num
;
; mov al, ':' mov al, ':'
; call print_char call print_char
;
; mov bx, [DAPACK.buf] mov bx, [DAPACK.buf]
; call print_num call print_num
;
; call print_line call print_line
mov dl, [disk] mov dl, [disk]
mov si, DAPACK mov si, DAPACK

View file

@ -14,7 +14,7 @@ startup:
; buffersize in multiple of sectors (512 Bytes) ; buffersize in multiple of sectors (512 Bytes)
; min 1 ; min 1
; max (0x70000 - startup_end) / 512 ; max (0x70000 - startup_end) / 512
buffer_size_sectors equ 64 buffer_size_sectors equ 128
; buffer size in Bytes ; buffer size in Bytes
buffer_size_bytes equ buffer_size_sectors * 512 buffer_size_bytes equ buffer_size_sectors * 512