home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / CDOSDSK5.ZIP / CDOSDSK5.TD0 / XIOS / PTERM.EQU < prev    next >
Encoding:
Text File  |  1989-01-26  |  3.6 KB  |  82 lines

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