diff options
author | bmcphail <bmcphail@vcmame.net> | 2018-08-22 16:29:52 -0400 |
---|---|---|
committer | bmcphail <bmcphail@vcmame.net> | 2018-08-22 16:29:52 -0400 |
commit | 58cc931748275809e5d03dca27251015f3171d09 (patch) | |
tree | 1c55fc22888aa6f019ccc0d63c752674e52a0d53 /src/mame | |
parent | b2e856bbc00864d6696fd1c880680f9229ee71a6 (diff) |
Operation Wolf
Added accurate hardware information for documentation
Diffstat (limited to 'src/mame')
-rw-r--r-- | src/mame/video/opwolf.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/mame/video/opwolf.cpp b/src/mame/video/opwolf.cpp index a0248dbf2f9..c53e7779dcc 100644 --- a/src/mame/video/opwolf.cpp +++ b/src/mame/video/opwolf.cpp @@ -14,22 +14,26 @@ WRITE16_MEMBER(opwolf_state::opwolf_spritectrl_w) { + // popmessage("opwolf_spritectrl_w ctrl = %4x", data); if (offset == 0) { - /* bits 0 and 1 always set */ + /* bit 0 -> MOTOR1 transistor */ + /* bit 1 -> MOTOR2 transistor */ + /* bit 2 -> Reset c-chip and coin custom PC050CM (active low) */ + /* bit 3 -> Not connected */ + /* bit 4 -> LATCH - used to signal light gun position can be latched to inputs on v-blank */ /* bits 5-7 are the sprite palette bank */ - /* other bits unknown */ m_pc090oj->set_sprite_ctrl((data & 0xe0) >> 5); - /* If data = 4, the Piston Motor is off, otherwise it's on. */ - if (data == 4) + /* If data & 3, the Piston Motor is activated via M-1/M-2 connector */ + if (data & 3) { - output().set_value("Player1_Recoil_Piston", 0); + output().set_value("Player1_Recoil_Piston", 1); } else { - output().set_value("Player1_Recoil_Piston", 1); + output().set_value("Player1_Recoil_Piston", 0); } } } @@ -47,6 +51,8 @@ uint32_t opwolf_state::screen_update_opwolf(screen_device &screen, bitmap_ind16 screen.priority().fill(0, cliprect); + // Sprite/tilemap priority is hardwired by the PAL16L8 at location 19 + m_pc080sn->tilemap_draw(screen, bitmap, cliprect, layer[0], TILEMAP_DRAW_OPAQUE, 1); m_pc080sn->tilemap_draw(screen, bitmap, cliprect, layer[1], 0, 2); |