1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Adds a further sanity assert.

This commit is contained in:
Thomas Harte 2021-08-08 21:52:52 -04:00
parent 1502c4530e
commit 5cc25d0846

View File

@ -311,6 +311,8 @@ struct Microcycle {
* if this is a write, does the converse of a read.
*/
forceinline void apply(uint8_t *target, OperationT read_write_mask = PermitRead | PermitWrite) const {
assert( (operation & (SelectWord | SelectByte)) != (SelectWord | SelectByte));
switch((operation | read_write_mask) & (SelectWord | SelectByte | Read | PermitRead | PermitWrite)) {
default:
break;