modified print to use _write
This commit is contained in:
parent
91bdfb9a12
commit
278eca6c56
1 changed files with 10 additions and 10 deletions
|
@ -2,10 +2,6 @@
|
||||||
.sect .text
|
.sect .text
|
||||||
.define printc,printd,prints
|
.define printc,printd,prints
|
||||||
|
|
||||||
SIO_D = 0xD8
|
|
||||||
SIO_S = 0xDA
|
|
||||||
TXRDY = 0x01
|
|
||||||
|
|
||||||
! argument in ax
|
! argument in ax
|
||||||
! uses bx
|
! uses bx
|
||||||
prints:
|
prints:
|
||||||
|
@ -38,10 +34,14 @@ printd:
|
||||||
! argument in ax
|
! argument in ax
|
||||||
printc:
|
printc:
|
||||||
push ax
|
push ax
|
||||||
1:
|
mov bx,sp
|
||||||
inb SIO_S
|
mov ax,1
|
||||||
andb al,TXRDY
|
push ax
|
||||||
jz 1b
|
push bx
|
||||||
pop ax
|
push ax
|
||||||
outb SIO_D
|
call _write
|
||||||
|
pop bx
|
||||||
|
pop bx
|
||||||
|
pop bx
|
||||||
|
pop bx
|
||||||
ret
|
ret
|
||||||
|
|
Loading…
Reference in a new issue