summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/mcs51/mcs51.h
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2008-11-07 22:44:14 +0000
committer Couriersud <couriersud@users.noreply.github.com>2008-11-07 22:44:14 +0000
commiteed3bdac15ad6096d7eec7e82bbfb56bd0e2bfe2 (patch)
treedf21734386b0fff98bdfd18fb14696b3e30de400 /src/emu/cpu/mcs51/mcs51.h
parent109198d018b82c442354aabeb4477043bfdd1675 (diff)
Merged DS5002FP into MCS51
* Merged DS5002FP * Disassembler now uses type specific memory names * Merged DS5002FP disasm * added 83C751 memory names to disassembler * delete DS5002FP specific files * removed unnecessary cpu callback in wrally * DATA_MAP ==> IO_MAP in wrally
Diffstat (limited to 'src/emu/cpu/mcs51/mcs51.h')
-rw-r--r--src/emu/cpu/mcs51/mcs51.h33
1 files changed, 28 insertions, 5 deletions
diff --git a/src/emu/cpu/mcs51/mcs51.h b/src/emu/cpu/mcs51/mcs51.h
index 3ac15c61ac6..06ba1e98595 100644
--- a/src/emu/cpu/mcs51/mcs51.h
+++ b/src/emu/cpu/mcs51/mcs51.h
@@ -66,11 +66,11 @@ enum
enum
{
- MCS51_PORT_P0 = 0x10000,
- MCS51_PORT_P1 = 0x10001,
- MCS51_PORT_P2 = 0x10002,
- MCS51_PORT_P3 = 0x10003,
- MCS51_PORT_TX = 0x10004, /* P3.1 */
+ MCS51_PORT_P0 = 0x20000,
+ MCS51_PORT_P1 = 0x20001,
+ MCS51_PORT_P2 = 0x20002,
+ MCS51_PORT_P3 = 0x20003,
+ MCS51_PORT_TX = 0x20004, /* P3.1 */
};
/***************************************************************************
@@ -119,10 +119,33 @@ void i87c52_get_info(UINT32 state, cpuinfo *info);
/* 4k internal perom and 128 internal ram and 2 analog comparators */
void at89c4051_get_info(UINT32 state, cpuinfo *info);
+/*
+ * The DS5002FP has 2 16 bits data address buses (the byte-wide bus and the expanded bus). The exact memory position accessed depends on the
+ * partition mode, the memory range and the expanded bus select. The partition mode and the expanded bus select can be changed at any time.
+ *
+ * In order to simplify memory mapping to the data address bus, the following address map is assumed for partitioned mode:
+
+ * 0x00000-0x0ffff -> data memory on the expanded bus
+ * 0x10000-0x1ffff -> data memory on the byte-wide bus
+
+ * For non-partitioned mode the following memory map is assumed:
+
+ * 0x0000-0xffff -> data memory (the bus used to access it does not matter)
+ *
+ * Internal ram 128k and security features
+ */
+
+void ds5002fp_get_info(UINT32 state, cpuinfo *info);
+
+
/****************************************************************************
* Disassembler
****************************************************************************/
offs_t i8051_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
+offs_t i80c51_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
+offs_t i8052_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
+offs_t i80c52_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
+offs_t ds5002fp_dasm(char *dst, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
#endif /* __MCS51_H__ */