summaryrefslogtreecommitdiff
path: root/boot/print_string_16.asm
diff options
context:
space:
mode:
Diffstat (limited to 'boot/print_string_16.asm')
-rw-r--r--boot/print_string_16.asm47
1 files changed, 47 insertions, 0 deletions
diff --git a/boot/print_string_16.asm b/boot/print_string_16.asm
index 5d8ad5c..92b4ea0 100644
--- a/boot/print_string_16.asm
+++ b/boot/print_string_16.asm
@@ -26,3 +26,50 @@ print_string:
popa ;pop all registers
ret ;return to caller
+
+print_nextline:
+
+ pusha
+
+ mov ah,0x3
+ mov bh,0
+ int 0x10
+
+ mov ah,0x2
+ mov bh,0
+ inc dh
+ mov dl,0
+ int 0x10
+ popa
+ ret
+
+
+;print byte from al to screen
+ print_hex_byte:
+
+ pusha
+
+ mov [.temp],al
+ shr al,4
+ cmp al,10
+ sbb al,69h
+ das
+
+ mov ah,0Eh
+ int 10h
+
+ mov al,[.temp]
+ ror al,4
+ shr al,4
+ cmp al,10
+ sbb al,69h
+ das
+
+ mov ah,0Eh
+ int 10h
+
+popa
+
+ ret
+
+ .temp db 0