2017-09-04 15:04:01 +00:00
|
|
|
//
|
|
|
|
// PartialMachineCycle.cpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 04/09/2017.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-09-04 15:04:01 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "../Z80.hpp"
|
|
|
|
|
|
|
|
using namespace CPU::Z80;
|
|
|
|
|
|
|
|
PartialMachineCycle::PartialMachineCycle(const PartialMachineCycle &rhs) noexcept :
|
|
|
|
operation(rhs.operation),
|
|
|
|
length(rhs.length),
|
|
|
|
address(rhs.address),
|
|
|
|
value(rhs.value),
|
|
|
|
was_requested(rhs.was_requested) {}
|
|
|
|
|
|
|
|
PartialMachineCycle::PartialMachineCycle(Operation operation, HalfCycles length, uint16_t *address, uint8_t *value, bool was_requested) noexcept :
|
|
|
|
operation(operation), length(length), address(address), value(value), was_requested(was_requested) {}
|
|
|
|
|
|
|
|
PartialMachineCycle::PartialMachineCycle() noexcept :
|
|
|
|
operation(Internal), length(0), address(nullptr), value(nullptr), was_requested(false) {}
|