Calculate read address

This commit is contained in:
Alex Kotov 2022-01-27 05:53:49 +05:00
parent 46d8376c36
commit 98dd913453
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 7 additions and 0 deletions

View File

@ -92,15 +92,22 @@ no_rem:
push %ax
call print_number_of_sectors
pop %ax
// BX - address
mov $STAGE2_BASE, %bx
read_loop:
add $512, %bx
dec %ax
test %ax, %ax
jz finish
push %ax
push %bx
mov $STAGE1_ADDR(reading_sector), %si
call print_str
pop %bx
pop %ax
jmp read_loop