From 278eca6c56c1ec4637ba76c3fb8c45e5b7439abb Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 10 Jun 1987 14:52:39 +0000 Subject: [PATCH] modified print to use _write --- mach/i86/libem/print.s | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/mach/i86/libem/print.s b/mach/i86/libem/print.s index 5cb8c04b0..09f12ed37 100644 --- a/mach/i86/libem/print.s +++ b/mach/i86/libem/print.s @@ -2,10 +2,6 @@ .sect .text .define printc,printd,prints -SIO_D = 0xD8 -SIO_S = 0xDA -TXRDY = 0x01 - ! argument in ax ! uses bx prints: @@ -38,10 +34,14 @@ printd: ! argument in ax printc: push ax -1: - inb SIO_S - andb al,TXRDY - jz 1b - pop ax - outb SIO_D + mov bx,sp + mov ax,1 + push ax + push bx + push ax + call _write + pop bx + pop bx + pop bx + pop bx ret -- 2.34.1