1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Disallow copying.

This commit is contained in:
Thomas Harte 2024-03-09 15:10:55 -05:00
parent d6f882a8bb
commit d059e7c5d8

View File

@ -46,6 +46,11 @@ enum class Mode {
/// This is to try to keep this structure independent of a specific ARM implementation.
struct Registers {
public:
// Don't allow copying.
Registers(const Registers &) = delete;
Registers &operator =(const Registers &) = delete;
Registers() = default;
/// Sets the N and Z flags according to the value of @c result.
void set_nz(uint32_t value) {
zero_result_ = negative_flag_ = value;