mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-10-19 04:24:14 +00:00
Fix read so that trigger paddles 555 timers reset (before was just )
This commit is contained in:
parent
7096a0a05a
commit
7c95c0f6c4
@ -552,9 +552,12 @@ static BYTE __stdcall IOWrite_C06x(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULON
|
|||||||
|
|
||||||
static BYTE __stdcall IORead_C07x(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nExecutedCycles)
|
static BYTE __stdcall IORead_C07x(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nExecutedCycles)
|
||||||
{
|
{
|
||||||
|
// Apple//e TRM, pg-258: "Reading or writing any address in the range $C070-$C07F also triggers the paddle time and resets the VBLINT(*)." (*) //c only!
|
||||||
|
JoyResetPosition(pc, addr, bWrite, d, nExecutedCycles); //$C07X Analog input reset
|
||||||
|
|
||||||
switch (addr & 0xf)
|
switch (addr & 0xf)
|
||||||
{
|
{
|
||||||
case 0x0: return JoyResetPosition(pc, addr, bWrite, d, nExecutedCycles); //$C070 Analog input reset
|
case 0x0: break;
|
||||||
case 0x1: return IO_Null(pc, addr, bWrite, d, nExecutedCycles);
|
case 0x1: return IO_Null(pc, addr, bWrite, d, nExecutedCycles);
|
||||||
case 0x2: return IO_Null(pc, addr, bWrite, d, nExecutedCycles);
|
case 0x2: return IO_Null(pc, addr, bWrite, d, nExecutedCycles);
|
||||||
case 0x3: return IO_Null(pc, addr, bWrite, d, nExecutedCycles);
|
case 0x3: return IO_Null(pc, addr, bWrite, d, nExecutedCycles);
|
||||||
@ -580,7 +583,7 @@ static BYTE __stdcall IORead_C07x(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG
|
|||||||
static BYTE __stdcall IOWrite_C07x(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nExecutedCycles)
|
static BYTE __stdcall IOWrite_C07x(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nExecutedCycles)
|
||||||
{
|
{
|
||||||
// Apple//e TRM, pg-258: "Reading or writing any address in the range $C070-$C07F also triggers the paddle time and resets the VBLINT(*)." (*) //c only!
|
// Apple//e TRM, pg-258: "Reading or writing any address in the range $C070-$C07F also triggers the paddle time and resets the VBLINT(*)." (*) //c only!
|
||||||
JoyResetPosition(pc, addr, bWrite, d, nExecutedCycles);
|
JoyResetPosition(pc, addr, bWrite, d, nExecutedCycles); //$C07X Analog input reset
|
||||||
|
|
||||||
switch (addr & 0xf)
|
switch (addr & 0xf)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user