comparison romdb.c @ 780:fa2c03fcbb88

EEPROM reads now work for NFL Quarterback Club 96
author Michael Pavone <pavone@retrodev.com>
date Mon, 20 Jul 2015 23:11:42 -0700
parents ba38e36559b0
children 51c3e571eeb1
comparison
equal deleted inserted replaced
779:ba38e36559b0 780:fa2c03fcbb88
141 state->state = I2C_READ; 141 state->state = I2C_READ;
142 state->counter = 8; 142 state->counter = 8;
143 state->address++; 143 state->address++;
144 //TODO: page mask 144 //TODO: page mask
145 state->address &= state->size-1; 145 state->address &= state->size-1;
146 state->latch = state->buffer[state->address];
146 break; 147 break;
147 case I2C_WRITE_ACK: 148 case I2C_WRITE_ACK:
148 state->state = I2C_WRITE; 149 state->state = I2C_WRITE;
149 state->counter = 8; 150 state->counter = 8;
150 state->address++; 151 state->address++;