From 6cc8866ef9841d2e638d3a30dd2c05334edc9a55 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 23 Feb 2023 13:18:58 -0800 Subject: [PATCH] Add cartridge IO port addresses (#179) --- src/mmio.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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");