From e2ae5c7fa3248c2d4a204b298b0bf736e8f991f9 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 17 Dec 2008 05:52:10 +0000 Subject: From: Atari Ace [atari_ace@verizon.net] Sent: Tuesday, December 16, 2008 12:20 PM To: submit@mamedev.org Cc: atariace@hotmail.com Subject: [patch] Migrate CPU defines to cpu header files Hi mamedev, This patch migrates all the CPU definitions into the cpu header files. The #defines and CPU_GET_INFO declarations were added by hand to the cpu cores in the first patch, plus a few partly related fixes to the non-DRC cores. The second patch was produced by the attached script which inserts all needed #includes, except for two that were added by hand in the first patch. The first patch also removed an extra define of N2A03_DEFAULTCLOCK that would have caused problems with the second patch. ~aa --- src/emu/cpu/pdp1/pdp1.h | 1 + src/emu/cpu/pdp1/tx0.h | 3 +++ 2 files changed, 4 insertions(+) (limited to 'src/emu/cpu/pdp1') diff --git a/src/emu/cpu/pdp1/pdp1.h b/src/emu/cpu/pdp1/pdp1.h index caeb5b6be41..c5557914267 100644 --- a/src/emu/cpu/pdp1/pdp1.h +++ b/src/emu/cpu/pdp1/pdp1.h @@ -50,6 +50,7 @@ struct _pdp1_reset_param_t /* PUBLIC FUNCTIONS */ CPU_GET_INFO( pdp1 ); +#define CPU_PDP1 CPU_GET_INFO_NAME( pdp1 ) #define AND 001 #define IOR 002 diff --git a/src/emu/cpu/pdp1/tx0.h b/src/emu/cpu/pdp1/tx0.h index 38b6cbe97cb..ee3989cf8ff 100644 --- a/src/emu/cpu/pdp1/tx0.h +++ b/src/emu/cpu/pdp1/tx0.h @@ -47,6 +47,9 @@ struct _tx0_reset_param_t CPU_GET_INFO( tx0_64kw ); CPU_GET_INFO( tx0_8kw ); +#define CPU_TX0_64KW CPU_GET_INFO_NAME( tx0_64kw ) +#define CPU_TX0_8KW CPU_GET_INFO_NAME( tx0_8kw ) + CPU_DISASSEMBLE( tx0_64kw ); CPU_DISASSEMBLE( tx0_8kw ); -- cgit v1.2.3-70-g09d2