mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-18 01:29:49 +00:00
0deb37ab19
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
16 lines
454 B
C++
16 lines
454 B
C++
#include "stdafx.h"
|
|
#include "cycle_t.h"
|
|
|
|
cycle_t::cycle_t(uint16_t address, uint8_t value, std::string action) noexcept
|
|
: m_address(address),
|
|
m_value(value),
|
|
m_action(action) {}
|
|
|
|
cycle_t::cycle_t(simdjson::dom::element input) noexcept
|
|
: cycle_t(input.get_array()) {}
|
|
|
|
cycle_t::cycle_t(simdjson::dom::array input) noexcept
|
|
: m_address((uint16_t)(int64_t)input.at(0)),
|
|
m_value((uint8_t)(int64_t)input.at(1)),
|
|
m_action((std::string)input.at(2)) {}
|