1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Take further stab at TEQ PC, etc.

This commit is contained in:
Thomas Harte 2024-03-05 10:55:44 -05:00
parent ed586e80bc
commit ba5f142515

View File

@ -183,9 +183,9 @@ struct Executor {
// this case to update those PSR flags which are not protected by virtue of the
// processor mode."
if(fields.destination() == 15 && !is_logical(flags.operation())) {
if(fields.destination() == 15) {
if constexpr (is_comparison(flags.operation())) {
registers_.set_status(pc_proxy);
registers_.set_status(conditions);
} else {
registers_.set_status(pc_proxy);
registers_.set_pc(pc_proxy);