mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-19 08:31:11 +00:00
Removes duplicative 'register'.
This commit is contained in:
parent
4f2ebad8e0
commit
edc553fa1d
@ -31,8 +31,7 @@ enum Register {
|
||||
Flags,
|
||||
A,
|
||||
X,
|
||||
Y,
|
||||
S
|
||||
Y
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -21,7 +21,6 @@ uint16_t ProcessorBase::get_value_of_register(Register r) {
|
||||
case Register::A: return a_;
|
||||
case Register::X: return x_;
|
||||
case Register::Y: return y_;
|
||||
case Register::S: return s_;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
@ -34,7 +33,6 @@ void ProcessorBase::set_value_of_register(Register r, uint16_t value) {
|
||||
case Register::A: a_ = static_cast<uint8_t>(value); break;
|
||||
case Register::X: x_ = static_cast<uint8_t>(value); break;
|
||||
case Register::Y: y_ = static_cast<uint8_t>(value); break;
|
||||
case Register::S: s_ = static_cast<uint8_t>(value); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user