1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-09 06:29:33 +00:00
CLK/Processors/RegisterSizes.hpp

29 lines
414 B
C++
Raw Normal View History

//
// RegisterSizes.hpp
// Clock Signal
//
// Created by Thomas Harte on 14/05/2017.
// Copyright © 2017 Thomas Harte. All rights reserved.
//
#ifndef RegisterSizes_hpp
#define RegisterSizes_hpp
#include <cstdint>
namespace CPU {
union RegisterPair {
2017-05-29 23:25:08 +00:00
RegisterPair(uint16_t v) : full(v) {}
RegisterPair() {}
uint16_t full;
struct {
uint8_t low, high;
} bytes;
};
}
#endif /* RegisterSizes_hpp */