initial commit
This commit is contained in:
commit
08f66b73e1
10 changed files with 783 additions and 0 deletions
20
src/drivers/debug.asm
Normal file
20
src/drivers/debug.asm
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
|
||||
debug_puts:
|
||||
.next:
|
||||
lodsb ; AL = *SI++
|
||||
test al, al
|
||||
jz .done
|
||||
|
||||
mov dx, DEBUG_PORT
|
||||
|
||||
out dx, al
|
||||
jmp .next
|
||||
.done:
|
||||
ret
|
||||
|
||||
debug_putc:
|
||||
.next:
|
||||
mov dx, DEBUG_PORT
|
||||
out dx, al
|
||||
ret
|
||||
Loading…
Reference in a new issue