Commit Graph

176 Commits

Author SHA1 Message Date
AJR
b201ad2cc0 Update cpu.lua properly (nw) 2017-05-26 17:20:31 -04:00
AJR
d1fb75b2e7 Quick and dirty split of most MC6801/MC6803/HD63701 features from base M6800 class (nw)
The code remains generally archaic and awful and in need of a sweeping rewrite. At least one static variable is no more.
2017-05-26 17:08:54 -04:00
dankan1890
f09ba1e562 Fixed some inaccuracies in file names in lua scripts. 2017-05-21 15:22:03 +10:00
Vas Crabb
0f0d39ef81 Move static data out of devices into the device types. This is a significant change, so please pay attention.
The core changes are:
* Short name, full name and source file are no longer members of device_t, they are part of the device type
* MACHINE_COFIG_START no longer needs a driver class
* MACHINE_CONFIG_DERIVED_CLASS is no longer necessary
* Specify the state class you want in the GAME/COMP/CONS line
* The compiler will work out the base class where the driver init member is declared
* There is one static device type object per driver rather than one per machine configuration

Use DECLARE_DEVICE_TYPE or DECLARE_DEVICE_TYPE_NS to declare device type.
* DECLARE_DEVICE_TYPE forward-declares teh device type and class, and declares extern object finders.
* DECLARE_DEVICE_TYPE_NS is for devices classes in namespaces - it doesn't forward-declare the device type.

Use  DEFINE_DEVICE_TYPE or DEFINE_DEVICE_TYPE_NS to define device types.
* These macros declare storage for the static data, and instantiate the device type and device finder templates.

The rest of the changes are mostly just moving stuff out of headers that shouldn't be there, renaming stuff for consistency, and scoping stuff down where appropriate.

Things I've actually messed with substantially:
* More descriptive names for a lot of devices
* Untangled the fantasy sound from the driver state, which necessitates breaking up sound/flip writes
* Changed DECO BSMT2000 ready callback into a device delegate
* Untangled Microprose 3D noise from driver state
* Used object finders for CoCo multipak, KC85 D002, and Irem sound subdevices
* Started to get TI-99 stuff out of the TI-990 directory and arrange bus devices properly
* Started to break out common parts of Samsung ARM SoC devices
* Turned some of FM, SID, SCSP DSP, EPIC12 and Voodoo cores into something resmbling C++
* Tried to make Z180 table allocation/setup a bit safer
* Converted generic keyboard/terminal to not use WRITE8 - space/offset aren't relevant
* Dynamically allocate generic terminal buffer so derived devices (e.g. teleprinter) can specify size
* Imporved encapsulation of Z80DART channels
* Refactored the SPC7110 bit table generator loop to make it more readable
* Added wrappers for SNES PPU operations so members can be made protected
* Factored out some boilerplate for YM chips with PSG
* toaplan2 gfx
* stic/intv resolution
* Video System video
* Out Run/Y-board sprite alignment
* GIC video hookup
* Amstrad CPC ROM box members
* IQ151 ROM cart region
* MSX cart IRQ callback resolution time
* SMS passthrough control devices starting subslots

I've smoke-tested several drivers, but I've probably missed something.  Things I've missed will likely blow up spectacularly with failure to bind errors and the like.  Let me know if there's more subtle breakage (could have happened in FM or Voodoo).

