summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mcs51/axc51-core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/mcs51/axc51-core.cpp')
-rw-r--r--src/devices/cpu/mcs51/axc51-core.cpp45
1 files changed, 39 insertions, 6 deletions
diff --git a/src/devices/cpu/mcs51/axc51-core.cpp b/src/devices/cpu/mcs51/axc51-core.cpp
index ddf22f27880..7dc8272d29e 100644
--- a/src/devices/cpu/mcs51/axc51-core.cpp
+++ b/src/devices/cpu/mcs51/axc51-core.cpp
@@ -8,13 +8,16 @@
AX208 SoC
-
-
Notes:
+ AXC51CORE:
+ somes sources indicate that the extended opcode encoding may change
+ on some CPU models despite all being 'AXC51CORE' however we lack solid
+ information on this at present.
+
AX208:
- The CPU has a bootloader that sets a few things up + copies data to RAM
- from the Flash meomry. This will need to be simulated.
+ The CPU has 0x2000 bytes of internal ROM mapped at 0x8000-0x9fff providing
+ bootcode, operating kernel and many standard library functions
*****************************************************************************/
@@ -23,14 +26,44 @@
#include "axc51-core.h"
#include "axc51-core_dasm.h"
+DEFINE_DEVICE_TYPE(AXC51CORE, axc51core_cpu_device, "axc51core", "AppoTech AXC51-CORE")
DEFINE_DEVICE_TYPE(AX208, ax208_cpu_device, "ax208", "AppoTech AX208 (AXC51-CORE)")
+// AXC51CORE (base device)
+
+axc51core_cpu_device::axc51core_cpu_device(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock, int program_width, int data_width, uint8_t features)
+ : mcs51_cpu_device(mconfig, type, tag, owner, clock, program_width, data_width, features)
+{
+}
+
+axc51core_cpu_device::axc51core_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
+ : axc51core_cpu_device(mconfig, AXC51CORE, tag, owner, clock, 0, 7)
+{
+}
+
+std::unique_ptr<util::disasm_interface> axc51core_cpu_device::create_disassembler()
+{
+ return std::make_unique<axc51core_disassembler>();
+}
+
+// AX208 (specific CPU)
+
ax208_cpu_device::ax208_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : mcs51_cpu_device(mconfig, AX208, tag, owner, clock, 0, 7)
+ : axc51core_cpu_device(mconfig, AX208, tag, owner, clock, 0, 7)
{
}
std::unique_ptr<util::disasm_interface> ax208_cpu_device::create_disassembler()
{
- return std::make_unique<axc51core_disassembler>();
+ return std::make_unique<ax208_disassembler>();
+}
+
+ROM_START( ax208 )
+ ROM_REGION( 0x2000, "rom", 0 )
+ ROM_LOAD("ax208.rom", 0x0000, 0x2000, NO_DUMP )
+ROM_END
+
+const tiny_rom_entry *ax208_cpu_device::device_rom_region() const
+{
+ return ROM_NAME( ax208 );
}