Add func "print_reading_state"

This commit is contained in:
Alex Kotov 2022-01-27 06:59:21 +05:00
parent 8acc4e5eb5
commit 8e4ae3a2d5
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 35 additions and 27 deletions

View File

@ -114,33 +114,7 @@ read_loop:
push %bx
push %cx
mov $reading_sector, %si
call print_str
pop %cx
pop %bx
pop %ax
push %ax
push %bx
push %cx
call print_number
mov $to_address, %si
call print_str
pop %cx
pop %bx
pop %ax
push %ax
push %bx
push %cx
mov %bx, %ax
call print_number
mov $newline, %si
call print_str
call print_reading_state
pop %cx
pop %bx
@ -252,4 +226,38 @@ print_number_of_sectors:
ret
// AX - current sector
// BX - current address
print_reading_state:
push %ax
push %bx
mov $reading_sector, %si
call print_str
pop %bx
pop %ax
push %ax
push %bx
call print_number
mov $to_address, %si
call print_str
pop %bx
// pop %ax
// push %ax
push %bx
mov %bx, %ax
call print_number
mov $newline, %si
call print_str
pop %bx
pop %ax
ret
_end: