diff options
author | Vas Crabb <vas@vastheman.com> | 2019-11-24 13:52:11 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2019-11-24 13:52:11 +1100 |
commit | e64edf6c7127fb8291a157026f3ac72e38c78d80 (patch) | |
tree | 092564456a138ad98775b989ea6073e4c75a7abd /src/mame/machine | |
parent | 6e8748952730a23a507c415c92398205238d1367 (diff) |
srcclean and indentation cleanup (nw)
Diffstat (limited to 'src/mame/machine')
-rw-r--r-- | src/mame/machine/315_5649.cpp | 2 | ||||
-rw-r--r-- | src/mame/machine/elan_eu3a05commonsys.cpp | 128 | ||||
-rw-r--r-- | src/mame/machine/hp80_optrom.cpp | 2 | ||||
-rw-r--r-- | src/mame/machine/m6502_vt1682.cpp | 6 | ||||
-rw-r--r-- | src/mame/machine/thomflop.h | 2 |
5 files changed, 70 insertions, 70 deletions
diff --git a/src/mame/machine/315_5649.cpp b/src/mame/machine/315_5649.cpp index ef039b08e71..6b2560c7d44 100644 --- a/src/mame/machine/315_5649.cpp +++ b/src/mame/machine/315_5649.cpp @@ -164,7 +164,7 @@ WRITE8_MEMBER( sega_315_5649_device::write ) case 0x03: case 0x04: case 0x05: - case 0x06: // when in counter mode, bit 7 - 0 reset counters (not implemented) + case 0x06: // when in counter mode, bit 7 - 0 reset counters (not implemented) m_port_value[offset] = data; m_out_port_cb[offset](data); break; diff --git a/src/mame/machine/elan_eu3a05commonsys.cpp b/src/mame/machine/elan_eu3a05commonsys.cpp index 3f8de8ec50c..b4695f5e5b8 100644 --- a/src/mame/machine/elan_eu3a05commonsys.cpp +++ b/src/mame/machine/elan_eu3a05commonsys.cpp @@ -5,20 +5,20 @@ #include "elan_eu3a05commonsys.h" /* - Both the Elan EU3A05 and EU3A14 CPU types implement some kind of custom interrupt handling + Both the Elan EU3A05 and EU3A14 CPU types implement some kind of custom interrupt handling - It isn't clear if this is a completely new addition to the CPU, or just an interface / controller - sitting on top of the existing NMI or IRQ support in the core providing custom vectors. + It isn't clear if this is a completely new addition to the CPU, or just an interface / controller + sitting on top of the existing NMI or IRQ support in the core providing custom vectors. - The interrupt handlers are 16 4-byte entries starting at 0xffb0 in memory space + The interrupt handlers are 16 4-byte entries starting at 0xffb0 in memory space */ /* - ----------------------- + ----------------------- Custom Interrupt purposes - ----------------------- + ----------------------- TETRIS (enables 5007 : 0a, 5008: 0f) @@ -48,7 +48,7 @@ ffdc (enabled) - probably P2 input related? ADC interrupt? accesses 501d / 501b - ----------------------- + ----------------------- SPACE INVADERS @@ -76,14 +76,14 @@ ffc8 (enabled by phoenix) decreases 304 stuff with 50a5 bit 10 - + ffcc (enabled by phoenix) uses 307 stuff with 50a5 bit 20 ffd0 dead loop - + ffd4 (enabled by all games) main interrupt @@ -105,63 +105,63 @@ ffec dead loop - ----------------------- - - AIR BLASTER JOYSTICK + ----------------------- + + AIR BLASTER JOYSTICK - all these 60xx jumps expect bank 00 or 0e or 3a or 7d to be active, so IRQs must be masked + all these 60xx jumps expect bank 00 or 0e or 3a or 7d to be active, so IRQs must be masked - ffb0: jmp to 6000 (ends up jumping to pointer from RAM) - ffb4: jmp to e08e (stuff with 500c/500d/506e etc.) - ffb8: jmp to 601c (stub handler) (has function in bank 0e - writes 00 then 01 to 50a5) - ffbc: jmp to 602a (stub handler) - ffc0: jmp to 6038 (stub handler) - ffc4: jmp to 6046 (stub handler) - ffc8: jmp to 6054 (stub handler) - ffcc: jmp to 6062 (stub handler) - ffd0: jmp to 6070 (stub handler) - ffd4: jmp to 607e (valid code - main IRQ?) - ffd8: jmp to 608c (stub handler) - ffdc: jmp to 609a (stub handler) - ffe0: jmp to 60a8 (stub handler) - ffe4: jmp to 60b6 (stub handler) - ffe8: jmp to 60c4 (stub handler) - ffec: jmp to 60d2 (stub handler) + ffb0: jmp to 6000 (ends up jumping to pointer from RAM) + ffb4: jmp to e08e (stuff with 500c/500d/506e etc.) + ffb8: jmp to 601c (stub handler) (has function in bank 0e - writes 00 then 01 to 50a5) + ffbc: jmp to 602a (stub handler) + ffc0: jmp to 6038 (stub handler) + ffc4: jmp to 6046 (stub handler) + ffc8: jmp to 6054 (stub handler) + ffcc: jmp to 6062 (stub handler) + ffd0: jmp to 6070 (stub handler) + ffd4: jmp to 607e (valid code - main IRQ?) + ffd8: jmp to 608c (stub handler) + ffdc: jmp to 609a (stub handler) + ffe0: jmp to 60a8 (stub handler) + ffe4: jmp to 60b6 (stub handler) + ffe8: jmp to 60c4 (stub handler) + ffec: jmp to 60d2 (stub handler) - fff0: 7d + fff0: 7d - fffa: e0 60 (60e0 vector) (stub handler) - fffc: 88 e1 (e188 startup vector) - fffe: 02 e0 (e002 vector) + fffa: e0 60 (60e0 vector) (stub handler) + fffc: 88 e1 (e188 startup vector) + fffe: 02 e0 (e002 vector) - ----------------------- - - GOLDEN TEE HOME + ----------------------- - ffb0 rti - ffb4 rti - ffb8 rti - ffbc rti + GOLDEN TEE HOME - ffc0 rti - ffc4 rti - ffc8 rti - ffcc rti + ffb0 rti + ffb4 rti + ffb8 rti + ffbc rti - ffd0 rti - ffd4 main irq? - ffd8 rti - ffdc rti + ffc0 rti + ffc4 rti + ffc8 rti + ffcc rti - ffe0 something with 5045 bit 0x08 and 9d in ram (increase or decrease) (ADC interrupt) - ffe4 something with 5045 bit 0x20 and 9c in ram (increase of decrease) (ADC interrupt) + ffd0 rti + ffd4 main irq? + ffd8 rti + ffdc rti - ffe8 rti - ffec rti + ffe0 something with 5045 bit 0x08 and 9d in ram (increase or decrease) (ADC interrupt) + ffe4 something with 5045 bit 0x20 and 9c in ram (increase of decrease) (ADC interrupt) - regular NMI (e3f0 - jump to ($19e2) which seems to point to rti, but could move..) - regular IRQ (e3f3 - points to rti) + ffe8 rti + ffec rti + + regular NMI (e3f0 - jump to ($19e2) which seems to point to rti, but could move..) + regular IRQ (e3f3 - points to rti) */ @@ -246,12 +246,12 @@ void elan_eu3a05commonsys_device::device_timer(emu_timer &timer, device_timer_id void elan_eu3a05commonsys_device::device_start() { save_item(NAME(m_rombank_lo)); - save_item(NAME(m_rombank_hi)); - save_item(NAME(m_intmask)); - save_item(NAME(m_custom_irq)); - save_item(NAME(m_custom_nmi)); - save_item(NAME(m_custom_irq_vector)); - save_item(NAME(m_custom_nmi_vector)); + save_item(NAME(m_rombank_hi)); + save_item(NAME(m_intmask)); + save_item(NAME(m_custom_irq)); + save_item(NAME(m_custom_nmi)); + save_item(NAME(m_custom_irq_vector)); + save_item(NAME(m_custom_nmi_vector)); m_unk_timer = timer_alloc(TIMER_UNK); m_unk_timer->adjust(attotime::never); @@ -291,10 +291,10 @@ WRITE8_MEMBER(elan_eu3a05commonsys_device::intmask_w) void elan_eu3a05commonsys_device::generate_custom_interrupt(int level) { // Air Blaster uses brk in the code, which is problematic for custom IRQs - // m_custom_irq = 1; - // m_custom_irq_vector = 0xffd4; - // m_maincpu->set_input_line(INPUT_LINE_IRQ0,HOLD_LINE); - + // m_custom_irq = 1; + // m_custom_irq_vector = 0xffd4; + // m_maincpu->set_input_line(INPUT_LINE_IRQ0,HOLD_LINE); + // 5007 5008 // --ee --v- ssss ss-t // 10 5432 10 diff --git a/src/mame/machine/hp80_optrom.cpp b/src/mame/machine/hp80_optrom.cpp index c61646515ba..b8389dcf858 100644 --- a/src/mame/machine/hp80_optrom.cpp +++ b/src/mame/machine/hp80_optrom.cpp @@ -23,7 +23,7 @@ DEFINE_DEVICE_TYPE(HP80_OPTROM, hp80_optrom_device, "hp80_optrom", "HP80 optiona // +------------------+ hp80_optrom_device::hp80_optrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, HP80_OPTROM, tag, owner, clock), - device_image_interface(mconfig, *this), + device_image_interface(mconfig, *this), m_select_code(0) { } diff --git a/src/mame/machine/m6502_vt1682.cpp b/src/mame/machine/m6502_vt1682.cpp index 21e2a290d58..b2d3bec62f8 100644 --- a/src/mame/machine/m6502_vt1682.cpp +++ b/src/mame/machine/m6502_vt1682.cpp @@ -7,9 +7,9 @@ 6502 with instruction scrambling This form of scrambling is used in the VRT VT1682 - (it's used for the MiWi2 and InterAct consoles). - - This is simpler, permanently activated and consists of swapping opcode bits + (it's used for the MiWi2 and InterAct consoles). + + This is simpler, permanently activated and consists of swapping opcode bits 7 and 2. ***************************************************************************/ diff --git a/src/mame/machine/thomflop.h b/src/mame/machine/thomflop.h index e1ac27a036d..4bb2b05882a 100644 --- a/src/mame/machine/thomflop.h +++ b/src/mame/machine/thomflop.h @@ -146,7 +146,7 @@ private: // internal state std::unique_ptr<uint8_t[]> m_data; // enough for a whole track - uint32_t m_data_idx; // byte position in track + uint32_t m_data_idx; // byte position in track uint32_t m_start_idx; // start of write position uint32_t m_data_size; // track length uint8_t m_data_crc; // checksum when writing |