mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-21 02:17:08 +00:00
Increases const correctness, marks some additional constructors as constexpr, switches std::atomic construction style.
This commit is contained in:
@@ -15,7 +15,7 @@ void ProcessorBase::reset_power_on() {
|
||||
last_request_status_ &= ~Interrupt::PowerOn;
|
||||
}
|
||||
|
||||
uint16_t ProcessorBase::get_value_of_register(Register r) {
|
||||
uint16_t ProcessorBase::get_value_of_register(Register r) const {
|
||||
switch (r) {
|
||||
case Register::ProgramCounter: return pc_.full;
|
||||
case Register::StackPointer: return sp_.full;
|
||||
|
||||
Reference in New Issue
Block a user