From eaf52f2239e5cd254ea0b97f34a07e21c694c5e0 Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Tue, 29 Dec 2009 04:23:46 +0000 Subject: [PATCH] MFC: revision 200776 Move cursor position after putting a character. --- sys/boot/pc98/kgzldr/crt.s | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/boot/pc98/kgzldr/crt.s b/sys/boot/pc98/kgzldr/crt.s index e028bc8e672..35c1fc2dfe7 100644 --- a/sys/boot/pc98/kgzldr/crt.s +++ b/sys/boot/pc98/kgzldr/crt.s @@ -75,5 +75,15 @@ crt_putchr.3: cmpw $SCR_ROW*SCR_COL*2,%dx stosw # line movw $(SCR_ROW-1)*SCR_COL*2,%dx crt_putchr.4: movw %dx,(%ebx) # Update position + shrw $1,%dx +crt_putchr.5: inb $0x60,%al # Move cursor + testb $0x04,%al + jz crt_putchr.5 + movb $0x49,%al + outb %al,$0x62 + movb %dl,%al + outb %al,$0x60 + movb %dh,%al + outb %al,$0x60 popa # Restore ret # To caller