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

  1. ; ROSDATA.EQU
  2. ; Equate file defining the variables at 40:0 in an IBM AT
  3. ; Last mod: 2 JUL 85, JMB
  4.  
  5.     dseg
  6. PC_SEGMENT        equ    40h        ; PC ROS data area
  7.  
  8. ;EQUIPMENT:
  9. ;----------
  10. rs232_base_40        equ    word ptr .00h
  11. printer_base_40        equ    word ptr .08h
  12. extended_BIOS_40    equ    word ptr .0Eh    ; PS/2 extended data
  13.  
  14. equip_flag_40        equ    word ptr .10h
  15. ;   15 14 13 12 11 10  9  8     7  6  5  4  3  2  1  0
  16. ;   --------------------------------------------------
  17. ;    |  |  |  |  |  |  |  |     |  |  |  |  |  |  |  +- 1 = IPL from floppy
  18. ;    |  |  |  |  |  |  |  |     |  |  |  |  |  |  +- unused
  19. ;    |  |  |  |  |  |  |  |     |  |  |  |  |  +-| planer RAM: 00=16K
  20. ;    |  |  |  |  |  |  |  |     |  |  |  |  +----| 01=32K, 10=48K, 11=64K
  21. ;    |  |  |  |  |  |  |  |     |  |  |  +-| init. video mode: 00=ega,
  22. ;    |  |  |  |  |  |  |  |     |  |  +----| 01=color40, 10=color80, 11=mono
  23. ;    |  |  |  |  |  |  |  |     |  +-| num. of floppies: 00=1, 01=2,
  24. ;    |  |  |  |  |  |  |  |     +----| 10=3, 11=4, only if bit 0 = 1
  25. ;    |  |  |  |  |  |  |  |
  26. ;    |  |  |  |  |  |  |  +- unused
  27. ;    |  |  |  |  |  |  +-|
  28. ;    |  |  |  |  |  +----| number of RS232 cards
  29. ;    |  |  |  |  +-------|
  30. ;    |  |  |  +- game I/O attchd
  31. ;    |  |  +- unused
  32. ;    |  +-| number of parallel cards
  33. ;    +----|
  34.  
  35. mfg_tst_40        equ    byte ptr .12h
  36. memory_size_40        equ    word ptr .13h
  37. mfg_err_flag_40        equ    byte ptr .15h
  38.  
  39. ;KEYBOARD:
  40. ;---------
  41. kb_flag_40        equ    byte ptr .17h
  42. kb_flag_1_40        equ    byte ptr .18h
  43. alt_input_40        equ    byte ptr .19h
  44. buffer_head_40        equ    word ptr .1Ah
  45. buffer_tail_40        equ    word ptr .1Ch
  46. kb_buffer_40        equ    word ptr .1Eh
  47. kb_buffer_end_40    equ    word ptr .3Eh
  48. kb_flag_3_40        equ    byte ptr .96h    ; enhanced keyboard status
  49.  
  50. ;DISKETTE:
  51. ;---------
  52. seek_status_40        equ    byte ptr .3Eh
  53. motor_status_40        equ    byte ptr .3Fh
  54. motor_count_40        equ    byte ptr .40h
  55. diskette_status_40    equ    byte ptr .41h
  56. cmd_block_40        equ    byte ptr .42h
  57. hd_error_40        equ    byte ptr .42h
  58. nec_status_40        equ    byte ptr .42h
  59.  
  60. ;VIDEO:
  61. ;------
  62. crt_mode_40        equ    byte ptr .49h
  63. crt_cols_40        equ    word ptr .4Ah
  64. crt_len_40        equ    word ptr .4Ch
  65. crt_start_40        equ    word ptr .4Eh
  66. cursor_posn_40        equ    word ptr .50h
  67. cursor_mode_40        equ    word ptr .60h
  68. active_page_40        equ    byte ptr .62h
  69. addr_6845_40        equ    word ptr .63h
  70. crt_mode_set_40        equ    byte ptr .65h
  71. crt_pallette_40        equ    byte ptr .66h
  72.  
  73. ;POST:
  74. ;-----
  75. io_rom_init_40        equ    word ptr .67h
  76. io_rom_seg_40        equ    word ptr .69h
  77. intr_flag_40        equ    byte ptr .6Bh
  78.  
  79. ;TIMER:
  80. ;------
  81. timer_low_40        equ    word ptr .6Ch
  82. timer_high_40        equ    word ptr .6Eh
  83. timer_ofl_40        equ    byte ptr .70h
  84.  
  85. ;SYSTEM:
  86. ;-------
  87. bios_break_40        equ    byte ptr .71h
  88. reset_flag_40        equ    word ptr .72h
  89.  
  90. ;HARD FILE:
  91. ;----------
  92. disk_status1_40        equ    byte ptr .74h
  93. hf_num_40        equ    byte ptr .75h
  94. control_byte_40        equ    byte ptr .76h
  95. port_off_40        equ    byte ptr .77h
  96.  
  97. ;TIME_OUT:
  98. ;---------
  99. print_tim_out_40    equ    byte ptr .78h
  100. rs232_tim_out_40    equ    byte ptr .7Ch
  101.  
  102. ;KEYBOARD 2:
  103. ;-----------
  104. buffer_start_40        equ    word ptr .80h
  105. buffer_end_40        equ    word ptr .82h
  106.  
  107. ;EGA:
  108. ;----
  109. rows_40            equ    byte ptr .84h
  110. info_40            equ    byte ptr .87h
  111.  
  112. ;FLOPPY 2:
  113. ;---------
  114. lastrate_40        equ    byte ptr .8Bh
  115.  
  116. ;HARD FILE 2:
  117. ;------------
  118. hf_status_40        equ    byte ptr .8Ch
  119. hf_error_40        equ    byte ptr .8Dh
  120. hf_int_flag_40        equ    byte ptr .8Eh
  121. hf_cntrl_40        equ    byte ptr .8Fh
  122.  
  123. ;FLOPPY 3:
  124. ;---------
  125. dsk_state_40        equ    byte ptr .90h
  126. dsk_state_st_40        equ    byte ptr .92h
  127. dsk_trk_40        equ    byte ptr .94h
  128.  
  129. ;KEYBOARD LED:
  130. ;-------------
  131. kb_flag_2_40        equ    byte ptr .97h
  132.  
  133. ;CLOCK:
  134. ;------
  135. user_flag_40        equ    word ptr .98h
  136. user_flag_seg_40    equ    word ptr .9Ah
  137. rtc_low_40        equ    word ptr .9Ch
  138. rtc_high_40        equ    word ptr .9Eh
  139. rtc_wait_flag_40    equ    byte ptr .0A0h
  140.  
  141. ;EGA 2:
  142. ;------
  143. save_ptr_40        equ    dword ptr .0A8h
  144.  
  145. ; RESERVED USED BY SOME LARGE HARD DISKS
  146. ;---------------------------------------
  147. hd_param_40        equ    word ptr .0EAh
  148.  
  149. ;EXTRA (at 50:0):
  150. status_byte_50        equ    byte ptr .0
  151.  
  152. ; END of ROSDATA.EQU
  153.