From 5cc25d084691bd30937ca6761415b48fdb8960cd Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 8 Aug 2021 21:52:52 -0400 Subject: [PATCH] Adds a further sanity assert. --- Processors/68000/68000.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Processors/68000/68000.hpp b/Processors/68000/68000.hpp index 920f27b4e..e846c2a1d 100644 --- a/Processors/68000/68000.hpp +++ b/Processors/68000/68000.hpp @@ -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;