1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Removes duplicative 'register'.

This commit is contained in:
Thomas Harte 2020-03-29 22:58:00 -04:00
parent 4f2ebad8e0
commit edc553fa1d
2 changed files with 1 additions and 4 deletions

View File

@ -31,8 +31,7 @@ enum Register {
Flags,
A,
X,
Y,
S
Y
};
/*

View File

@ -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;
}
}