summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/clipper/clipper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* diexec: Add callback to allow debugger to break into the middle of wait-type ↵ AJR2024-11-171-2/+3
| | | | | | | | | | instructions whose execution time is normally indefinite. When this happens, a special message may be printed to the debug console stating the location of the last actual instruction executed before the wait (if there was one). Note that since the callback ignores the current value of the program counter, this special type of debugger break cannot be entered through breakpoints or instruction stepping commands. The callback also leaves no effect on PC history tracking or trace logs. * cpu/hd61700, cpu/tms32031: Add standard IRQ callback * cpu/m68000gen.py: Change name of invoked executable to bin/python3 * cpu/m6809: Eliminate PC "massaging" for SYNC and similar instructions
* Cleaned up logging across the codebase (GitHub #10183). (#11250) [Ryan Holtz] MooglyGuy2023-05-231-1/+0
| | | | | * Converted various logging patterns to use logmacro.h consistently. * Removed redefinitions of LOG_GENERAL. * Use LOGMASKED in more places.
* dimemory: Add the target address space to translate, wrap the constants Olivier Galibert2023-03-181-2/+2
| | | | divtlb: Wrap the constants
* Interrupt callback rationalization AJR2023-03-111-2/+2
| | | | | | | | | | | - Make CPUs pass interrupt return PC as a second argument to standard_irq_callback - Add interrupt return PC to "Stopped at interrupt" message produced by debugger 'gint' command - Add messages to trace logs whenever interrupts are accepted - Attempt to step over interrupt routines for applicable debugger commands - Eliminate standard_irq_callback_member wrapper method - Update many CPU cores to invoke standard_irq_callback at the start of or during interrupt processing, rather than at the end or when the input line changes - Remove IRQ callbacks for some input lines that never cause interrupts - mb88xx, mcs48: Add IRQ callbacks for internal interrupts
* eminline.h: Additions AJR2022-09-251-34/+9
| | | | | | - Add mul_16x16 inline function to perform a signed 16x16-bit multiplication with 32-bit result. This was moved from cpu/e132xs to unite it with the analogous 32x32 operations. - Add rotl_32, rotr_32, rotl_64 and rotr_64 inline functions to perform 32-bit and 64-bit circular shifts in either direction by the specified number of places, modulo 32 or 64. It is anticipated that these will eventually be replaced by standard functions in C++20's <bit> header, and so they have been given similar signatures and semantics (which are also validity-checked). - Remove LSL, LSR, ROL and ROR macros from cpu/arm and cpu/arm7 to ameliorate unnecessary obfuscation.
* src/devices/cpu: Remove #include "debugger.h" where no longer necessary AJR2022-04-061-1/+0
|
* clipper, cammu: Initialize more members AJR2020-10-141-0/+7
|
* various drivers: READ/WRITE macros removal (nw) Ivan Vangelista2020-05-151-1/+1
|
* clipper: migrate to softfloat3 (nw) Patrick Mackinlay2019-10-251-73/+73
|
* interpro: devcb3 goodness (nw) (#3737) Patrick Mackinlay2018-08-071-109/+160
| | | | | | | | | | | | | | | | | * interpro: devcb3 goodness (nw) * interpro: more mcfg and some devcb3 (nw) Please excuse the mess in the edge driver for now - this is a major WIP and not understood at all well at this point. * interpro: various fixes/improvements (nw) clipper: fix bugs in carry flag handling, prefer sign bit for tests cammu: implement tlb, use memory_access_cache, remove device address map interpro: use locals for mouse and bus ioga: use memory_access_cache * interpro: doh (nw)
* (nw) Fixed the build.... hopefully Robbbert2018-07-061-3/+3
|
* clipper: minor bugfix (nw) (#3731) Patrick Mackinlay2018-07-061-5/+5
| | | This enables SoftPC to run.
* interpro: CLIX boots (on the ip2000) (#3730) Patrick Mackinlay2018-07-051-18/+80
| | | Too many changes to describe in detail. A rewrite of the interrupt and dma code in the ioga, and fixes to the cpu and mmu were the most important things.
* interpro: lle keyboard working (#3608) Patrick Mackinlay2018-05-251-1/+1
| | | | | | | | | | | | * interpro: lle keyboard working * lle keyboard working, mapping incomplete * slow down cpu, fixes keyboard boot and graphic glitching * remove unnecessary reset suspend/timer * 6700/6800 eprom confirmed to match 2700/2800 * fix line clipping crash and remove noisy logging * interpro: don't use UCHAR_MAMEKEY (nw)
* clipper: two more instructions (nw) Patrick Mackinlay2018-05-091-5/+15
| | | | Implemented two compare and delayed branch instructions based on observed use in system software. No documentation has been found for these and other C400 instructions.
* interpro: minor changes (nw) Patrick Mackinlay2018-04-121-0/+9
| | | | | * debugger address translation * documentation edits
* clipper: minor improvements (nw) (#3400) Patrick Mackinlay2018-03-301-161/+187
| | | | | | | | | | | | | | * clipper: minor improvements (nw) * save all state * improve multiply instructions, add condition codes * fix register pair load/store * clean up pc handling * switch to C++ cast syntax, other minor formatting * clipper: oops (nw) * clipper: double oops (nw)
* Reshuffle some stuff: Vas Crabb2018-03-281-2/+2
| | | | | | * Move around the debugger hooks to get a small but measurable performance increase * Remove emucore from external tools * Improve performance of DSP16 interpreter a little by generating six variants of execution loop
* don't pass so many naked pointers around (nw) Vas Crabb2018-03-251-2/+2
|
* interpro: various improvements Patrick Mackinlay2018-02-271-194/+318
| | | | | | | | | | | | | | Many changes, most notable end result is the ability to boot the "blue screen" rebuild floppy, and nearly booting CLIX (hangs trying to mount the filesystems). Summary of changes: * added a softlist * refactored cpu/mmu memory access * added alignment faults * implemented most c400 instructions * fixed wait instruction * corrections to interpro driver * removed broken forced interrupt handling * added support for dma virtual addressing
* interpro: cpu and mmu improvements Patrick Mackinlay2017-11-271-395/+539
| | | | | | | | * implemented most clipper cpu and mmu exceptions * completed c300 instructions, adjusted for c400 * improved cammu dynamic translation and added faults * refactored c300 cammu into separate instruction/data instances * configurable ioga and sr bus memory access
* dvdisasm: Overhaul [O. Galibert] Olivier Galibert2017-11-261-2/+3
| | | | | | | | Disassemblers are now independant classes. Not only the code is cleaner, but unidasm has access to all the cpu cores again. The interface to the disassembly method has changed from byte buffers to objects that give a result to read methods. This also adds support for lfsr and/or paged PCs.
* clipper: no unions (nw) Patrick Mackinlay2017-11-171-119/+87
|
* clipper: floating point improvements Patrick Mackinlay2017-11-171-149/+373
| | | | | | * switched to softfloat for fp * implemented fp macro instructions * implemented fp exceptions and rounding
* Explicitly allow floating point values for state registers AJR2017-10-131-2/+0
| | | | Note that the internal debugger's expression interpreter is not set up to handle floating point values at all, so they remain disabled there.
* Temporarily remove floating-point state registration (nw) AJR2017-10-131-0/+2
|
* clipper: interrupt handling fixes Patrick Mackinlay2017-09-051-34/+80
| | | | | | | * improve interrupt vector handling * fix C300 interrupt entry and stack frame * fix pushw where source register is same as stack register * switch to logmacro.h logging
* clipper: popw fix (nw) Patrick Mackinlay2017-07-201-1/+2
|
* make device_memory_interface slightly less of a special case, use a typedef ↵ Vas Crabb2017-07-101-2/+2
| | | | to avoid nested templates everywhere (nw)
* dimemory: Lift the cap on the number of address spaces per device [O. Galibert] Olivier Galibert2017-07-031-9/+5
|
* minor fixes Patrick Mackinlay2017-06-201-1/+1
|
* added cpu id support Patrick Mackinlay2017-06-071-12/+10
|
* fix some log messages Patrick Mackinlay2017-05-231-2/+2
|
* Move static data out of devices into the device types. This is a ↵ Vas Crabb2017-05-141-16/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* fix some device validation errors, also fix uninitialised members in some ↵ Vas Crabb2017-03-031-3/+3
| | | | devices using constructor delegation (nw)
* Self-registering devices prep: Vas Crabb2017-02-271-3/+3
| | | | | | | | | | | | | | * Make device_creator a variable template and get rid of the ampersands * Remove screen.h and speaker.h from emu.h and add where necessary * Centralise instantiations of screen and speaker finder templates * Add/standardise #include guards in many hearers * Remove many redundant #includes * Order #includesr to help catch headers that can't be #included alone (nw) This changes #include order to be prefix, unit header if applicable then other stuff roughly in order from most dependent to least dependent library. This helps catch headers that don't #include things that they use.
* srcclean (nw) Vas Crabb2017-02-191-62/+62
|
* clipper: portableize compile, reenable ip2800 driver (nw) arbee2017-01-241-12/+38
|
* tidy up for pull request Patrick Mackinlay2017-01-241-310/+253
|
* split instruction/data, fix unaligned insn fetch Patrick Mackinlay2017-01-181-81/+78
|
* fix instruction fetch alignment Patrick Mackinlay2017-01-171-4/+16
|
* preparation for tlb/mmu support Patrick Mackinlay2017-01-161-15/+13
|
* improved condition codes, removed bitfields Patrick Mackinlay2017-01-131-152/+172
|
* improved register handling Patrick Mackinlay2017-01-121-223/+229
|
* arithmetic shift flags Patrick Mackinlay2017-01-121-0/+32
|
* fixed logical shifts, removed unneeded int32_t casts Patrick Mackinlay2017-01-111-22/+22
|
* implement condition codes for rot and shl Patrick Mackinlay2017-01-111-0/+14
|
* tidy up bitfield naming Patrick Mackinlay2017-01-091-228/+228
|
* more interrupt handling improvements Patrick Mackinlay2017-01-041-6/+0
|
* improved nmi/irq handling Patrick Mackinlay2017-01-041-25/+38
|