1
0
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:
Thomas Harte
2022-05-06 12:18:56 -04:00
parent 9c266d4316
commit 8176bb6f79
5 changed files with 18 additions and 6 deletions

View File

@@ -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) {