mirror of
https://github.com/bradgrantham/apple2e.git
synced 2024-11-05 12:05:20 +00:00
update cpu6502 with Jim's improvements
This commit is contained in:
parent
5e8adf5de1
commit
85f7d8d7dd
11
cpu6502.h
11
cpu6502.h
@ -14,6 +14,12 @@
|
||||
void read(int addr, unsigned char data);
|
||||
*/
|
||||
|
||||
#ifndef CPU6502_H
|
||||
#define CPU6502_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
template<class CLK, class BUS>
|
||||
struct CPU6502
|
||||
{
|
||||
@ -1468,7 +1474,8 @@ struct CPU6502
|
||||
|
||||
default:
|
||||
printf("unhandled instruction %02X at %04X\n", inst, pc - 1);
|
||||
fflush(stdout); exit(1);
|
||||
fflush(stdout);
|
||||
exit(1);
|
||||
}
|
||||
assert(cycles[inst] > 0);
|
||||
clk.add_cpu_cycles(cycles[inst]);
|
||||
@ -1496,3 +1503,5 @@ int CPU6502<CLK, BUS>::cycles[256] =
|
||||
/* 0xF- */ 2, 5, -1, -1, -1, 4, 6, -1, 2, 4, -1, -1, -1, 4, 7, -1,
|
||||
};
|
||||
|
||||
#endif // CPU6502_H
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user