1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Made some type conversions explicit.

This commit is contained in:
Thomas Harte 2016-03-15 21:25:02 -04:00
parent 7694297c83
commit a4ec0b023c

View File

@ -1085,12 +1085,12 @@ template <class T> class Processor {
{
switch (r) {
case Register::ProgramCounter: _pc.full = value; break;
case Register::StackPointer: _s = value; break;
case Register::Flags: set_flags(value); break;
case Register::A: _a = value; break;
case Register::X: _x = value; break;
case Register::Y: _y = value; break;
case Register::S: _s = value; break;
case Register::StackPointer: _s = (uint8_t)value; break;
case Register::Flags: set_flags((uint8_t)value); break;
case Register::A: _a = (uint8_t)value; break;
case Register::X: _x = (uint8_t)value; break;
case Register::Y: _y = (uint8_t)value; break;
case Register::S: _s = (uint8_t)value; break;
default: break;
}
}