1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-02 05:29:32 +00:00

Add address exception.

This commit is contained in:
Thomas Harte 2024-02-29 10:49:11 -05:00
parent 1f1e7236be
commit 53a2ea3a57

View File

@ -290,6 +290,12 @@ struct Scheduler {
address = offsetted_address;
}
// Check for an address exception.
if(address >= (1 << 26)) {
registers_.exception<Registers::Exception::Address>();
return;
}
constexpr bool trans = !flags.pre_index() && flags.write_back_address();
if constexpr (flags.operation() == SingleDataTransferFlags::Operation::STR) {
const uint32_t source =