Fixed to build after removing a.out suppot.

This commit is contained in:
nyan 2002-09-24 02:17:13 +00:00
parent 9109f97088
commit 6200eda7bd

View File

@ -29,7 +29,7 @@
# Screen defaults and assumptions.
.`ifdef' PC98
.ifdef PC98
.set SCR_MAT,0xe1 # Mode/attribute
.else
.set SCR_MAT,0x7 # Mode/attribute
@ -39,7 +39,7 @@
# BIOS Data Area locations.
.`ifdef' PC98
.ifdef PC98
.set BDA_POS,0x53e # Cursor position
.else
.set BDA_SCR,0x449 # Video mode
@ -56,7 +56,7 @@ crt_putchr: movb 0x4(%esp,1),%al # Get character
movb $SCR_MAT,%ah # Mode/attribute
movl $BDA_POS,%ebx # BDA pointer
movw (%ebx),%dx # Cursor position
.`ifdef' PC98
.ifdef PC98
movl $0xa0000,%edi
.else
movl $0xb8000,%edi # Regen buffer (color)
@ -66,7 +66,7 @@ crt_putchr: movb 0x4(%esp,1),%al # Get character
.endif
crt_putchr.1: cmpb $0xa,%al # New line?
je crt_putchr.2 # Yes
.`ifdef' PC98
.ifdef PC98
movw %dx,%cx
movb %al,(%edi,%ecx,1) # Write char
addl $0x2000,%ecx
@ -102,13 +102,13 @@ crt_putchr.3: cmpb $SCR_ROW,%dh # Beyond screen?
rep # Scroll
movsl # screen
movb $' ',%al # Space
.`ifdef' PC98
.ifdef PC98
xorb %ah,%ah
.endif
movb $SCR_COL,%cl # Columns to clear
rep # Clear
stosw # line
.`ifdef' PC98
.ifdef PC98
movw $(SCR_ROW-1)*SCR_COL*2,%dx
.else
movb $SCR_ROW-1,%dh # Bottom line