Actually read sectors

This commit is contained in:
Alex Kotov 2022-01-27 05:57:11 +05:00
parent 98dd913453
commit f72c3e0a26
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 13 additions and 2 deletions

View File

@ -103,12 +103,23 @@ read_loop:
push %ax
push %bx
mov $STAGE1_ADDR(reading_sector), %si
call print_str
pop %bx
pop %ax
push %ax
push %bx
mov %al, %cl // Cylinder and sector
mov $0x02, %ah
mov $1, %al // Sectors count
mov $0x80, %dl // Drive
mov $0, %ch // Cylinder
mov $0, %dh // Head
int $0x13
pop %bx
pop %ax
jmp read_loop
finish: