1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-26 09:29:45 +00:00

Adds enum to help with status decoding.

This commit is contained in:
Thomas Harte 2019-06-19 17:01:49 -04:00
parent c5b036fedf
commit 8182b0363f

View File

@ -232,6 +232,17 @@ struct ProcessorState {
// uint16_t current_instruction; // uint16_t current_instruction;
}; };
enum Flag: uint16_t {
Trace = 0x8000,
Supervisor = 0x2000,
Extend = 0x0010,
Negative = 0x0008,
Zero = 0x0004,
Overflow = 0x0002,
Carry = 0x0001
};
template <class T, bool dtack_is_implicit, bool signal_will_perform = false> class Processor: public ProcessorBase { template <class T, bool dtack_is_implicit, bool signal_will_perform = false> class Processor: public ProcessorBase {
public: public:
Processor(T &bus_handler) : ProcessorBase(), bus_handler_(bus_handler) {} Processor(T &bus_handler) : ProcessorBase(), bus_handler_(bus_handler) {}