summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mcs48/mcs48.cpp
Commit message (Collapse)AuthorAgeFilesLines
* mcs48: remove todo note about EN/DIS I opcode not incrementing the timer, ↵ hap2024-12-051-35/+63
| | | | doc is wrong, and add another note
* mb88xx: add pla mask option hap2024-12-021-1/+1
|
* mcs48: rename n7751 to upd7751 hap2024-08-201-7/+9
|
* mcs48: shorthand variable types hap2024-08-151-153/+153
|
* mcs48: improve EA pin and add it to advision and mario, hap2024-08-151-60/+68
| | | | mario: mark sound mcu as NO_DUMP, remove USE_8039
* mcs48: mcu reset sets bus to hi-z if ea=0 hap2024-08-151-8/+14
|
* emu/devcb.h: Eliminated the need to call resolve() on callbacks. (#11333) Vas Crabb2023-06-171-11/+3
| | | | | | | | | | | | 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.
* Interrupt callback rationalization AJR2023-03-111-5/+5
| | | | | | | | | | | - 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
* pic16c5x: statusreg high bits are 1 on old GI PIC hap2023-01-071-4/+9
|
* mcs48: correct opcode cycles for IN A, DBB and OUT DBB, A [devsaurus] hap2022-12-261-2/+2
|
* othello: hook up upd7751c sample player hap2022-10-091-2/+2
|
* src/devices/cpu: Remove #include "debugger.h" where no longer necessary AJR2022-04-061-2/+0
|
* hh_sm510: small correction to fowling svg hap2021-11-201-27/+24
|
* Debugger-related feature removals and cleanup AJR2021-08-151-1/+1
| | | | | | | | - Remove the hotspot read tracker. This was never robustly implemented, but changes to the memory system made it much less useful, and the "speedup opportunities" which it aimed to determine are not very important from a current emulation standpoint. - Remove the CURSP/GENSP state symbol and the generic sp() getter. Stacking semantics vary too much between CPU architectures for this to be of much use. (A "SP" symbol has been added to a few CPU cores whose stack pointers were otherwise not being registered.) - Remove the cached pointer to device_state_interface and the state() fast accessor from device_t. Most users of device_state_interface either already had a pointer to the specific CPU device type or needed to check first for the presence of the interface. - Change the PC memory write tracker to use pcbase(), which works even when the instruction callback is masked out, instead of peeking at the PC history index. - Remove some obsolete watchpoint-related definitions from machine.h.
* mcs48: fix possible problem with A11 and RET during interrupt hap2021-01-101-3/+3
|
* odyssey2: correct copyright holders hap2021-01-091-0/+2
|
* mcs48: single line comments c++ style hap2021-01-081-123/+122
|
* mcs48: correct copyright holders hap2021-01-081-1/+1
|
* mcs48: small bugfix for DA A hap2021-01-081-3/+4
|
* mcs48: separate F0/F1 from upi41 STS, fix F0 flag read from upi41_master_r hap2021-01-081-27/+22
|
* odyssey2: fix loading games with -cart not working hap2021-01-021-10/+25
|
* mcs48: execute_jcc param is a bool, not u8 hap2020-10-111-2/+2
|
* mcs48: check irq before opcode to fix firefox, but re-add wy100 hack hap2020-10-111-5/+17
|
* mcs48: fix a regression with previous change to strt_cnt hap2020-09-141-1/+1
|
* mcs48: fix problem with strt_cnt if counter was already enabled hap2020-08-281-2/+8
|
* odyssey2: make videopac the parent set hap2020-08-251-0/+2
|
* New working software list additions hap2020-08-191-1/+2
| | | | | ----------------------------------- odyssey2: Martian Threat (Euro, Prototype, Alt) [unknown]
* odyssey2: add cartridge B pin hap2020-08-181-1/+1
|
* odyssey2: disable logging hap2020-08-141-2/+0
|
* mcs48: fix cond jump address if argument fetch was at 0x7ff or 0xfff hap2020-08-121-2/+3
|
* mcs48: fix possible missed timer overflow if burn_cycles is larger than 2 hap2020-08-111-14/+16
|
* mcs48: get rid of wy100 irq hack hap2020-08-081-13/+5
|
* mcs48: burn opcode cycles before executing opcode hap2020-08-081-267/+270
|
* mcs48: fix cycles not deducted for timer irq, get rid of kaypro10 hack hap2020-08-071-306/+285
|
* emumem: A little more speedup. cache and specific change syntax, and are ↵ Olivier Galibert2020-05-251-7/+7
| | | | | | | | | | | | | | | | not pointers anymore [O. Galibert] The last(?) two changes are: - Add a template parameter to everything (theoretically the address space width, in practice a level derived from it to keep as much compatibility between widths as possible) so that the shift size becomes a constant. - Change the syntax of declaring and initializing the caches and specifics so that they're embedded in the owner device. Solves lifetime issues and also removes one indirection (looking up the base dispatch pointer through the cache/specific pointer).
* devices/cpu: simplified some handlers (nw) Ivan Vangelista2020-03-311-2/+2
|
* sweeten most of the remaining arrays of delegates (nw) Vas Crabb2020-02-071-10/+8
|
* Make devdelegate more like devcb for configuration. This is a Vas Crabb2019-10-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fundamental change to show device delegates are configured. Device delegates are now aware of the current device during configuration and will resolve string tags relative to it. This means that device delegates need a device to be supplied on construction so they can find the machine configuration object. There's a one-dimensional array helper to make it easier to construct arrays of device delegates with the same owner. (I didn't make an n-dimensional one because I didn't hit a use case, but it would be a simple addition.) There's no more bind_relative_to member - just call resolve() like you would for a devcb. There's also no need to cast nullptr when creating a late bind device delegate. The flip side is that for an overloaded or non-capturing lambda you'll need to cast to the desired type. There is one less conditional branch in the hot path for calls for delegates bound to a function pointer of member function pointer. This comes at the cost of one additional unconditional branch in the hot path for calls to delegates bound to functoids (lambdas, functions that don't take an object reference, other callable objects). This applies to all delegates, not just device delegates. Address spaces will now print an error message if a late bind error is encountered while installing a handler. This will give the range and address range, hopefully making it easier to guess which memory map is faulty. For the simple case of allowing a device_delegate member to be configured, use a member like this: template <typename... T> void set_foo(T &&...args) { m_foo_cb.set(std::forward<T>(args)...); } For a case where different delegates need to be used depending on the function signature, see src/emu/screen.h (the screen update function setters). Device delegates now take a target specification and function pointer. The target may be: * Target omitted, implying the current device being configured. This can only be used during configuration. It will work as long as the current device is not removed/replaced. * A tag string relative to the current device being configured. This can only be used during configuration. It will not be callable until .resolve() is called. It will work as long as the current device is not removed/replaced. * A device finder (required_device/optional_device). The delegate will late bind to the current target of the device finder. It will not be callable until .resolve() is called. It will work properly if the target device is replaced, as long as the device finder's base object isn't removed/replaced. * A reference to an object. It will be callable immediately. It will work as long as the target object is not removed/replaced. The target types and restrictions are pretty similar to what you already have on object finders and devcb, so it shouldn't cause any surprises. Note that dereferencing a device finder will changes the effect. To illustrate this: ... required_device<some_device> m_dev; ... m_dev(*this, "dev") ... // will late bind to "dev" relative to *this // will work if "dev" hasn't been created yet or is replaced later // won't work if *this is removed/replaced // won't be callable until resolve() is called cb1.set(m_dev, FUNC(some_device::w)); ... // will bind to current target of m_dev // will not work if m_dev is not resolved // will not work if "dev" is replaced later // will be callable immediately cb2.set(*m_dev, FUNC(some_device::w)); ... The order of the target and name has been reversed for functoids (lambdas and other callable objects). This allows the NAME macro to be used on lambdas and functoids. For example: foo.set_something(NAME([this] (u8 data) { m_something = data; })); I realise the diagnostic messages get ugly if you use NAME on a large lambda. You can still give a literal name, you just have to place it after the lambda rather than before. This is uglier, but it's intentional. I'm trying to drive developers away from a certain style. While it's nice that you can put half the driver code in the memory map, it detracts from readability. It's hard to visualise the memory range mappings if the memory map functions are punctuated by large lambdas. There's also slightly higher overhead for calling a delegate bound to a functoid. If the code is prettier for trivial lambdas but uglier for non-trivial lambdas in address maps, it will hopefully steer people away from putting non-trivial lambdas in memory maps. There were some devices that were converted from using plain delegates without adding bind_relative_to calls. I fixed some of them (e.g. LaserDisc) but I probably missed some. These will likely crash on unresolved delegate calls. There are some devices that reset delegates at configuration complete or start time, preventing them from being set up during configuration (e.g. src/devices/video/ppu2c0x.cpp and src/devices/machine/68307.cpp). This goes against the design principles of how device delegates should be used, but I didn't change them because I don't trust myself to find all the places they're used. I've definitely broken some stuff with this (I know about asterix), so report issues and bear with me until I get it all fixed.
* mcs48.cpp: Document a few more variants (nw) AJR2019-07-041-0/+5
|
* mcs48: A better fix for the JNI problem (nw) AJR2019-07-021-6/+10
|
* mcs48: Workaround for interrupt latency issue (nw) AJR2019-07-011-2/+6
|
* mcs48: Further distinction of UPI variants (nw) AJR2019-06-161-30/+42
|
* mindset: Fix the 8042s, clock starts ticking [O. Galibert] Olivier Galibert2019-06-161-0/+6
|
* mcs48: Update documentation (nw) AJR2019-06-161-6/+10
|
* MT 05732 (nw) AJR2018-12-091-4/+5
|
* sdk51: Add keyboard (nw) AJR2018-10-061-1/+1
| | | | mcs48: Fix length of flags display
* mcs48: Set lower 4 bits of P2 to input during (and after) MOVD A,Pp AJR2018-10-031-4/+10
| | | | i8243: Release P2 output after completion of read operation
* i8243: Device overhaul (nw) AJR2018-09-241-1/+1
| | | | | | | - Fix critical bugs with P4-P7 reads, both in this device and in the emulation of the MCS-48 MOVD A,Pp instruction - Emulate the CS line, which will be useful for driving multiple 8243s - Provide a separate callback for each 4-bit port - Eliminate space and offset arguments from p2_r and p2_w
* mcs48: Eliminate now-unneeded arguments from p1_r and p2_r handlers (nw) AJR2018-09-231-11/+0
| | | | ins8250: Add interrupt line read handler for later use (nw)
* emumem: Rename direct_read_handler to memory_access_cache. Parametrize the ↵ Olivier Galibert2018-05-111-3/+3
| | | | template on more information (data width, endianness) to make it possible to turn it into an handler cache eventually, and not just a memory block cache. Make it capable of large and unaligned accesses. [O. Galibert]