svn commit: r200776 - head/sys/boot/pc98/kgzldr
Takahashi Yoshihiro
nyan at FreeBSD.org
Mon Dec 21 14:59:23 UTC 2009
Author: nyan
Date: Mon Dec 21 14:59:23 2009
New Revision: 200776
URL: http://svn.freebsd.org/changeset/base/200776
Log:
Move cursor position after putting a character.
MFC after: 1 week
Modified:
head/sys/boot/pc98/kgzldr/crt.s
Modified: head/sys/boot/pc98/kgzldr/crt.s
==============================================================================
--- head/sys/boot/pc98/kgzldr/crt.s Mon Dec 21 14:42:35 2009 (r200775)
+++ head/sys/boot/pc98/kgzldr/crt.s Mon Dec 21 14:59:23 2009 (r200776)
@@ -75,5 +75,15 @@ crt_putchr.3: cmpw $SCR_ROW*SCR_COL*2,%d
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
More information about the svn-src-head
mailing list