mirror of
https://github.com/bradgrantham/apple2e.git
synced 2024-06-26 02:29:36 +00:00
SPKR, EOR, LDY zpg
This commit is contained in:
parent
8b8c526679
commit
f50ef091a5
29
apple2e.cpp
29
apple2e.cpp
|
@ -143,6 +143,12 @@ struct MAINboard : board_base
|
|||
data = 0x00;
|
||||
return true;
|
||||
}
|
||||
if(addr == 0xC030) {
|
||||
printf("read SPKR, force 0x00\n");
|
||||
// click
|
||||
data = 0x00;
|
||||
return true;
|
||||
}
|
||||
if(addr == 0xC010) {
|
||||
printf("read KBDSTRB, force 0x00\n");
|
||||
// reset keyboard latch
|
||||
|
@ -199,6 +205,11 @@ struct MAINboard : board_base
|
|||
// reset keyboard latch
|
||||
return true;
|
||||
}
|
||||
if(addr == 0xC030) {
|
||||
printf("write SPKR\n");
|
||||
// click
|
||||
return true;
|
||||
}
|
||||
printf("unhandled MMIO Write at %04X\n", addr);
|
||||
exit(0);
|
||||
}
|
||||
|
@ -627,6 +638,15 @@ struct CPU6502
|
|||
break;
|
||||
}
|
||||
|
||||
case 0xA4: {
|
||||
unsigned char zpg = read_pc_inc(bus);
|
||||
if(debug & DEBUG_DECODE) printf("LDY %02X\n", zpg);
|
||||
y = bus.read(zpg);
|
||||
flag_change(N, y & 0x80);
|
||||
flag_change(Z, y == 0);
|
||||
break;
|
||||
}
|
||||
|
||||
case 0xAC: {
|
||||
int addr = read_pc_inc(bus) + read_pc_inc(bus) * 256;
|
||||
if(debug & DEBUG_DECODE) printf("LDY %04X\n", addr);
|
||||
|
@ -682,6 +702,15 @@ struct CPU6502
|
|||
break;
|
||||
}
|
||||
|
||||
case 0x49: {
|
||||
unsigned char imm = read_pc_inc(bus);
|
||||
if(debug & DEBUG_DECODE) printf("EOR #%02X\n", imm);
|
||||
a = a ^ imm;
|
||||
flag_change(N, a & 0x80);
|
||||
flag_change(Z, a == 0);
|
||||
break;
|
||||
}
|
||||
|
||||
case 0xC9: {
|
||||
unsigned char imm = read_pc_inc(bus);
|
||||
if(debug & DEBUG_DECODE) printf("CMP #%02X\n", imm);
|
||||
|
|
Loading…
Reference in New Issue
Block a user