From 207c7fde951c0ffa6215452e28d554c78a4ac0c8 Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 25 Nov 2019 08:14:06 +0100 Subject: [PATCH] forgot file --- emu/mmregs.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 emu/mmregs.h diff --git a/emu/mmregs.h b/emu/mmregs.h new file mode 100644 index 0000000..7ed8b6b --- /dev/null +++ b/emu/mmregs.h @@ -0,0 +1,40 @@ +/* Memory map */ +enum +{ + /* Core and Fast memory */ + MM_MEMIF_BASE = 0, + MM_MEMIF_ADDR = MM_MEMIF_BASE+0, + MM_MEMIF_LOW = MM_MEMIF_BASE+1, + MM_MEMIF_HIGH = MM_MEMIF_BASE+2, + + /* APR */ + MM_APR_BASE = 010, + MM_APR_CTL1_DN = MM_APR_BASE+0, + MM_APR_CTL1_UP = MM_APR_BASE+1, + MM_APR_CTL2_DN = MM_APR_BASE+2, + MM_APR_CTL2_UP = MM_APR_BASE+3, + MM_APR_MAINT_UP = MM_APR_BASE+4, + MM_APR_MAINT_DN = MM_APR_BASE+5, + MM_APR_DSLT = MM_APR_BASE+6, + MM_APR_DSRT = MM_APR_BASE+7, + MM_APR_MAS = MM_APR_BASE+010, + MM_APR_REPEAT = MM_APR_BASE+011, + MM_APR_IR = MM_APR_BASE+012, + MM_APR_MILT = MM_APR_BASE+013, + MM_APR_MIRT = MM_APR_BASE+014, + MM_APR_PC = MM_APR_BASE+015, + MM_APR_MA = MM_APR_BASE+016, + MM_APR_PI = MM_APR_BASE+017, + MM_APR_MBLT = MM_APR_BASE+020, + MM_APR_MBRT = MM_APR_BASE+021, + MM_APR_ARLT = MM_APR_BASE+022, + MM_APR_ARRT = MM_APR_BASE+023, + MM_APR_MQLT = MM_APR_BASE+024, + MM_APR_MQRT = MM_APR_BASE+025, + MM_APR_FF1 = MM_APR_BASE+026, + MM_APR_FF2 = MM_APR_BASE+027, + MM_APR_FF3 = MM_APR_BASE+030, + MM_APR_FF4 = MM_APR_BASE+031, + MM_APR_MMU = MM_APR_BASE+032, + // TODO: more +};