summaryrefslogtreecommitdiff
path: root/conio.inc
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-17 06:42:00 +0000
committerhpa <hpa>2004-12-17 06:42:00 +0000
commit1ad9233d7287c8e98bda8774a6eafd2a3e988b89 (patch)
tree1d288d0b1fbb8c7d6df445f9c3c5bfe6abfc5817 /conio.inc
parent7da4d04f57c549c1e6cf850d75400ded5ac82cb8 (diff)
downloadsyslinux-1ad9233d7287c8e98bda8774a6eafd2a3e988b89.tar.gz
Actually use sections, and move common variables into the .inc files.syslinux-2.20-pre3
The .bss section at the beginning of each .asm file is now downright tiny.
Diffstat (limited to 'conio.inc')
-rw-r--r--conio.inc22
1 files changed, 22 insertions, 0 deletions
diff --git a/conio.inc b/conio.inc
index f90e2698..c0dceccf 100644
--- a/conio.inc
+++ b/conio.inc
@@ -23,6 +23,8 @@
;
; loadkeys: Load a LILO-style keymap; SI and DX:AX set by searchdir
;
+ section .text
+
loadkeys:
and dx,dx ; Should be 256 bytes exactly
jne loadkeys_ret
@@ -370,3 +372,23 @@ debug_tracer: pushad
popad
ret
%endif ; DEBUG_TRACERS
+
+ section .bss
+ alignb 2
+NextCharJump resw 1 ; Routine to interpret next print char
+CursorDX equ $
+CursorCol resb 1 ; Cursor column for message file
+CursorRow resb 1 ; Cursor row for message file
+ScreenSize equ $
+VidCols resb 1 ; Columns on screen-1
+VidRows resb 1 ; Rows on screen-1
+
+; Serial console stuff...
+BaudDivisor resw 1 ; Baud rate divisor
+FlowControl equ $
+FlowOutput resb 1 ; Outputs to assert for serial flow
+FlowInput resb 1 ; Input bits for serial flow
+FlowIgnore resb 1 ; Ignore input unless these bits set
+
+TextAttribute resb 1 ; Text attribute for message file
+DisplayMask resb 1 ; Display modes mask