From beb51eaa9330b0113cca501e8e671fe8abe3e4be Mon Sep 17 00:00:00 2001 From: smf- Date: Fri, 25 Oct 2024 12:13:22 +0100 Subject: f2mc16: Created devices for the onboard analogue to digital converter, clock generator, interrupt controller/Extended intelligent I/O service, I/O port, Programmable Pulse Generator, reload timer and UART. CPU core exposes the RMW line for onboard devices. Log messages will contain the address of the start of the instruction, rather than the next byte the CPU is about to fetch. Added INT9/INT addr16 & INT addr24 software interrupt instructions. Fixed INCW @RWx & DECW @RWx instruction length Added missing fetch of immediate value in MOV @RWx + RW7, #imm8. Rewrote Tomy Prin-C keyboard handling and pen to use new onboard devices, substantially increasing the reload timer 0 frequency as it's now correctly waiting for 0x7530 underflows with reload = 0x37f at startup. --- scripts/src/cpu.lua | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'scripts/src/cpu.lua') diff --git a/scripts/src/cpu.lua b/scripts/src/cpu.lua index 8fee66cc946..48d2f317f55 100644 --- a/scripts/src/cpu.lua +++ b/scripts/src/cpu.lua @@ -3630,8 +3630,26 @@ if CPUS["F2MC16"] then files { MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16.cpp", MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16.h", - MAME_DIR .. "src/devices/cpu/f2mc16/mb9061x.cpp", - MAME_DIR .. "src/devices/cpu/f2mc16/mb9061x.h", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_adc.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_adc.h", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_clock.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_clock.h", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_intc.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_intc.h", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_port.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_port.h", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_ppg.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_ppg.h", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_reload.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_reload.h", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_uart.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16_uart.h", + MAME_DIR .. "src/devices/cpu/f2mc16/mb90570.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/mb90570.h", + MAME_DIR .. "src/devices/cpu/f2mc16/mb90610a.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/mb90610a.h", + MAME_DIR .. "src/devices/cpu/f2mc16/mb90640a.cpp", + MAME_DIR .. "src/devices/cpu/f2mc16/mb90640a.h", } end -- cgit v1.2.3-70-g09d2