summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/hmcs40
Commit message (Collapse)AuthorAgeFilesLines
* diexec: Add callback to allow debugger to break into the middle of wait-type ↵ AJR2024-11-171-0/+1
| | | | | | | | | | 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
* Added ATTR_COLD to common lifecycle methods for many files in src/devices. ↵ holub2024-09-271-7/+7
| | | | (#12822)
* hmcs40: add hmcs46/hmcs47 hap2024-09-254-30/+191
|
* sbackgc: just use cpu_device for m_maincpu hap2024-09-241-1/+2
|
* sbackgc: invert buttons_r, hap2024-09-241-1/+1
| | | | hmcs40d: set page start to 0x3f
* hmcs400: add standby/stop mode hap2024-09-202-3/+3
|
* hmcs400: add irq controller hap2024-09-192-9/+9
|
* diexec: remove vestigal execute_input_lines() hap2024-09-181-1/+0
|
* hmcs400: add i/o ports hap2024-09-183-50/+56
|
* hmcs400: fill in most of the opcodes hap2024-09-163-44/+52
|
* hmcs400: add opcode placeholders hap2024-09-162-243/+122
|
* hmcs400: add disassembler hap2024-09-162-6/+1
|
* hmcs400: add cpu skeleton device hap2024-09-165-117/+128
|
* New working clones hap2024-09-071-5/+6
| | | | | ------------------ The Classic (model CC8) [Berger]
* misc hap disasm: correction to prev commit hap2024-03-071-1/+1
|
* misc hap disasm: move opcode mnemonics enum out of header file hap2024-03-072-16/+17
|
* Systems promoted to working hap2023-06-171-46/+45
| | | | | --------------------------- Strobe [hap, Sean Riddle]
* emu/devcb.h: Eliminated the need to call resolve() on callbacks. (#11333) Vas Crabb2023-06-172-14/+8
| | | | | | | | | | | | Read callbacks now need a default return value supplied at construction. Replaced isnull() with isunset() which tells you if the callback wasn't configured rather than whether it isn't safe to call. Enabled validation of device callbacks (it seems it was disabled at some point, probably accidentally). Device callbacks and object finders now implement the same interface for resolution.
* mn1400: add disassembler hap2023-05-012-21/+21
|
* Interrupt callback rationalization AJR2023-03-111-1/+1
| | | | | | | | | | | - 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
* eturtles: add game speed control hap2022-08-143-3/+15
|
* hmcs40: block interrupt after conditional jump hap2022-08-133-31/+12
|
* cpu: remove obsolete debugger.h include from some of my files hap2022-04-021-1/+0
|
* Debugger feature improvements AJR2022-03-271-1/+1
| | | | | | | | - Add 'gbt' and 'gbf' debugger commands to step until a true or false conditional branch has been detected. - Update over 100 of the disassemblers in MAME to output a new STEP_COND flag for all conditional branches. Besides being used for execution of the new 'gbt' and 'gbf' commands, this flag also now helps the debugger 'out' command to properly handle conditional return instructions. - Remove STEP_OVER from many instructions that aren't actually subroutine calls (e.g. DJNZ on Z80). A 'gni' debugger command (go next instruction) has been added to accommodate some of the misuse. - Add instruction flag support to several more disassemblers that lacked them entirely (e.g. st62xx) - Don't pass over delay slots for debugging in ASAP core
* b5000: added easy opcodes hap2022-03-182-15/+12
|
* b5000: add disassembler hap2022-03-171-1/+1
|
* tlcs900: check timer enable before clocking chained timer, this improves ↵ hap2022-03-151-2/+2
| | | | ngpc svccard2 [dink]
* added MM76 disassembler and preliminary PPS-4/1 MCU core [hap] hap2021-02-262-8/+8
| | | | | | New machines marked as NOT_WORKING ---------------------------------- Electronic Master Mind (Invicta) [hap, Sean Riddle]
* hmcs40: this should fix savestate regression (nw) hap2020-05-291-0/+1
|
* Machines promoted to working hap2020-04-231-7/+13
| | | | | ---------------------------- Crazy Kong (Gakken) [hap]
* hmcs40: change stack op (nw) hap2020-04-233-6/+17
|
* hmcs40: simplify internal timer (nw) hap2020-04-233-38/+17
|
* New machines marked as NOT_WORKING hap2020-04-222-2/+2
| | | | | ---------------------------------- Executive Chess [hap, Sean Riddle]
* sag: add cartridge and softwarelist (nw) hap2020-04-081-1/+3
|
* hmcs40: add note (nw) hap2020-04-041-5/+10
|
* that should be the rest of the devcb arrays switched to new syntax (nw) Vas Crabb2020-02-082-11/+7
|
* Make many device_execute_interface functions noexcept, including the ↵ AJR2019-11-091-5/+5
| | | | | | | | "information" overrides. This also covers several time-related functions in attotime, running_machine and emu_timer. (nw) m6805: Calculate min_cycles and max_cycles once at device_start time (Nw) attotime: Add as_khz and as_mhz (nw)
* hmcs40: remove port enum (nw) hap2019-06-161-12/+0
|
* disasm: init lfsr pc tables in constructor (nw) hap2019-04-232-44/+37
|
* (nw) Clean up the mess on master Vas Crabb2019-03-261-0/+1
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-1/+0
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* revert part of timer.h change (nw) hap2019-02-131-0/+1
|
* -cpu/cop400, dsp16, hmcs40: Removed MCFG macros. [Ryan Holtz] mooglyguy2018-12-162-79/+18
| | | | | | -drivers/advision, cidelsa, hh_cop400, hh_hmcs40, play_2, test_t400, thayers: Removed MACHINE_CONFIG macros. [Ryan Holtz] -machine/alpha8201: Removed MACHINE_CONFIG macros. [Ryan Holtz]
* devcb3 Vas Crabb2018-07-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are multiple issues with the current device callbacks: * They always dispatch through a pointer-to-member * Chained callbacks are a linked list so the branch unit can't predict the early * There's a runtime decision made on the left/right shift direction * There are runtime NULL checks on various objects * Binding a lambda isn't practical * Arbitrary transformations are not supported * When chaining callbacks it isn't clear what the MCFG_DEVCB_ modifiers apply to * It isn't possible to just append to a callback in derived configuration * The macros need a magic, hidden local called devcb * Moving code that uses the magic locals around is error-prone * Writing the MCFG_ macros to make a device usable is a pain * You can't discover applicable MCFG_ macros with intellisense * Macros are not scoped * Using an inappropriate macro isn't detected at compile time * Lots of other things This changeset overcomes the biggest obstacle to remving MCFG_ macros altogether. Essentially, to allow a devcb to be configured, call .bind() and expose the result (a bind target for the callback). Bind target methods starting with "set" repace the current callbacks; methods starting with "append" append to them. You can't reconfigure a callback after resolving it. There's no need to use a macro matching the handler signatures - use FUNC for everything. Current device is implied if no tag/finder is supplied (no need for explicit this). Lambdas are supported, and the memory space and offset are optional. These kinds of things work: * .read_cb().set([this] () { return something; }); * .read_cb().set([this] (offs_t offset) { return ~offset; }); * .write_cb().set([this] (offs_t offset, u8 data) { m_array[offset] = data; }); * .write_cb().set([this] (int state) { some_var = state; }); Arbitrary transforms are allowed, and they can modify offset/mask for example: * .read_cb().set(FUNC(my_state::handler)).transform([] (u8 data) { return bitswap<4>(data, 1, 3, 0, 2); }); * .read_cb().set(m_dev, FUNC(some_device::member)).transform([] (offs_t &offset, u8 data) { offset ^= 3; return data; }); It's possible to stack arbitrary transforms, at the cost of compile time (the whole transform stack gets inlined at compile time). Shifts count as an arbitrary transform, but mask/exor does not. Order of mask/shift/exor now matters. Modifications are applied in the specified order. These are NOT EQUIVALENT: * .read_cb().set(FUNC(my_state::handler)).mask(0x06).lshift(2); * .read_cb().set(FUNC(my_state::handler)).lshift(2).mask(0x06); The bit helper no longer reverses its behaviour for read callbacks, and I/O ports are no longer aware of the field mask. Binding a read callback to no-op is not supported - specify a constant. The GND and VCC aliases have been removed intentionally - they're TTL-centric, and were already being abused. Other quirks have been preserved, including write logger only logging when the data is non-zero (quite unhelpful in many of the cases where it's used). Legacy syntax is still supported for simple cases, but will be phased out. New devices should not have MCFG_ macros. I don't think I've missed any fundamental issues, but if I've broken something, let me know.
* maps: Finish devices/cpu (nw) Olivier Galibert2018-04-201-21/+25
|
* 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-252-3/+3
|
* Blind faith fixed long names for almost all CPUs (nw) angelosa2018-03-151-20/+20
| | | | mb86235.cpp: renamed pcs_ptr into pcp, and added a file for future interpreter core (nw)
* destaticify initializations (nw) (#3289) wilbertpol2018-03-041-25/+25
| | | | | | * destaticify initializations (nw) * fix this->set_screen (nw)
* move some cpu internal memmaps from public to protected (nw) hap2018-02-131-4/+6
|