home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / programming / misc_programming / data80.src < prev    next >
Text File  |  1989-12-28  |  28KB  |  505 lines

  1.  
  2. ifdef A386
  3. biosdata segment   use16 at 40h
  4. else
  5. biosdata segment   at 40h
  6. endif
  7. ;
  8. ;        SEGMENT 40h, OFFSET 0 - 100h
  9. ;
  10. ;        RS232 PORT ADDRESS     00h
  11. ;
  12. comm_addr          dw  1 dup(?)         ;first port address of rs232
  13.                    dw  1 dup(?)         ;second port address of rs232
  14.                    dw  2 dup(?)         ;resvered
  15. ;
  16. ;        FIRST PRIORITY PORT IS 03f8h, THE SECOND IS 02f8h
  17. ;
  18. ;        PRINTER PORT ADDRESS   08h
  19. ;
  20. prn_addr           dw  1 dup(?)         ;first port address of printer
  21.                    dw  1 dup(?)         ;second port address of printer
  22.                    dw  1 dup(?)         ;third port address of printer
  23. ;
  24. ;        03bch, 0378h, 0278h
  25. ;
  26. ;        EXTENDED BIOS DATA AREA       0eh
  27. ;
  28. extend_bios        dw  1 dup(?)         ;extended BIOS data area segment
  29. ;
  30. ;        EQUIPMENT FLAG         10h
  31. ;
  32. equip_flag         dw  1 dup(?)         ;bit 15, 14 -- # of printer
  33.                                         ;bit 13 -- internal modem installed
  34.                                         ;bit 12 -- reserved
  35.                                         ;bit 11 - 9 -- # of rs232 card
  36.                                         ;bit 8 -- reserved
  37.                                         ;bit 7, 6 -- # of diskette drive
  38.                                         ;if bit 0 = 1 then 00 = 1 drive
  39.                                         ;                  01 = 2 drives
  40.                                         ;                  10 = 3 drives
  41.                                         ;                  11 = 4 drives
  42.                                         ;bit 5, 4 -- video mode
  43.                                         ;      00 -- special card
  44.                                         ;      01 -- 40 * 25 CGA
  45.                                         ;      10 -- 80 * 25 CGA
  46.                                         ;      11 -- 80 * 25 mono
  47.                                         ;bit 3 -- reserved
  48.                                         ;bit 2 -- pointing device installed
  49.                                         ;bit 1 -- math. coprocessor installed
  50.                                         ;bit 0 -- diskette drive installed
  51. sys_switch         db  1 dup(?)         ; bit 7  --  reserved
  52.                     ; bit 6  --  1  CGA
  53.                     ;            0  MDA/EGA
  54.                     ; bit 5  --  manufacture
  55.                     ; bit 4  --  SW 1-6  1  smart on
  56.                     ;              0  smart off
  57.                     ; bit 3 - 2  SW 1-7, 1-8    
  58.                     ;  0 0         ROM BIOS, 640K(mode 1)
  59.                     ;  0 1         ROM BIOS, 896K(mode 3)
  60.                     ;  1 0         RAM BIOS, 640K(mode 2)
  61.                     ;  1 1         RAM BIOS, 896K(mode 4)
  62.                     ; bit 1 - 0  reserved
  63. ;
  64. ;        MEMORY SIZE            13h
  65. ;
  66. mem_size           dw  1 dup(?)         ;memory size in Kbyte
  67. ;
  68. ;        ERROR CHECK POINTER    15h
  69. ;
  70. err_chkptr         db  1 dup(?)         ;check pointer
  71. err_chk            db  1 dup(?)         ;error code of check pointer
  72. ;
  73. ;        KEYBOARD FLAG          17h
  74. ;
  75. kb_flag1           db  1 dup(?)         ;bit 7 -- insert function active
  76.                                         ;bit 6 -- Caps lock active
  77.                                         ;bit 5 -- Number lock active
  78.                                         ;bit 4 -- Scroll lock active
  79.                                         ;bit 3 -- Alt key depressed
  80.                                         ;bit 2 -- Control key depressed
  81.                                         ;bit 1 -- left shift key depressed
  82.                                         ;bit 0 -- right shift key depressed
  83. kb_flag2           db  1 dup(?)         ;bit 7 -- Insert key depressed
  84.                                         ;bit 6 -- Caps lock depressed
  85.                                         ;bit 5 -- Number lock depressed
  86.                                         ;bit 4 -- Scroll lock depressed
  87.                                         ;bit 3 -- Ctrl + Num lock toggled
  88.                                         ;bit 2 -- system key depressed
  89.                                         ;bit 1 -- left Alt key depressed
  90.                                         ;bit 0 -- left Cntl key depressed
  91. alt_num            db  1 dup(?)         ;input # of Alt key
  92. kb_bufhead         dw  1 dup(?)         ;head of keyboard buffer
  93. kb_buftail         dw  1 dup(?)         ;tail of keyboard buffer
  94. kb_buf             dw  16 dup(?)        ;16 words of keyboard buffer
  95. ;
  96. ;         DISK DATA         3eh
  97. ;
  98. disk_seek          db  1 dup(?)         ;seek status
  99.                                         ;bit 7 -- disk drive interrupt
  100.                                         ;bit 6 - 2 -- reserved
  101.                                         ;bit 1 = 0 -- drive 1 : recalibrated
  102.                                         ;                       before seek
  103.                                         ;bit 0 = 0 -- drive 0 : recalibrated
  104. motor_status       db  1 dup(?)         ;3f2h, motor status
  105.                                         ;bit 7 -- writing
  106.                                         ;bit 6 - 2 -- reserved
  107.                                         ;bit 1 = 1 -- drive 1 is running
  108.                                         ;bit 0 = 1 -- drive 0 is running
  109. motor_count        db  1 dup(?)         ;motor count
  110. disket_status      db  1 dup(?)         ;80h -- time out
  111.                                         ;40h -- seek error
  112.                                         ;20h -- NEC error
  113.                                         ;10h -- CRC error
  114.                                         ;0ch -- media type not found
  115.                                         ;09h -- attach DMA 64k boundary
  116.                                         ;08h -- DMA error
  117.                                         ;06h -- media change line active
  118.                                         ;04h -- record not found
  119.                                         ;03h -- write protect
  120.                                         ;02h -- address mark found
  121.                                         ;01h -- bad command
  122.                                         ;00h -- no error
  123. NEC765_status      db  7 dup(?)         ;7 bytes of NEC765 status
  124. ;
  125. ;        VIDEO DATA        49h
  126. ;
  127. video_opmode       db  1 dup(?)         ;video mode flag
  128.                                         ;0 -- 40 * 25
  129.                                         ;1 -- 40 * 25
  130.                                         ;2 -- 80 * 25
  131.                                         ;3 -- 80 * 25
  132.                                         ;4 -- 320 * 200
  133.                                         ;5 -- 320 * 200
  134.                                         ;6 -- 640 * 200
  135.                                         ;7 -- 80 * 25
  136.                                         ;11h -- 640 * 480
  137.                                         ;13h -- 320 * 200
  138. video_col          dw  1 dup(?)
  139. regen_buflen       dw  1 dup(?)         ;regen buffer length, byte
  140. regen_bufhead      dw  1 dup(?)         ;regen buffer starting address
  141. csr_pos            dw  8 dup(?)         ;8 words, cursor position of pages
  142. csr_mode           dw  1 dup(?)         ;current cursor mode
  143. active_pg          db  1 dup(?)         ;active page
  144. crtc_base          dw  1 dup(?)         ;6845 base address
  145. mode_ctrl          db  1 dup(?)         ;3d8h or 3b8h register value
  146. color_palet        db  1 dup(?)         ;CGA palette setting
  147.                                         ;bit 7, 6 -- reserved
  148.                                         ;bit 5 -- select color set
  149.                                         ;bit 4 -- reserved
  150.                                         ;bit 3 -- hightlight (background)
  151.                                         ;bit 2 -- red (background)
  152.                                         ;bit 1 -- green (background)
  153.                                         ;bit 0 -- blue  (background)
  154. ;
  155. ;        I/O ROM DATA       067h
  156. ;
  157. romio_offset       dw          ?        ; I/O ROM offset
  158. romio_segmt        dw          ?        ; I/O ROM segment
  159. ;
  160. ;        INTERRUPT FLAG     06bh
  161. ;
  162. int_flag           db          ?        ; which interrupt happened
  163.                                         ;
  164.                                         ; bit 7   = 1  --  IRQ 7  --  interrupt f
  165.                                         ; bit 6   = 1  --  IRQ 6  --  interrupt e
  166.                                         ; bit 5   = 1  --  IRQ 5  --  interrupt d
  167.                                         ; bit 4   = 1  --  IRQ 4  --  interrupt c
  168.                                         ; bit 3   = 1  --  IRQ 3  --  interrupt b
  169.                                         ; bit 2   = 1  --  IRQ 2  --  interrupt a
  170.                                         ; bit 1   = 1  --  IRQ 1  --  interrupt 9
  171.                                         ; bit 0   = 1  --  IRQ 0  --  interrupt 8
  172. ;
  173. ;        RT/CMOS DATA       06ch
  174. ;
  175. timer_low          dw          ?        ; timer count(low word)
  176. timer_high         dw          ?        ; timer count(high word)
  177. over_night         db          ?        ; if timer is over one day - set bit to 1
  178. ;
  179. ;        SYSTEM DATA AND FLAG   071h
  180. ;
  181. break_key          db          ?        ; if break is pressed key then set bit 7
  182. warm_start         dw          ?        ; warm start flag(=1234h)
  183.                     ; cache on(=1233H)
  184. ;
  185. ;        I/O ROM DATA      074h
  186. ;
  187. disk_status        db          ?        ; fixed disk status
  188.                                         ;
  189.                                         ; 0000h  -  no error
  190.                                         ; 0001h  -  invalid function request
  191.                                         ; 0002h  -  bad address mark
  192.                                         ; 0003h  -  write protect
  193.                                         ; 0004h  -  sector not found
  194.                                         ; 0005h  -  reset fault
  195.                                         ; 0007h  -  drive parameter activity failed
  196.                                         ; 0008h  -  DMA failed
  197.                                         ; 0009h  -  DMA boundary error
  198.                                         ; 000ah  -  bad track detected
  199.                                         ; 000bh  -  bad sector flag detected
  200.                                         ; 000dh  -  invalid number of sector on format
  201.                                         ; 000eh  -  control data address mark detected
  202.                                         ; 0010h  -  bad ECC on disk read
  203.                                         ; 0011h  -  ECC corected data error
  204.                                         ; 0020h  -  general controller failure
  205.                                         ; 0040h  -  seek failure
  206.                                         ; 0080h  -  timeout
  207.                                         ; 00aah  -  drive not ready
  208.                                         ; 00bbh  -  undifined error occurred
  209.                                         ; 00cch  -  write fault on selected drive
  210.                                         ; 00e0h  -  status error/error reg = 0
  211.                                         ; 00ffh  -  sense operation failed
  212.                                         ;
  213. hdisk_num          db          ?        ; # of hard disk
  214. hdisk_ctrl         db          ?        ; hard disk control byte
  215. hdisk_boot_stat    db          ?        ; reserved
  216.                                         ; 80 - disk C error
  217. ;                                       ; 40 - disk D error
  218. ;
  219. ;        PRINTER AND RS232 TIMEOUT DATA   078h
  220. ;
  221. prn1_time          db          ?        ; first printer timeout count
  222. prn2_time          db          ?        ; second printer timeout count
  223. prn3_time          db          ?        ; third printer timeout count
  224.                    db          ?        ; reserved
  225. comm1_time         db          ?        ; first rs232 timeout count
  226. comm2_time         db          ?        ; second rs232 timeout count
  227.                    db          ?        ; reserved
  228.                    db          ?        ; reserved
  229. ;
  230. ;        KEYBOARD DATA   080h
  231. ;
  232. kb_buftop          dw          ?        ; keyboard buffer starting address
  233. kb_bufend          dw          ?        ; keyboard buffer ending address
  234. ;
  235. ;        VIDEO  DATA    084h
  236. ;
  237. video_row          db          ?        ; row
  238. video_bytcha       dw          ?        ; bytes/character
  239. video_clr          db          ?        ; mode options
  240.                                         ;
  241.                                         ; bit 7 --  clear/not clear (0/1) display buffer
  242.                                         ; bit 6-0   --  reserved
  243.                                         ;
  244. video_feat         db          ?        ; reserved
  245. video_tymode       db          ?        ; mode information
  246.                                         ;
  247.                                         ; bit 7 --  reserved
  248.                                         ; bit 6 --  1  --  enable display switch
  249.                                         ;           0  --  disable display switch
  250.                                         ; bit 5 --  reserved
  251.                                         ; bit 4 --  1  --  8 X 16 font
  252.                                         ;           0  --  8 X 8  font
  253.                                         ; bit 3 --  1  --  default palette loading disabled
  254.                                         ;           0  --  default palette loading enabled
  255.                                         ; bit 2 --  1  --  monochrome monitor attached
  256.                                         ;           0  --  color monitor attached
  257.                                         ; bit 1 --  1  --  video summing enabled
  258.                                         ;           0  --  video summing disabled
  259.                                         ; bit 0 --  reserved
  260.                                         ;
  261. video_config       db          ?        ; combination code
  262.                                         ;
  263.                                         ; 00h  --  00,00   no display
  264.                                         ; 01h  --  00,01   mono
  265.                                         ; 02h  --  00,02   CGA
  266.                                         ; 03h  --  02,01   mono + CGA
  267.                                         ; 04h  --  00,04   EGA
  268.                                         ; 05h  --  04,01   MEGA + mono
  269.                                         ; 06h  --  00,05   MEGA
  270.                                         ; 07h  --  02,05   MEGA + CGA
  271.                                         ; 08h  --  00,06   PGC
  272.                                         ; 09h  --  01,06   PGC + mono
  273.                                         ; 0ah  --  05,06   PGC + MEGA
  274.                                         ; 0bh  --  00,08   VGA + color display
  275.                                         ; 0ch  --  01,08   VGA + mono
  276.                                         ; 0dh  --  00,07   MGA + mono display
  277.                                         ; 0eh  --  02,07   MVGA + CGA
  278.                                         ; 0fh  --  02,06   MVGA + PGA
  279.                                         ; 10h  --  00,0a   5153 or 5154 color
  280.                                         ; 11h  --  01,0a
  281.                                         ; 12h  --  00,0c   analog color
  282.                                         ; 13h  --  01,0c
  283.                                         ; 14h  --  00,0b   analog monochrome
  284.                                         ; 15h  --  01,0b
  285. ;
  286. ;        DISK or DISKETTE MEDIA DATA   08bh
  287. ;
  288. trans_rate         db          ?        ; data transfer rate save area
  289.                                         ;
  290.                                         ; bit 7-6  --  last data transfer rate save area
  291.                                         ;              00  :  500 kbs
  292.                                         ;              01  :  300 kbs
  293.                                         ;              10  :  250 kbs
  294.                                         ;              11  :  500 kbs
  295.                                         ; bit 5-1  --  reserved
  296.                                         ; bit 0    --  adapter is DSP or COMBO
  297.                                         ;
  298. wdc_status         db          ?        ; WDC status
  299. hdisk_err          db          ?        ; WDC error register
  300. hdisk_intflag      db          ?        ; hard disk interrupt flag
  301. drive_indic        db          ?        ; drive indicators
  302.                                         ; bit 7  --  reserved
  303.                                         ; bit 6  --  drive b: multi data rate capability determined
  304.                                         ;            (drive determined)
  305.                                         ; bit 5  --  drive b: multi data rate format capability
  306.                                         ;            (valid when drive determined)
  307.                                         ; bit 4  --  80 track capability
  308.                                         ; bit 3  --  reserved
  309.                                         ; bit 2  --  drive a: multi data rate capabality determined
  310.                                         ;            (drive determined)
  311.                                         ; bit 1  --  drive a: multi data rate format capabality
  312.                                         ;            (valid when drive determined)
  313.                                         ; bit 0  --  80 track capabality
  314.                                         ;
  315. driva_state        db          ?        ; drive a: diskette state machine
  316.                                         ;
  317.                                         ; bit 7-6  -- data transfer rate
  318.                                         ;  0 0 : 500 kbs
  319.                                         ;  0 1 : reserved
  320.                                         ;  1 0 : 250 kbs
  321.                                         ;  1 1 : reserved
  322.                                         ; bit 5    -- double stepping required(360k in 1.2m drive)
  323.                                         ; bit 4    -- media/drive established
  324.                                         ; bit 3    -- reserved
  325.                                         ; bit 2  bit 1  bit 0
  326.                                         ;  0      0      0     360k in 360k drive unestablished
  327.                                         ;  0      0      1     360k in 1.2m drive unestablished
  328.                                         ;  0      1      0     1.2m in 1.2m drive unestablished
  329.                                         ;  0      1      1     360k in 360k drive established
  330.                                         ;  1      0      0     360k in 1.2m drive established
  331.                                         ;  1      0      1     1.2m in 1.2m drive established
  332.                                         ;  1      1      0     reserved
  333.                                         ;  1      1      1     none of the above
  334.                                         ;
  335. drivb_state        db          ?        ; drive b: diskette state machine
  336.                                         ;
  337.                                         ; as same as drive_a_state
  338.                                         ;
  339. driva_oper         db          ?        ; drive a: state operation started
  340.                                         ;
  341.                                         ; bit 7-6  --  data transfer rate
  342.                                         ;             (valid when media determined)
  343.                                         ;              00 : 500 kbs
  344.                                         ;              01 : 300 kbs
  345.                                         ;              10 : 250 kbs
  346.                                         ;              11 : 500 kbs
  347.                                         ; bit 5    --  media double stepping required
  348.                                         ; bit 4    --  media determined/established
  349.                                         ; bit 3    --  reserved
  350.                                         ; bit 2    --  multi data rate capabality determined
  351.                                         ;              (drive determined)
  352.                                         ; bit 1    --  multi data rate format capability
  353.                                         ; bit 0    --  80 track capabality
  354.                                         ;
  355. drivb_oper         db          ?        ; drive b: state operation started
  356.                                         ;
  357.                                         ; as same as drive_a_op
  358.                                         ;
  359. driva_cylin        db          ?        ; present cylinder number of drive a:
  360. drivb_cylin        db          ?        ; present cylinder number of drive b:
  361. ;
  362. ;        KEYBOARD FLAGS   096h
  363. ;
  364. kb_flag3           db          ?        ; keyboard mode state and type flag
  365.                                         ;
  366.                                         ; bit 0 -- 1  --  last code was e1 hidden code
  367.                                         ; bit 1 -- 1  --  last code was e0 hidden code
  368.                                         ; bit 2 -- 1  --  right crtl key depressed
  369.                                         ; bit 3 -- 1  --  right alt key depressed
  370.                                         ;                      alt graphics key depressed(WT only)
  371.                                         ; bit 4 -- 1  --  101/102 keyboard installed
  372.                                         ; bit 5 -- 1  --  enhanced keyboard installed
  373.                                         ; bit 6 -- 1  --  force Num Lock when read id and enhanced keyboard
  374.                                         ; bit 7 -- 1  --  doing read ID(bit 0)
  375.                                         ;
  376. kb_ldflag          db          ?        ; key led flags
  377.                                         ;
  378.                                         ; bit 0 -- 1  --  scroll lock led
  379.                                         ; bit 1 -- 1  --  Num lock led
  380.                                         ; bit 2 -- 1  --  caps lock led
  381.                                         ; bit 3 -- 1  --  reserved(=0)
  382.                                         ; bit 4 -- 1  --  acknowledgement received
  383.                                         ; bit 5 -- 1  --  resend recrived flag
  384.                                         ; bit 6 -- 1  --  mode update
  385.                                         ; bit 7 -- 1  --  keyboard transmit error flag
  386.  
  387. ;
  388. ;        REAL TIME CLOCK DATA           98h
  389. ;
  390. wait_offset        dw          ?        ; offset of user wait flag
  391. wait_segmt         dw          ?        ; segment of user wait flag
  392. wait_low           dw          ?        ; low word of user wait flag
  393. wait_high          dw          ?        ; high word of user wait flag
  394. wait_active        db          ?        ; wait active flag
  395.                                         ; 00h --> POST acknowledged
  396.                                         ; 01h --> busy
  397.                                         ; 80h --> POSTED
  398. ;
  399. ;     FIXED DISK INTERRUPT VECTOR SAVED AREA
  400. ;     VIDEO PARAMETER POINTER           A1h
  401. ;
  402.                     db       3 dup (?)  ; reserved
  403. hdisk_intvec        dw       2 dup (?)  ; saved fixed disk interrupt vector
  404. video_parptr        dd       1 dup (?)  ; pointer to video parameters
  405.                                         ; dword 1      video parameter table pointer
  406.                                         ; dword 2      reserved
  407.                                         ; dword 3      alpha mode auxiliary pointer (initialized to 00:00)
  408.                                         ; size     description
  409.                                         ; _________________________________________________________
  410.                                         ; byte     bytes per character
  411.                                         ; byte     block to load, 0 = normal operation
  412.                                         ; word     number of font, 256d = normal operation
  413.                                         ; word     character offset, 0 = normal operation
  414.                                         ; dword    pointer to a font table
  415.                                         ; byte     display rows. if it contains 'ff', the maximum
  416.                                         ;          caculated value is used.
  417.                                         ; byte     list of mode values for which this font can be used
  418.                                         ;          the end of this list is 'ff'.
  419.                                         ; dword 4      graphic mode auxiliary pointer (initialized to 00:00)
  420.                                         ;              size     description
  421.                                         ;              -------------------------------------------------------------
  422.                                         ;              byte     displayable rows
  423.                                         ;              word     bytes per character
  424.                                         ;              dword    pointer to a font table
  425.                                         ;              byte     list of mode values for which this font can be used.
  426.                                         ;                       the end of list is 'ff'.
  427.                    db       27 dup (?)  ; reserved
  428. ;
  429. ;    Write Protect service routine C7H
  430. ;
  431. bios_ds           dw        ?        ; save user DS
  432. vacc_off       dw        ?        ;
  433. vacc_seg       dw        ?        ;
  434. bios_vac       db        ?        ; for BIOS vaccine
  435.                     ; bit 0 - 1 - WDD write Protect
  436.                     ; bit 1 - 1 - FDD write Protect
  437.                     ; bit 2 - 1 - WDD Write Protect mesg
  438.                     ; bit 3 - 1 - FDD Write Protect mesg
  439.                     ; bit 4 - 1 - System is 1100/33
  440.                     ; bit 5-7     reserved    
  441. day_count          dw       ?           ; day count
  442. ;
  443. ;    System speed status and Cache status(D0H)
  444. ;
  445. status_speed       db        ?    ; bit 7-6    speed status
  446.                     ;   1 1        smart
  447.                     ;   0 1         Top speed
  448.                     ;   0 0         none of above
  449.                     ; bit 5        Weitek 3167 Math coprocessor
  450.                     ; bit 4        for 1100/25/20C
  451.                     ;        1 : 1100/25
  452.                     ;        0 : 1100/20C
  453.                     ;            for MSAT/16/20
  454.                     ;            1 : MSAT/20
  455.                     ;            0 : MSAT/16
  456.                     ; bit 3        for 1100/25/20C only
  457.                     ;        1 : cache on
  458.                     ;        0 : cache off
  459.                     ; bit 2        0 : RAM BIOS good
  460.                     ;        1 : RAM BIOS bad
  461.                     ; bit 1        0 : RAM VIDEO good
  462.                     ;        1 : RAM VIDEO bad
  463.                     ; bit 0        0 : console exist
  464.                     ;               1 : console unexist
  465. bios_speed         db         ?      ; bit 7-5    speed parameter(valid when bit 2 = 1)
  466.                                         ;   000         6 MHZ
  467.                                         ;   001         8 MHZ
  468.                                         ;   xxx         bigger value, more fast 
  469.                     ; bit 4         1 : flush cache memory
  470.                     ;               0 :  
  471.                     ; bit 3        1 : enable cache system
  472.                     ;         0 : disable cache system
  473.                     ; bit 2        speed select
  474.                     ;        1 : enable speed change
  475.                     ;        0 : disable speed change
  476.                     ; bit 1        1 : enable RAM BIOS write 
  477.                     ;        0 : disable RAM BIOS Write
  478.                     ; bit 0        1 : enable RAM BIOS 
  479.                     ;        0 : disable RAM BIOS
  480. bios_d         db          ?      ;
  481.                     ; bit 7         0 : not in setup
  482.                     ;        1 : in setup
  483.                     ; bit 6         0 : non CONNER
  484.                     ;        1 : CONNER WDD for 2nd WDD
  485.                     ; bit 5         0 : non CONNER
  486.                     ;        1 : CONNER WDD for 1st WDD
  487.                     ; bit 4        0 : 1st WDD active
  488.                     ;        1 : 2nd WDD active
  489.                     ; bit 3         reserved
  490.                     ; bit 2        0 : cache good
  491.                     ;        1 : cache bad
  492.                     ; bit 1         reversed
  493.                     ; bit 0         0 : jump F000:FFF0H
  494.                     ;               1 : cold start
  495.                    db       29 dup(?)   ; reserved
  496.                    db       16 dup (?)  ; reserved for user
  497. ;
  498. ;        PRINTER SCREEN FLAG            100h
  499. ;
  500. prn_scren          db        ?          ;printer screen status byte
  501.                                         ;000h --> ready
  502.                                         ;001h --> busy
  503.                                         ;0ffh --> error
  504. biosdata ends
  505.