mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-29 12:50:28 +00:00
Adds a further sanity assert.
This commit is contained in:
parent
1502c4530e
commit
5cc25d0846
@ -311,6 +311,8 @@ struct Microcycle {
|
|||||||
* if this is a write, does the converse of a read.
|
* if this is a write, does the converse of a read.
|
||||||
*/
|
*/
|
||||||
forceinline void apply(uint8_t *target, OperationT read_write_mask = PermitRead | PermitWrite) const {
|
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)) {
|
switch((operation | read_write_mask) & (SelectWord | SelectByte | Read | PermitRead | PermitWrite)) {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user