mirror of
https://github.com/trudnai/Steve2.git
synced 2024-05-31 15:41:35 +00:00
Keyboard code also returned on all ports from $C000 - $C00F
This commit is contained in:
parent
4388474aed
commit
8fe75526ec
|
@ -344,9 +344,16 @@ INLINE uint8_t ioRead( uint16_t addr ) {
|
|||
|
||||
switch ( (uint8_t)addr ) {
|
||||
case (uint8_t)io_KBD:
|
||||
|
||||
case (uint8_t)io_80STOREON:
|
||||
case (uint8_t)io_SETSLOTCXROM:
|
||||
case (uint8_t)io_SETINTCXROM:
|
||||
case (uint8_t)io_SETSTDZP:
|
||||
case (uint8_t)io_SETALTZP:
|
||||
case (uint8_t)io_SETINTC3ROM:
|
||||
case (uint8_t)io_SETSLOTC3ROM:
|
||||
// we have to return keybard not only for $C000 but for ports all the way till $C00F
|
||||
return Apple2_64K_RAM[io_KBD];
|
||||
|
||||
|
||||
case (uint8_t)io_KBDSTRB:
|
||||
Apple2_64K_RAM[io_KBD] &= ~(1 << 7);
|
||||
|
||||
|
@ -478,6 +485,10 @@ INLINE uint8_t ioRead( uint16_t addr ) {
|
|||
newMEMcfg = MEMcfg;
|
||||
newMEMcfg.RD_AUX_MEM = 0;
|
||||
auxMemorySelect(newMEMcfg);
|
||||
|
||||
// still need to return keyboard
|
||||
return Apple2_64K_RAM[io_KBD];
|
||||
|
||||
break;
|
||||
|
||||
case (uint8_t)io_RDCARDRAM:
|
||||
|
@ -485,6 +496,10 @@ INLINE uint8_t ioRead( uint16_t addr ) {
|
|||
newMEMcfg = MEMcfg;
|
||||
newMEMcfg.RD_AUX_MEM = 1;
|
||||
auxMemorySelect(newMEMcfg);
|
||||
|
||||
// still need to return keyboard
|
||||
return Apple2_64K_RAM[io_KBD];
|
||||
|
||||
break;
|
||||
|
||||
case (uint8_t)io_WRMAINRAM:
|
||||
|
@ -492,6 +507,10 @@ INLINE uint8_t ioRead( uint16_t addr ) {
|
|||
newMEMcfg = MEMcfg;
|
||||
newMEMcfg.WR_AUX_MEM = 0;
|
||||
auxMemorySelect(newMEMcfg);
|
||||
|
||||
// still need to return keyboard
|
||||
return Apple2_64K_RAM[io_KBD];
|
||||
|
||||
break;
|
||||
|
||||
case (uint8_t)io_WRCARDRAM:
|
||||
|
@ -499,6 +518,10 @@ INLINE uint8_t ioRead( uint16_t addr ) {
|
|||
newMEMcfg = MEMcfg;
|
||||
newMEMcfg.WR_AUX_MEM = 1;
|
||||
auxMemorySelect(newMEMcfg);
|
||||
|
||||
// still need to return keyboard
|
||||
return Apple2_64K_RAM[io_KBD];
|
||||
|
||||
break;
|
||||
|
||||
case (uint8_t)io_MEM_RDRAM_NOWR_2:
|
||||
|
|
Loading…
Reference in New Issue
Block a user