1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Add note on confusion.

This commit is contained in:
Thomas Harte 2024-03-28 10:34:46 -04:00
parent 4fcb85d132
commit 2e7c1acb88

View File

@ -296,6 +296,14 @@ struct Executor {
}
// Decide whether to write back — when either postindexing or else write back is requested.
//
// Note to future self on write-back:
//
// It's currently unclear what to do in the case of e.g. `str r13, [r13, #0x10]!`. Is the value
// written r13 as modified or the original r13? If it's as modified, does that imply that
// write back has occurred regardless of a data abort?
//
// TODO: resolve uncertainty.
constexpr bool should_write_back = !flags.pre_index() || flags.write_back_address();
// STR: update prior to write.