mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-29 12:50:28 +00:00
Made some type conversions explicit.
This commit is contained in:
parent
7694297c83
commit
a4ec0b023c
@ -1085,12 +1085,12 @@ template <class T> class Processor {
|
|||||||
{
|
{
|
||||||
switch (r) {
|
switch (r) {
|
||||||
case Register::ProgramCounter: _pc.full = value; break;
|
case Register::ProgramCounter: _pc.full = value; break;
|
||||||
case Register::StackPointer: _s = value; break;
|
case Register::StackPointer: _s = (uint8_t)value; break;
|
||||||
case Register::Flags: set_flags(value); break;
|
case Register::Flags: set_flags((uint8_t)value); break;
|
||||||
case Register::A: _a = value; break;
|
case Register::A: _a = (uint8_t)value; break;
|
||||||
case Register::X: _x = value; break;
|
case Register::X: _x = (uint8_t)value; break;
|
||||||
case Register::Y: _y = value; break;
|
case Register::Y: _y = (uint8_t)value; break;
|
||||||
case Register::S: _s = value; break;
|
case Register::S: _s = (uint8_t)value; break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user