59 lines
4.4 KiB
Text
59 lines
4.4 KiB
Text
## --
|
|
## -- This file is automatically generated by the DragonAssembler (version 0.3.1596)
|
|
## -- Please do not modify this file in any way.
|
|
## --
|
|
|
|
@guard __AUTO_GEN_GUARD_BIOS_API_DSS__
|
|
|
|
## -- These are the base addresses of the memory map.
|
|
@define MemoryAddresses.MBR 0x1380
|
|
@define MemoryAddresses.INT_VEC 0x1080
|
|
@define MemoryAddresses.DISK_INTERFACE 0x1580
|
|
@define MemoryAddresses.RAM 0x1740
|
|
@define MemoryAddresses.CMOS 0x1000
|
|
@define MemoryAddresses.VGA 0x1600
|
|
## --
|
|
|
|
## -- These are the Hardware Interrupt codes of this machine.
|
|
@define HW_Int.DISK_INTERFACE_FINISHED 0x80
|
|
@define HW_Int.KEY_PRESSED 0xA0
|
|
@define HW_Int.KEY_RELEASED 0xA1
|
|
@define HW_Int.TEXT_ENTERED 0xA2
|
|
## --
|
|
|
|
## -- These are the memory-mapped registers used to interact with the video card's interface.
|
|
@define VGA_Registers.VIDEO_MODE 0x1600
|
|
@define VGA_Registers.SIGNAL 0x1603
|
|
@define VGA_Registers.TEXT_SINGLE_CHAR 0x1604
|
|
@define VGA_Registers.TEXT_SIGNLE_INVERT 0x1605
|
|
@define VGA_Registers.TEXT_SIGNLE_STR 0x1606
|
|
@define VGA_Registers.BUFF_START 0x16E0
|
|
## --
|
|
|
|
## -- These are the different Video Modes that the video card supports.
|
|
@define VGA_VideoModes.TEXT_SINGLE_COLOR 0x00
|
|
## --
|
|
|
|
## -- These are signals used to comunicate with the video card's interface, when in TEXT_SINGLE_COLOR mode.
|
|
@define Sig_VGA_Text_Single_Color.CONTINUE 0x00
|
|
@define Sig_VGA_Text_Single_Color.PRINT_CHAR 0x02
|
|
@define Sig_VGA_Text_Single_Color.STORE_CHAR 0x03
|
|
@define Sig_VGA_Text_Single_Color.PRINT_FLUSH_BUFF 0x04
|
|
@define Sig_VGA_Text_Single_Color.FLUSH_BUFF 0x05
|
|
@define Sig_VGA_Text_Single_Color.PRINT_BUFF 0x06
|
|
@define Sig_VGA_Text_Single_Color.PRINT_STRING 0x07
|
|
@define Sig_VGA_Text_Single_Color.REFRESH_SCREEN 0xE0
|
|
@define Sig_VGA_Text_Single_Color.CLEAR_SCREEN 0xE1
|
|
## --
|
|
|
|
## -- Structure of a DPT (Dragon Partition Table).
|
|
@define DPTStructure.DISK_ADDR 0x0200
|
|
@define DPTStructure.ENTRIES_START 0x000C
|
|
@define DPTStructure.ENTRY_START_ADDR 0x0000
|
|
@define DPTStructure.ENTRY_PART_SIZE 0x0004
|
|
@define DPTStructure.ENTRY_FLAGS 0x0008
|
|
@define DPTStructure.ENTRY_PART_LBL 0x0024
|
|
@define DPTStructure.ID_CODE 0xF1CA
|
|
@define DPTStructure.ENTRY_SIZE_B 100
|
|
## --
|
|
|