diff --git a/src/mmio.rs b/src/mmio.rs index 77b0f3f..182c9a1 100644 --- a/src/mmio.rs +++ b/src/mmio.rs @@ -485,3 +485,9 @@ def_mmio!(0x0700_0006 = AFFINE_PARAM_A: VolSeries()}>; "Affine parameters B."); def_mmio!(0x0700_0016 = AFFINE_PARAM_C: VolSeries()}>; "Affine parameters C."); def_mmio!(0x0700_001E = AFFINE_PARAM_D: VolSeries()}>; "Affine parameters D."); + +// Cartridge IO port +// https://problemkaputt.de/gbatek.htm#gbacartioportgpio +def_mmio!(0x0800_00C4 = IO_PORT_DATA: VolAddress; "I/O port data"); +def_mmio!(0x0800_00C6 = IO_PORT_DIRECTION: VolAddress; "I/O port direction"); +def_mmio!(0x0800_00C8 = IO_PORT_CONTROL: VolAddress; "I/O port control");