home *** CD-ROM | disk | FTP | other *** search
- ; ROSDATA.EQU
- ; Equate file defining the variables at 40:0 in an IBM AT
- ; Last mod: 2 JUL 85, JMB
-
- dseg
- PC_SEGMENT equ 40h ; PC ROS data area
-
- ;EQUIPMENT:
- ;----------
- rs232_base_40 equ word ptr .00h
- printer_base_40 equ word ptr .08h
- extended_BIOS_40 equ word ptr .0Eh ; PS/2 extended data
-
- equip_flag_40 equ word ptr .10h
- ; 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- ; --------------------------------------------------
- ; | | | | | | | | | | | | | | | +- 1 = IPL from floppy
- ; | | | | | | | | | | | | | | +- unused
- ; | | | | | | | | | | | | | +-| planer RAM: 00=16K
- ; | | | | | | | | | | | | +----| 01=32K, 10=48K, 11=64K
- ; | | | | | | | | | | | +-| init. video mode: 00=ega,
- ; | | | | | | | | | | +----| 01=color40, 10=color80, 11=mono
- ; | | | | | | | | | +-| num. of floppies: 00=1, 01=2,
- ; | | | | | | | | +----| 10=3, 11=4, only if bit 0 = 1
- ; | | | | | | | |
- ; | | | | | | | +- unused
- ; | | | | | | +-|
- ; | | | | | +----| number of RS232 cards
- ; | | | | +-------|
- ; | | | +- game I/O attchd
- ; | | +- unused
- ; | +-| number of parallel cards
- ; +----|
-
- mfg_tst_40 equ byte ptr .12h
- memory_size_40 equ word ptr .13h
- mfg_err_flag_40 equ byte ptr .15h
-
- ;KEYBOARD:
- ;---------
- kb_flag_40 equ byte ptr .17h
- kb_flag_1_40 equ byte ptr .18h
- alt_input_40 equ byte ptr .19h
- buffer_head_40 equ word ptr .1Ah
- buffer_tail_40 equ word ptr .1Ch
- kb_buffer_40 equ word ptr .1Eh
- kb_buffer_end_40 equ word ptr .3Eh
- kb_flag_3_40 equ byte ptr .96h ; enhanced keyboard status
-
- ;DISKETTE:
- ;---------
- seek_status_40 equ byte ptr .3Eh
- motor_status_40 equ byte ptr .3Fh
- motor_count_40 equ byte ptr .40h
- diskette_status_40 equ byte ptr .41h
- cmd_block_40 equ byte ptr .42h
- hd_error_40 equ byte ptr .42h
- nec_status_40 equ byte ptr .42h
-
- ;VIDEO:
- ;------
- crt_mode_40 equ byte ptr .49h
- crt_cols_40 equ word ptr .4Ah
- crt_len_40 equ word ptr .4Ch
- crt_start_40 equ word ptr .4Eh
- cursor_posn_40 equ word ptr .50h
- cursor_mode_40 equ word ptr .60h
- active_page_40 equ byte ptr .62h
- addr_6845_40 equ word ptr .63h
- crt_mode_set_40 equ byte ptr .65h
- crt_pallette_40 equ byte ptr .66h
-
- ;POST:
- ;-----
- io_rom_init_40 equ word ptr .67h
- io_rom_seg_40 equ word ptr .69h
- intr_flag_40 equ byte ptr .6Bh
-
- ;TIMER:
- ;------
- timer_low_40 equ word ptr .6Ch
- timer_high_40 equ word ptr .6Eh
- timer_ofl_40 equ byte ptr .70h
-
- ;SYSTEM:
- ;-------
- bios_break_40 equ byte ptr .71h
- reset_flag_40 equ word ptr .72h
-
- ;HARD FILE:
- ;----------
- disk_status1_40 equ byte ptr .74h
- hf_num_40 equ byte ptr .75h
- control_byte_40 equ byte ptr .76h
- port_off_40 equ byte ptr .77h
-
- ;TIME_OUT:
- ;---------
- print_tim_out_40 equ byte ptr .78h
- rs232_tim_out_40 equ byte ptr .7Ch
-
- ;KEYBOARD 2:
- ;-----------
- buffer_start_40 equ word ptr .80h
- buffer_end_40 equ word ptr .82h
-
- ;EGA:
- ;----
- rows_40 equ byte ptr .84h
- info_40 equ byte ptr .87h
-
- ;FLOPPY 2:
- ;---------
- lastrate_40 equ byte ptr .8Bh
-
- ;HARD FILE 2:
- ;------------
- hf_status_40 equ byte ptr .8Ch
- hf_error_40 equ byte ptr .8Dh
- hf_int_flag_40 equ byte ptr .8Eh
- hf_cntrl_40 equ byte ptr .8Fh
-
- ;FLOPPY 3:
- ;---------
- dsk_state_40 equ byte ptr .90h
- dsk_state_st_40 equ byte ptr .92h
- dsk_trk_40 equ byte ptr .94h
-
- ;KEYBOARD LED:
- ;-------------
- kb_flag_2_40 equ byte ptr .97h
-
- ;CLOCK:
- ;------
- user_flag_40 equ word ptr .98h
- user_flag_seg_40 equ word ptr .9Ah
- rtc_low_40 equ word ptr .9Ch
- rtc_high_40 equ word ptr .9Eh
- rtc_wait_flag_40 equ byte ptr .0A0h
-
- ;EGA 2:
- ;------
- save_ptr_40 equ dword ptr .0A8h
-
- ; RESERVED USED BY SOME LARGE HARD DISKS
- ;---------------------------------------
- hd_param_40 equ word ptr .0EAh
-
- ;EXTRA (at 50:0):
- status_byte_50 equ byte ptr .0
-
- ; END of ROSDATA.EQU
-