Disk reading partly done
This commit is contained in:
@@ -48,6 +48,31 @@ os_print_string:
|
||||
popa
|
||||
ret
|
||||
|
||||
; This is similar to the previous, however it prints
|
||||
; raw output (including null) and prints the number
|
||||
; of character defined by ax
|
||||
; IN:
|
||||
; SI = pointer to start of string to be printed
|
||||
; AX = Length of string to print
|
||||
text_raw_output:
|
||||
pusha
|
||||
|
||||
mov di, ax
|
||||
|
||||
mov ah, 0Eh ; int 10h teletype function, we're telling the BIOS we will print something
|
||||
|
||||
.repeat:
|
||||
lodsb ; Get char from si into al
|
||||
int 10h ; Otherwise, print it
|
||||
dec di
|
||||
cmp di, 00h
|
||||
je .done
|
||||
jne .repeat
|
||||
.done:
|
||||
popa
|
||||
ret
|
||||
|
||||
|
||||
; --------------------------------------------
|
||||
|
||||
os_print_newline:
|
||||
|
||||
Reference in New Issue
Block a user