|
|
| version 1.8, 2004/03/29 14:19:25 | version 1.10, 2005/04/08 19:39:09 |
|---|---|
| Line 148 void cs4231_reset(void) { | Line 148 void cs4231_reset(void) { |
| ZeroMemory(&cs4231, sizeof(cs4231)); | ZeroMemory(&cs4231, sizeof(cs4231)); |
| cs4231.bufsize = CS4231_BUFFERS; | cs4231.bufsize = CS4231_BUFFERS; |
| // cs4231.proc = cs4231_nodecode; | // cs4231.proc = cs4231_nodecode; |
| cs4231.port = 0xffff; | |
| cs4231.dmach = 0xff; | cs4231.dmach = 0xff; |
| cs4231.dmairq = 0xff; | cs4231.dmairq = 0xff; |
| FillMemory(cs4231.port, sizeof(cs4231.port), 0xff); | |
| } | } |
| void cs4231_update(void) { | void cs4231_update(void) { |
| Line 174 void cs4231_control(UINT index, REG8 dat | Line 174 void cs4231_control(UINT index, REG8 dat |
| UINT8 modify; | UINT8 modify; |
| DMACH dmach; | DMACH dmach; |
| modify = ((BYTE *)&cs4231.reg)[index] ^ dat; | modify = ((UINT8 *)&cs4231.reg)[index] ^ dat; |
| ((BYTE *)&cs4231.reg)[index] = dat; | ((UINT8 *)&cs4231.reg)[index] = dat; |
| switch(index) { | switch(index) { |
| case CS4231REG_PLAYFMT: | case CS4231REG_PLAYFMT: |
| if (modify & 0xf0) { | if (modify & 0xf0) { |