Remove DOS lineendings
This commit is contained in:
parent
62a15d52bb
commit
e878ad0880
@ -1,33 +1,33 @@
|
|||||||
; important functions in this file: kprintf
|
; important functions in this file: kprintf
|
||||||
|
|
||||||
; print a word
|
; print a word
|
||||||
; in: ax
|
; in: ax
|
||||||
print16:
|
print16:
|
||||||
xchg ah,al
|
xchg ah,al
|
||||||
call print8
|
call print8
|
||||||
xchg ah,al
|
xchg ah,al
|
||||||
|
|
||||||
; print a byte
|
; print a byte
|
||||||
; in: al
|
; in: al
|
||||||
print8:
|
print8:
|
||||||
push ax ; avoid destroying ah
|
push ax ; avoid destroying ah
|
||||||
push bx
|
push bx
|
||||||
xor bx, bx
|
xor bx, bx
|
||||||
aam 16 ; high nibble moved into ah, low nibble into al
|
aam 16 ; high nibble moved into ah, low nibble into al
|
||||||
add ax, 0x3030
|
add ax, 0x3030
|
||||||
push ax
|
push ax
|
||||||
xchg al, ah
|
xchg al, ah
|
||||||
call .nib
|
call .nib
|
||||||
pop ax
|
pop ax
|
||||||
call .nib
|
call .nib
|
||||||
pop bx
|
pop bx
|
||||||
pop ax
|
pop ax
|
||||||
ret
|
ret
|
||||||
.nib:
|
.nib:
|
||||||
cmp al, 0x3a
|
cmp al, 0x3a
|
||||||
jl .out
|
jl .out
|
||||||
add al, 0x07
|
add al, 0x07
|
||||||
.out:
|
.out:
|
||||||
mov ah, 0x0e
|
mov ah, 0x0e
|
||||||
int 0x10
|
int 0x10
|
||||||
ret
|
ret
|
||||||
|
Loading…
Reference in New Issue
Block a user