And can everyone please, please try to keep stuff clean.  In particular, please stop polluting the global namespace.  Keep things out of headers that don't need to be there, and use things that can be scoped down rather than macros.
It feels like an uphill battle trying to get this stuff under control while more of it's added.
2017-05-14 21:44:11 +10:00
Lord-Nightmare
3d18cb2faa Add preliminary Sharp SM590 CPU core [Lord Nightmare, hap] 2017-05-09 14:24:39 -04:00
Vas Crabb
fb087b6c92 Cherry-pick some features from self-registering drivers PoC:
* Use size_t for sizes and <algorithm> for algorithms
* Fix up some files that were getting linked into multiple libs
* Add missing virtual method to sh2 peripheral class
* Put shortname in driver struct for locality
* Use shared pointers in config LRU cache for safety
2017-02-16 12:20:35 +11:00
ajrhacker
a59a5cbbb5 preliminary TLCS-870 disassembler - Work in Progress (#1967) 2017-02-05 16:36:06 -05:00
Vas Crabb
06e22ce79d m6805: added skeleton CMOS devices
* Added m146805 and m68hc05 to unidasm
* Made opcode tables configurable in m6805_base_device, provided tables for HMOS, CMOS and HC families
* Implemented MUL instruction, made unimplemented STOP and WAIT raise fatal error
* Added skeleton MC68HC05C4 with RAM and ROM in correct locations in memory map
2017-01-30 23:10:51 +11:00
R. Belmont
5bb61a8965 Merge pull request #2016 from pmackinlay/interpro
Interpro
2017-01-24 14:02:51 -05:00
Patrick Mackinlay
875f3c9d12 initial pull request 2017-01-24 21:53:51 +07:00
R. Belmont
da169d7fe0 Merge pull request #2002 from wilbertpol/hcd62121
hcd62121/cfx9850: several small cleanups (nw)
2017-01-20 15:29:12 -05:00
Wilbert Pol
fc16e06975 hcd62121: several small cleanups (nw) 2017-01-19 22:50:30 +01:00
Curt Coder
9d371eb5ba cop400: Properly separated COP444L from COP444C. [Curt Coder] 2017-01-16 22:06:11 +02:00
Curt Coder
af0805d848 cop400: Removed non-working, incomplete COP440 code. (nw) 2017-01-16 20:13:31 +02:00
Vas Crabb
02d69ca65a m6805: refactoring and improvements
* Moved 68705 devices into their own file.
* Made P3, P5 and U3 variants and made them load bootstrap ROMs.
* Implemented EPROM control (write is stubbed out with a logerror).
* Implemented differences for open drain I/O ports.

(nw) Base device with peripherals should really derive from the 6805
device directly, not the 68705 devices, as I/O ports are present on mask
devices (e.g. 6805P2).  All drivers and devices that were using
M68705_NEW have been changed to M68705P5 - someone who knows the drivers
better should fix them up.
2017-01-12 19:05:12 +11:00
Ville Linde
dbcf903c78 Added preliminary MB86235 recompiler [Ville Linde] 2016-12-17 22:09:09 +02:00
Nathan Woods
dc4086847a Put necv_dasm_one() into a header file 2016-11-16 08:07:33 -05:00
fulivi
5f54097e53 nanoprocessor: initial support. Disassembler only is known to work at this point. 2016-11-03 14:52:41 +01:00
Nathan Woods
293bfef845 Merging Konami disassembler with M6809/HD6309 disassemblers 2016-10-23 21:27:45 -04:00
Nathan Woods
81294aa08f Merged the M6809 and HD6309 disassemblers, and changed to properly use streams 2016-10-23 18:03:36 -04:00
angelosa
f4749d03f7 Base WatchDog Timer device 2016-09-27 18:36:59 +02:00
angelosa
f6ad513ab0 Written stub SH7604 BUS device (not hooked up to SH2 yet). 2016-09-27 16:21:54 +02:00
Miodrag Milanovic
a9e89e4f17 Fixed separate compile of drivers using sharc/ADSP21062 cpu (nw) 2016-07-23 11:10:17 +02:00
therealmogminer@gmail.com
ff04ed4cc0 Convert SPARCv8 ops to document-described functionality 2016-06-23 14:20:24 +02:00
Vas Crabb
a1625d2220 improve SPARC disassembler: [Vas Crabb]
* Support SPARCv9
* Allow plug-in ASI comments
* Fix format of some opcodes
* Produce clr synthetic
* Allow running in v7, v8 and v9 modes
2016-06-22 04:39:56 +10:00
therealmogminer@gmail.com
6d50e3cb36 Add majority of SPARC integer ops 2016-06-18 13:37:06 +02:00
therealmogminer@gmail.com
579d4873a6 Initial MB86901 diassembler 2016-06-17 15:09:39 +02:00
hap
396c2a0946 fix compile problem 2016-06-05 21:46:48 +02:00
Ville Linde
958731ef5a Added highly experimental SHARC recompiler (disabled by default) [Ville Linde] 2016-05-28 18:58:54 +03:00
Felipe Corrêa da Silva Sanches
deb38446ea Further improvements to the Patinho Feio driver & CPU 2016-05-25 10:32:24 -03:00
hap
262524206b tms7000/e0c6200: renamed hxx(inc) to cpp 2016-05-01 21:39:40 +02:00
Miodrag Milanovic
be67262fc2 INC -> HXX makes editors and code analyzers see it as C++ (nw) 2016-05-01 20:27:50 +02:00
Miodrag Milanovic
13855d2404 Fixed ti drivers (nw) 2016-05-01 12:55:22 +02:00
Miodrag Milanovic
a0829452f1 fix for mb86235 (nw) 2016-05-01 11:06:06 +02:00
Miodrag Milanovic
949fddaaa8 hec2hrp and arcompact fix (nw) 2016-05-01 09:51:51 +02:00
Miodrag Milanovic
50361fcc23 R3000 is separate CPU, helps building some drivers with SOURCES (nw) 2016-04-28 18:26:37 +02:00
Olivier Galibert
5607ec442e h8: Add dtc, dma, watchdog (WIP) [O. Galibert]
h8: Fixes, lots of [O. Galibert]
cybiko: Make work a little emore, add v1 flash [O. Galibert]
2016-04-27 21:55:58 +02:00
Miodrag Milanovic
e55035391e fix for v25 building (nw) 2016-04-23 14:38:20 +02:00
hap
d981b66bba sm500: start on opcodes 2016-04-11 12:43:55 +02:00
hap
10cadefbe2 sm500 file placeholders 2016-04-05 11:33:05 +02:00
Miodrag Milanovic
9b3788035c scrclean on lua scripts (nw) 2016-03-29 08:49:47 +02:00
hap
d76a9644cf tms1k: split part 3, done 2016-03-16 02:59:29 +01:00
hap
1a479042cf tms1k: split part 2, renamed folder tms0980 to tms1000 2016-03-16 01:33:56 +01:00
hap
ce5cb07631 tms1k: split part 2, renamed files 2016-03-16 01:26:37 +01:00
AJR
0d8df9d595 Make generic VTLB implementation a modern device interface (nw) 2016-02-07 01:42:58 -05:00
Miodrag Milanovic
700683468a Removed dead PPC code (nw) 2015-12-09 10:25:40 +01:00
Felipe Corrêa da Silva Sanches
0618c642ba adding a basic machine driver for the Patinho Feio and setting up build system for the driver and the CPU module 2015-12-06 13:32:03 -02:00
Miodrag Milanovic
1fe2587c86 This one is not used in compile (nw) 2015-11-15 12:20:35 +01:00
Miodrag Milanovic
0f8471d937 Finished adding to lua, some included cpp renamed to inc (nw) 2015-11-12 15:00:07 +01:00
Miodrag Milanovic
5deec43cbc update build scripts for rename c - > cpp (nw) 2015-11-08 13:26:29 +01:00
David Haywood
965e52dff8 mask address space for a2600 in the CPU (m6507) not in the driver. 2015-10-30 00:50:38 +00:00
David Haywood
de9353adcb create derived CPU type so that code can be put in the correct place (nw) 2015-10-29 19:21:01 +00:00
Miodrag Milanovic
ee7ff77255 update build scripts and code change in order to fix compile (nw) 2015-09-13 09:20:24 +02:00
therealmogminer@gmail.com
5d7c5fc62b nw, add skeleton and disassembler for DEC PDP-8 CPU 2015-08-13 14:38:30 +02:00
therealmogminer@gmail.com
14c07a34b1 Fix the majority of CEN64 SSE stuff, nw 2015-07-09 13:30:12 +02:00
hap
563b496792 renamed some cpu core inc files to c 2015-07-03 23:04:24 +02:00
hap
9c8b2c6a1a moved sm510/11/12 specifics to their own files 2015-07-03 21:34:53 +02:00
hap
2b8c61e22b ok, fixed build 2015-07-03 19:51:51 +02:00
hap
7b0b0bbc95 added SM510 cpu skeleton 2015-06-30 02:10:33 +02:00
Miodrag Milanovic
89669187a7 arm7 also use drc code (nw) 2015-06-21 09:07:06 +02:00
Miodrag Milanovic
5a7a29e833 some metadata fixes (nw) 2015-06-20 20:10:19 +02:00
Miodrag Milanovic
654a5ca29b update metadata in lua files (nw) 2015-06-20 13:21:10 +02:00
fulivi
7717489f3e hp64k: Preliminary version of HP Hybrid CPU (no interrupts & no DMA yet) 2015-06-03 14:22:59 +02:00
hap
4587bb0369 added MELPS 4 skeleton 2015-05-19 23:34:20 +02:00
hap
a9fa89ef41 moved E0C6S46 to its own file 2015-05-09 19:47:27 +02:00
Miodrag Milanovic
ca37d40f69 Removed comments and added generic license for whole team on top (nw) 2015-05-09 16:05:30 +02:00
hap
fc68370aa5 added E0C6200 cpu skeleton.
also commented out some cpu cores from mame.lua, not needed anymore for unidasm compile due to this check:
if (CPUS["MYCPU"]~=null or _OPTIONS["with-tools"]) then
2015-05-05 15:54:07 +02:00
Miodrag Milanovic
c334fda9a9 Start adding .h and .inc files to help usage inside IDE's like VS and XCode (nw) 2015-04-11 14:17:02 +02:00
Miodrag Milanovic
590f20477c fix custombuild task missing in cpu.lua (nw) 2015-04-08 18:15:40 +02:00
Miodrag Milanovic
899f23a7ec Added PYTHON_EXECUTABLE to use differently named python executable(nw) 2015-04-08 14:19:43 +02:00
Miodrag Milanovic
1026d09afa Moved creation of most non-layout files out of makefile (nw) 2015-04-04 14:44:06 +02:00
Miodrag Milanovic
2df0d9deed Added generated m68kops files to tree, added makefile for developers working on core (nw) 2015-04-03 15:59:18 +02:00
Miodrag Milanovic
d5dd20d82d added back unidasm, and enabled building even in tiny builds (nw) 2015-03-30 09:25:12 +02:00
Miodrag Milanovic
7f1ad1db99 Explicit file listing in lua scripts making generate much much faster (nw) 2015-03-28 10:10:03 +01:00
Miodrag Milanovic
3d34fd00eb fix for DRC (nw) 2015-03-26 19:29:26 +01:00
Miodrag Milanovic
f76d59c41d Moved build system to GENie [Miodrag Milanovic]
make TARGET=mess -j19

will generate all needed files and build MESS, while developing you can use

make TARGET=mess COMPILE=1 -j19
to prevent rebuilding of make files.

Build system have automatic generate of dependencies so will do incremental builds fine.

make clean
will remove all generated files/projects and obj files
2015-03-26 09:00:39 +01:00