home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Library / Manuels & Misc / Assembly / AOA.ZIP / SAMPLES / BIOSVARS.ASM next >
Encoding:
Assembly Source File  |  1994-07-22  |  2.2 KB  |  120 lines

  1. ; This file is an assembly listing that provides the offsets for some
  2. ; variables used by the PC's BIOS
  3.  
  4. biosvars    segment    at 40h
  5.  
  6. ; COM port base addresses.  The following four words provide the
  7. ; base I/O addresses of COM1: through COM4:
  8.  
  9. com1Base    word    ?
  10. com2Base    word    ?
  11. com3Base    word    ?
  12. com4Base    word    ?
  13.  
  14. ; LPT base addresses.  The following four word provide the base addresses
  15. ; for up to four printer ports.
  16.  
  17. lpt1Base    word    ?
  18. lpt2Base    word    ?
  19. lpt3Base    word    ?
  20. lpr4Base    word    ?
  21.  
  22. ; The following word contains the installed hardware flag.  This is somewhat
  23. ; obsolete on new machines.
  24.  
  25. InstalledHW    word    ?
  26.  
  27. ; The following location is not used by most BIOSes.
  28.  
  29.         byte    ?
  30.  
  31.  
  32. MemorySize    dword    ?
  33.  
  34. ; The following bytes contain status information about the keyboard.
  35.  
  36. KbdFlags1    byte    ?        ;Shift/ctrl/alt/etc.
  37. KbdFlags2    byte    ?
  38. AltKpdEntry    byte    ?
  39.  
  40. HeadPtr        word    ?
  41. TailPtr        word    ?
  42. TypeAhead    word    ?
  43.  
  44.  
  45. FloppyRecal    byte    ?
  46. FloppyMotor    byte    ?
  47. MotorOffCntr    byte    ?
  48. FloppyPrevSt    byte    ?
  49. FloppyCtrlrSt    byte    ?
  50.  
  51. DisplayMode    byte    ?
  52. NumberColumns    word    ?
  53. RegenBufLen    word    ?
  54. RegenBufAdrs    word    ?
  55. CursorPosn    word    8 dup (?)
  56. CursorType    word    ?
  57. CurDispPage    byte    ?
  58. VideoAdrs    word    ?
  59. Cur3x8Setting    byte    ?
  60. Cur3x9Setting    byte    ?
  61. ResetAdrs    dword    ?
  62.         byte    ?
  63. Timer        dword    ?
  64. TimerOverflw    byte    ?
  65. BrkKeyState    byte    ?
  66. ResetFlag    word    ?
  67.  
  68. HardDiskStat    byte    ?
  69. HardDiskNum    byte    ?
  70. HardDiskCtrl    byte    ?
  71. HardDiskCtrlr    byte    ?
  72.  
  73. lpt1TimeOut    byte    ?
  74. lpt2TimeOut    byte    ?
  75. lpt3TimeOut    byte    ?
  76. lpt4TimeOut    byte    ?
  77.  
  78. Com1TimeOut    byte    ?
  79. Com2TimeOut    byte    ?
  80. Com3TimeOut    byte    ?
  81. Com4TimeOut    byte    ?
  82.  
  83. KbdBufStart    word    ?
  84. KbdBufEnd    word    ?
  85.  
  86. VideoRows    byte    ?
  87. CharHeight    byte    ?
  88. VideoState1    byte    ?
  89. VideoState2    byte    ?
  90.         word    ?
  91. MediaControl    byte    ?
  92. HardDiskCStat    byte    ?
  93. HardDiskErr    byte    ?
  94. HardDiskInt    byte    ?
  95.  
  96. Drv0MediaState    byte    ?
  97. Drv1MediaState    byte    ?
  98.         word    ?
  99.  
  100. Drv0CurTrk    byte    ?
  101. Drv1CurTrk    byte    ?
  102.  
  103. KbdModeFlags    byte    ?
  104. KbdLEDFlags    byte    ?
  105.  
  106. UserWaitAdrs    dword    ?
  107. UserWaitCnt    dword    ?
  108. WaitActiveFlg    byte    ?
  109.         byte    7 dup (?)
  110.  
  111. VideoParms    dword    ?
  112. EGASaveArea    dword    ?
  113. AlphaCharGen    dword    ?
  114. GraphCharGen    dword    ?
  115. SecndarySavePtr    dword    ?
  116.         byte    68 dup (?)
  117. PrtScStatus    byte    ?
  118. biosvars    ends
  119.         end
  120.