mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-15 20:31:36 +00:00
Convert 6502 Personality
-related macros.
This commit is contained in:
parent
dc53d6e6fa
commit
112f3d1e73
@ -39,10 +39,10 @@ enum Personality {
|
||||
PWDC65C02, // like the Rockwell, but with STP and WAI
|
||||
};
|
||||
|
||||
#define has_decimal_mode(p) ((p) >= Personality::P6502)
|
||||
#define is_65c02(p) ((p) >= Personality::PSynertek65C02)
|
||||
#define has_bbrbbsrmbsmb(p) ((p) >= Personality::PRockwell65C02)
|
||||
#define has_stpwai(p) ((p) >= Personality::PWDC65C02)
|
||||
constexpr bool has_decimal_mode(Personality p) { return p >= Personality::P6502; }
|
||||
constexpr bool is_65c02(Personality p) { return p >= Personality::PSynertek65C02; }
|
||||
constexpr bool has_bbrbbsrmbsmb(Personality p) { return p >= Personality::PRockwell65C02; }
|
||||
constexpr bool has_stpwai(Personality p) { return p >= Personality::PWDC65C02; }
|
||||
|
||||
/*!
|
||||
An opcode that is guaranteed to cause a 6502 to jam.
|
||||
|
Loading…
x
Reference in New Issue
Block a user