http://git.dujemihanovic.i2p?p=nameless-os.git;a=blob;f=boot/x86/stage3/print.s;hb=HEAD
search: re summary | shortlog | log | commit | commitdiff | tree history | raw | HEAD Merge branch 'drive' [nameless-os.git] / boot / x86 / stage3 / print.s 1 ; Routines for printing 2 3 print_str: 4 push ax 5 push bx 6 push si 7 mov ah, 0xe 8 xor bh, bh 9 mov bl, 0xf 10 .loop: 11 lodsb 12 cmp al, 0 13 je .done 14 int 0x10 15 jmp .loop 16 .done: 17 pop si 18 pop bx 19 pop ax 20 ret 21 22 ; AL - nibble to print 23 ; CF - clear prints low nibble, set prints high nibble 24 print_nibble: 25 print hex_delm 26...