1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Add a further accessor.

This commit is contained in:
Thomas Harte 2021-06-27 16:27:26 -04:00
parent 10bf6744aa
commit bdcab447f9

View File

@ -145,6 +145,12 @@ struct PartialMachineCycle {
forceinline bool is_wait() const {
return operation >= Operation::ReadOpcodeWait && operation <= Operation::InterruptWait;
}
/*!
@returns @c true if this partial machine cycle is a memory access; @c false otherwise.
*/
forceinline bool is_memory_access() const {
return operation <= Operation::Write;
}
enum Line {
CLK = 1 << 0,