1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-06-08 07:29:37 +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; class Stream;
#define O(o, e) case o: e(); break;
#define D(e) default: e(); break;
class CPU: public Checkpointable { class CPU: public Checkpointable {
public: public:
virtual void run(unsigned instructions) =0; virtual void run(unsigned instructions) =0;

View File

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

View File

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