forked from EtchedPixels/FUZIX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsx2.def
47 lines (38 loc) · 1.02 KB
/
msx2.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
; msx2 fixed i/o ports and memory mapped i/o addresses
SLOT_SEL .equ 0xA8 ; primary slot select register
SUBSLOT_SEL .equ 0xFFFF ; seconday slot select register
PAGE0_BASE .equ 0x0000
PAGE1_BASE .equ 0x4000
PAGE2_BASE .equ 0x8000
PAGE3_BASE .equ 0xC000
RAM_PAGE0 .equ 0xFC ; memory mapper registers
RAM_PAGE1 .equ 0xFD
RAM_PAGE2 .equ 0xFE
RAM_PAGE3 .equ 0xFF
;
; ASCII 8Kb Mapper addresses
;
ASCII8_PAGE0_BASE .equ 0x4000
ASCII8_PAGE1_BASE .equ 0x6000
ASCII8_PAGE2_BASE .equ 0x8000
ASCII8_PAGE3_BASE .equ 0xA000
ASCII8_ROM_PAGE0 .equ 0x6000
ASCII8_ROM_PAGE1 .equ 0x6800
ASCII8_ROM_PAGE2 .equ 0x7000
ASCII8_ROM_PAGE3 .equ 0x7800
;
; BIOS machine info addresses
;
BIOS_VERSION1 .equ 0x002B
BIOS_VERSION2 .equ 0x002C
BIOS_MACHINE_TYPE .equ 0x002D
BIOS_VDP_IOPORT .equ 0x0006
;
; OpenMSX Debug ports
;
OPENMSX_DEBUG1 .equ 0x2E
OPENMSX_DEBUG2 .equ 0x2F
;
; TurboR CPU mode select
;
BIOS_CHGCPU .equ 0x180