Add printf facility for kernel to allow debug messages on phys. system
This commit is contained in:
parent
424e174523
commit
c5afc6ec61
3 changed files with 87 additions and 13 deletions
|
@ -16,13 +16,9 @@ init: cli
|
|||
mov ss, ax
|
||||
mov sp, ( stack+stacksize )
|
||||
|
||||
print_banner: mov si, banner
|
||||
mov ah, 0x0e
|
||||
xor bx, bx
|
||||
.loop: lodsb
|
||||
int 0x10
|
||||
cmp al, 0x0D
|
||||
jnz .loop
|
||||
call printf
|
||||
%defstr VERSIONSTR VERSION
|
||||
db "RDOS ", VERSIONSTR, 0x0A, 0x0D, 0
|
||||
|
||||
push dx
|
||||
call dinit
|
||||
|
@ -50,12 +46,10 @@ hlt: hlt
|
|||
%include "kernel/far.asm"
|
||||
%include "kernel/fcb.asm"
|
||||
%include "kernel/drive.asm"
|
||||
%include "kernel/printf.asm"
|
||||
|
||||
section .data
|
||||
|
||||
%defstr VERSIONSTR VERSION
|
||||
banner: db "RDOS ", VERSIONSTR, 0x0A, 0x0D
|
||||
|
||||
testfcb: db 0
|
||||
db "HELLO ", "COM"
|
||||
times 30 db 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue