mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-27 01:32:17 +00:00
Remove two-op checks
This commit is contained in:
parent
9ac85cb30b
commit
be82a23061
@ -17,6 +17,8 @@
|
|||||||
#include "apple2/bank.h"
|
#include "apple2/bank.h"
|
||||||
#include "apple2/mem.h"
|
#include "apple2/mem.h"
|
||||||
#include "objstore.h"
|
#include "objstore.h"
|
||||||
|
#include "vm_di.h"
|
||||||
|
#include "vm_event.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These are the addresses that need to be mapped to the
|
* These are the addresses that need to be mapped to the
|
||||||
@ -169,22 +171,16 @@ SEGMENT_READER(apple2_bank_switch_read)
|
|||||||
return 0x80;
|
return 0x80;
|
||||||
|
|
||||||
case 0xC081:
|
case 0xC081:
|
||||||
if (last_addr == addr) {
|
apple2_set_bank_switch(mach, BANK_WRITE | BANK_RAM2);
|
||||||
apple2_set_bank_switch(mach, BANK_WRITE | BANK_RAM2);
|
return 0x80;
|
||||||
return 0x80;
|
|
||||||
}
|
|
||||||
return 0x00;
|
|
||||||
|
|
||||||
case 0xC082:
|
case 0xC082:
|
||||||
apple2_set_bank_switch(mach, BANK_RAM2);
|
apple2_set_bank_switch(mach, BANK_RAM2);
|
||||||
return 0x80;
|
return 0x80;
|
||||||
|
|
||||||
case 0xC083:
|
case 0xC083:
|
||||||
if (last_addr == addr) {
|
apple2_set_bank_switch(mach, BANK_RAM | BANK_WRITE | BANK_RAM2);
|
||||||
apple2_set_bank_switch(mach, BANK_RAM | BANK_WRITE | BANK_RAM2);
|
return 0x80;
|
||||||
return 0x80;
|
|
||||||
}
|
|
||||||
return 0x00;
|
|
||||||
|
|
||||||
// Conversely, the $C088 - $C08B range control memory access
|
// Conversely, the $C088 - $C08B range control memory access
|
||||||
// while using bank 1 RAM.
|
// while using bank 1 RAM.
|
||||||
@ -193,22 +189,16 @@ SEGMENT_READER(apple2_bank_switch_read)
|
|||||||
return 0x80;
|
return 0x80;
|
||||||
|
|
||||||
case 0xC089:
|
case 0xC089:
|
||||||
if (last_addr == addr) {
|
apple2_set_bank_switch(mach, BANK_WRITE);
|
||||||
apple2_set_bank_switch(mach, BANK_WRITE);
|
return 0x80;
|
||||||
return 0x80;
|
|
||||||
}
|
|
||||||
return 0x00;
|
|
||||||
|
|
||||||
case 0xC08A:
|
case 0xC08A:
|
||||||
apple2_set_bank_switch(mach, BANK_DEFAULT);
|
apple2_set_bank_switch(mach, BANK_DEFAULT);
|
||||||
return 0x80;
|
return 0x80;
|
||||||
|
|
||||||
case 0xC08B:
|
case 0xC08B:
|
||||||
if (last_addr == addr) {
|
apple2_set_bank_switch(mach, BANK_RAM | BANK_WRITE);
|
||||||
apple2_set_bank_switch(mach, BANK_RAM | BANK_WRITE);
|
return 0x80;
|
||||||
return 0x80;
|
|
||||||
}
|
|
||||||
return 0x00;
|
|
||||||
|
|
||||||
// Return high on the 7th bit if we're using bank 2 memory
|
// Return high on the 7th bit if we're using bank 2 memory
|
||||||
case 0xC011:
|
case 0xC011:
|
||||||
|
Loading…
Reference in New Issue
Block a user