diff options
| author | 2009-01-04 23:31:12 +0000 | |
|---|---|---|
| committer | 2009-01-04 23:31:12 +0000 | |
| commit | 835ace034d937c2c3f9723c5d7c48e80007ea06a (patch) | |
| tree | b189a2a753f5ce24841c5744f64aeff16f043bda /src/emu/machine | |
| parent | ed893fe35c8a614ba67de60579f53866368f1476 (diff) | |
Cleanups and version bump.mame0129
Diffstat (limited to 'src/emu/machine')
| -rw-r--r-- | src/emu/machine/i8243.c | 14 | ||||
| -rw-r--r-- | src/emu/machine/ldcore.c | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/emu/machine/i8243.c b/src/emu/machine/i8243.c index 71d086087f4..9f0b9035946 100644 --- a/src/emu/machine/i8243.c +++ b/src/emu/machine/i8243.c @@ -83,7 +83,7 @@ WRITE8_DEVICE_HANDLER( i8243_prog_w ) { i8243_state *i8243 = get_safe_token(device); i8243_config *config = get_safe_config(device); - + /* only care about low bit */ data &= 1; @@ -91,7 +91,7 @@ WRITE8_DEVICE_HANDLER( i8243_prog_w ) if (i8243->prog && !data) { i8243->opcode = i8243->p2; - + /* if this is a read opcode, copy result to p2out */ if ((i8243->opcode >> 2) == MCS48_EXPANDER_OP_READ) { @@ -100,7 +100,7 @@ WRITE8_DEVICE_HANDLER( i8243_prog_w ) i8243->p2out = i8243->p[i8243->opcode & 3] & 0x0f; } } - + /* on low->high transition state, act on opcode */ else if (!i8243->prog && data) { @@ -111,13 +111,13 @@ WRITE8_DEVICE_HANDLER( i8243_prog_w ) if (config->writehandler != NULL) (*config->writehandler)(device, i8243->opcode & 3, i8243->p[i8243->opcode & 3]); break; - + case MCS48_EXPANDER_OP_OR: i8243->p[i8243->opcode & 3] |= i8243->p2 & 0x0f; if (config->writehandler != NULL) (*config->writehandler)(device, i8243->opcode & 3, i8243->p[i8243->opcode & 3]); break; - + case MCS48_EXPANDER_OP_AND: i8243->p[i8243->opcode & 3] &= i8243->p2 & 0x0f; if (config->writehandler != NULL) @@ -125,7 +125,7 @@ WRITE8_DEVICE_HANDLER( i8243_prog_w ) break; } } - + /* remember the state */ i8243->prog = data; } @@ -153,7 +153,7 @@ static DEVICE_START( i8243 ) static DEVICE_RESET( i8243 ) { i8243_state *i8243 = get_safe_token(device); - + i8243->p2 = 0x0f; i8243->p2out = 0x0f; i8243->prog = 1; diff --git a/src/emu/machine/ldcore.c b/src/emu/machine/ldcore.c index 39aae515ad9..ed09b6359d5 100644 --- a/src/emu/machine/ldcore.c +++ b/src/emu/machine/ldcore.c @@ -1287,7 +1287,7 @@ static void init_disc(const device_config *device) laserdisc_state *ld = get_safe_token(device); ldcore_data *ldcore = ld->core; chd_error err; - + /* get a handle to the disc to play */ if (config->getdisc != NULL) ldcore->disc = (*config->getdisc)(device); @@ -1456,7 +1456,7 @@ static DEVICE_START( laserdisc ) assert(ld->screen != NULL); if (!ld->screen->started) return DEVICE_START_MISSING_DEPENDENCY; - + /* save a copy of the device pointer */ ld->device = device; |
