mirror of https://github.com/tailix/loadwarka.git
Add func "print_reading_state"
This commit is contained in:
parent
8acc4e5eb5
commit
8e4ae3a2d5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue