1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-27 02:55:07 +00:00

Add note on ambiguity to be resolved.

This commit is contained in:
Thomas Harte 2024-03-12 10:04:02 -04:00
parent 8b3c0abe93
commit e9c5582fe1

View File

@ -182,7 +182,9 @@ struct Executor {
registers_.set_pc(pc_proxy);
}
if constexpr (flags.set_condition_codes()) {
if(fields.destination() == 15) {
// TODO: different sources have me going back and forth on the second
// part of the conditional here.
if(fields.destination() == 15 && is_comparison(flags.operation())) {
registers_.set_status(conditions);
} else {
// Set N and Z in a unified way.