mirror of
https://github.com/jscrane/r65emu.git
synced 2025-03-24 20:36:02 +00:00
common switch macros in CPU.h
This commit is contained in:
parent
fac66529f2
commit
4063ecaba5
3
CPU.h
3
CPU.h
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user