mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-07 23:29:06 +00:00
Adds BIT.
This commit is contained in:
parent
64d556f60f
commit
04024ca159
@ -349,8 +349,8 @@ template <Operation operation> void Executor::perform(uint8_t *operand [[maybe_u
|
|||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
//
|
//
|
||||||
// BRK, STP,
|
// BRK, STP
|
||||||
// ADC, SBC, BIT
|
// ADC, SBC
|
||||||
|
|
||||||
case Operation::ASL:
|
case Operation::ASL:
|
||||||
carry_flag_ = *operand >> 7;
|
carry_flag_ = *operand >> 7;
|
||||||
@ -380,6 +380,12 @@ template <Operation operation> void Executor::perform(uint8_t *operand [[maybe_u
|
|||||||
*operand = uint8_t((*operand >> 4) | (*operand << 4));
|
*operand = uint8_t((*operand >> 4) | (*operand << 4));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Operation::BIT:
|
||||||
|
zero_result_ = *operand & a_;
|
||||||
|
negative_result_ = *operand;
|
||||||
|
overflow_result_ = uint8_t(*operand << 1);
|
||||||
|
break;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Operations affected by the index mode flag: ADC, AND, CMP, EOR, LDA, ORA, and SBC.
|
Operations affected by the index mode flag: ADC, AND, CMP, EOR, LDA, ORA, and SBC.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user