diff options
| author | 2015-01-27 15:07:34 +0200 | |
|---|---|---|
| committer | 2015-01-27 15:07:34 +0200 | |
| commit | f7ad93826a713211f70f15b8e4903c0f266e545c (patch) | |
| tree | cb3106bfe5d80c1128cde6f4bdac2f28668fac49 | |
| parent | 7ce48633e0d2763a41468c5a391e4cb567e5f6ff (diff) | |
JVS: fix outputs
| -rw-r--r-- | src/mame/machine/jvs13551.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/machine/jvs13551.c b/src/mame/machine/jvs13551.c index f5a3e0a87b1..5bbf5115301 100644 --- a/src/mame/machine/jvs13551.c +++ b/src/mame/machine/jvs13551.c @@ -144,11 +144,13 @@ bool sega_837_13551::analogs(UINT8 *&buf, UINT8 count) bool sega_837_13551::swoutputs(UINT8 count, const UINT8 *vals) { + // WARNING! JVS standard have reversed bits count order + // so "board have 6 output bits" means 6 MSB bits is used, the same rules for input too if(count > 1) return false; - jvs_outputs = vals[0] & 0x3f; + jvs_outputs = vals[0] & 0xfc; logerror("837-13551: output %02x\n", jvs_outputs); - ioport(port_tag[11])->write_safe(jvs_outputs, 0x3f); + ioport(port_tag[11])->write_safe(jvs_outputs, 0xfc); return true; } |
