mirror of
https://github.com/TomHarte/CLK.git
synced 2025-10-06 06:16:33 +00:00
Expose issues with TST and TAS.
This commit is contained in:
@@ -401,6 +401,18 @@ void Executor<model, BusHandler>::pea(uint32_t address) {
|
||||
bus_handler_.template write<uint32_t>(sp().l, address);
|
||||
}
|
||||
|
||||
template <Model model, typename BusHandler>
|
||||
void Executor<model, BusHandler>::tas(uint32_t address) {
|
||||
uint8_t value = bus_handler_.template read<uint8_t>(address);
|
||||
|
||||
status_.overflow_flag_ = status_.carry_flag_ = 0;
|
||||
status_.zero_result_ = value;
|
||||
status_.negative_flag_ = value & 0x80;
|
||||
value |= 0x80;
|
||||
|
||||
bus_handler_.template write<uint8_t>(address, value);
|
||||
}
|
||||
|
||||
template <Model model, typename BusHandler>
|
||||
template <typename IntT>
|
||||
void Executor<model, BusHandler>::movep(Preinstruction instruction, uint32_t source, uint32_t dest) {
|
||||
|
Reference in New Issue
Block a user