EightBit/M6502/HarteTest_6502/byte_t.h
Adrian Conlon 17b71aafc3 Refactor to share JSON implementation details.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-10-22 13:10:23 +01:00

14 lines
295 B
C++

#pragma once
#include "simdjson/simdjson.h"
#include "array_t.h"
class byte_t : public array_t {
public:
byte_t(simdjson::dom::array input) noexcept;
[[nodiscard]] auto address() const noexcept { return address_at(0); }
[[nodiscard]] auto value() const noexcept { return byte_at(1); }
};