home *** CD-ROM | disk | FTP | other *** search
- ; PTERM.EQU
-
- ; PHYSICAL CONSOLE STRUCTURES
- ; PC_ pointer in SI
- ;----------------------------
-
- PC_CONS equ byte ptr[si] ; physical console number
- PC_CURSOR equ word ptr 1[si] ; physical serial cursor
- PC_CURCOL equ byte ptr 1[si]
- PC_CURROW equ byte ptr 2[si]
- PC_ATTR equ byte ptr 3[si] ; physical attribute
- PC_BUSY equ byte ptr 4[si] ; serial output busy flag
- PC_TMPSTR equ byte ptr 5[si] ; temporary string buffer
- PC_CURPOS equ byte ptr 15[si] ; cursor position esc sequence
- ;fixed location
- PC_KFLAG equ byte ptr 23[si] ; keyboard state flag
-
- PC_KFLAG1 equ byte ptr 24[si] ; keyboard state flag 1
- PC_KFLAG3 equ byte ptr 25[si] ; keyboard state flag 3
- PC_ALT_INPUT equ byte ptr 26[si] ; alt numpad input char
- PC_ATTRIB equ byte ptr 27[si] ; 4 byte set attribute string
- PC_TOP_SCREEN equ byte ptr 31[si] ; top screen VC number
- PC_NASCIITABLE equ word ptr 32[si] ; national table
- PC_SHIFTTABLE equ word ptr 34[si] ; national shift table
- PC_CTRLTABLE equ word ptr 36[si] ; national ctrl table
- PC_DEADTABLE equ word ptr 38[si] ; national daed keys
- PC_LAST_DKEY equ word ptr 40[si] ; last deadkey
- PC_DKEY_BUFF equ byte ptr 42[si] ;
- PC_DKEY_SCAN equ byte ptr 43[si] ; last dead key scan code
- PC_NAT equ byte ptr 44[si] ; national/U.S. selected
- PC_LANGUAGE equ byte ptr 45[si] ; current language
- PC_NATNLSTAT equ byte ptr 46[si] ; 7/8, euro/US kbd , euro/us screen
- PC_NATNLMODE equ byte ptr 47[si] ; mode 0 through 5
- PC_TMP_US_FLG equ byte ptr 48[si] ; disable 7->8 xlt
- PC_KBD_TYPE equ byte ptr 49[si] ; extended / normal kbd
- PC_KBD_SCAN equ byte ptr 50[si] ; raw scan
- PC_SCAN_CODE equ byte ptr 51[si] ; converted scan
- PC_SHIFTLOCK equ byte ptr 52[si] ; special shiftlock flags
- PC_ESHIFTLOCK equ byte ptr 53[si] ;
- PC_LASTCHAR equ byte ptr 54[si] ; ESCAPE last char to printer
-
- ; VIRTUAL CONSOLE STRUCTURES
- ;----------------------------
-
- ;redefinded VC_MODE bit
- BEL_BIT equ 08h ; Sound bell flag
-
- VC_ANSI_SIZE equ 16 ; Maximum of 16 Characters
-
- VC_CURSOR equ word ptr 0[bx] ; cursor row,column
- VC_CUR_COL equ byte ptr 0[bx]
- VC_CUR_ROW equ byte ptr 1[bx]
- VC_ROWS equ word ptr 2[bx]
- VC_ROWSB equ byte ptr 2[bx]
- VC_CRT_SEG equ word ptr 4[bx] ; base of screen memory
- VC_ATTRIB equ byte ptr 6[bx] ; current char attribute
- VC_MODE equ byte ptr 7[bx] ; current mode settings
- VC_WIDTH equ byte ptr 8[bx] ; screen width
- VC_NUMBER equ byte ptr 9[bx] ; virtual console number
- VC_SAVE_CURSOR equ word ptr 10[bx] ; cursor save location
- VC_VECTOR equ word ptr 12[bx] ; console state vector
- VC_CRT_ROWS equ byte ptr 14[bx] ; 24 / 25 lines
- VC_CUR_TYPE equ word ptr 15[bx] ; cursor type mono/color
- VC_MX equ byte ptr 17[bx] ; mutual exclusion semaphore
- VC_OFFSET equ word ptr 18[bx]
- VC_VMODE equ byte ptr 20[bx] ; ROS video mode
- VC_ANSI_COUNT equ word ptr 21[bx] ; options count
- VC_ANSI_BUF equ byte ptr 23[bx] ; 16 byte ansi buffer
-
- VC_CRT_IDX equ byte ptr 39[bx] ; virtual port 3b4h
- VC_CRT_DATA equ byte ptr 40[bx] ; virtual port 3b5h
- VC_CRT_STAT equ byte ptr 60[bx] ; virtual port 3bah
- VC_PAGE_SAVE equ word ptr 61[bx] ; page save area
- VC_INSTALLED equ byte ptr 73[bx] ; flush installed
- VC_PFK_TBL equ word ptr 74[bx] ; prog func key base
- VC_PFK_PTR equ word ptr 76[bx] ; pointer to pfk table
- VC_PFK_COUNT equ byte ptr 78[bx] ; pfk count down
- VC_PFK_EXP equ byte ptr 79[bx] ; pfk on/off
- VC_BLINK equ byte ptr 80[bx] ; blink enable/disable
- VC_UPDATE equ byte ptr 81[bx] ; update requested
- VC_SL_FLAGS equ word ptr 82[bx] ; dispatch status line flags
- VC_ROS_CURSOR equ word ptr 84[bx] ; dispatch ROS cursor position
-
- UPDATE_SL equ 1
-