1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-07-23 15:29:28 +00:00

common switch macros in CPU.h

This commit is contained in:
Stephen Crane 2019-02-25 12:10:33 +00:00
parent fac66529f2
commit 4063ecaba5
3 changed files with 3 additions and 6 deletions

3
CPU.h
View File

@ -5,6 +5,9 @@
class Stream;
#define O(o, e) case o: e(); break;
#define D(e) default: e(); break;
class CPU: public Checkpointable {
public:
virtual void run(unsigned instructions) =0;

View File

@ -97,9 +97,6 @@ uint8_t parity_tbl(uint8_t r) {
return m == (b & m);
}
#define O(o, e) case o: e(); break;
#define D(e) default: e(); break;
void i8080::_op(uint8_t op) {
switch(op) {

View File

@ -174,9 +174,6 @@ void r6502::reset()
PC = vector(resvec);
}
#define O(o, e) case o: e(); break;
#define D(e) default: e(); break;
void r6502::_op(uint8_t op) {
switch (op) {