From 1ad9233d7287c8e98bda8774a6eafd2a3e988b89 Mon Sep 17 00:00:00 2001 From: hpa Date: Fri, 17 Dec 2004 06:42:00 +0000 Subject: Actually use sections, and move common variables into the .inc files. The .bss section at the beginning of each .asm file is now downright tiny. --- conio.inc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'conio.inc') 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 -- cgit v1.2.1