fix typecast on serialize

This commit is contained in:
Jorj Bauer 2020-07-06 17:13:10 -04:00
parent 7f7d1cc5ce
commit 677bf3a9b4
1 changed files with 2 additions and 2 deletions

View File

@ -323,8 +323,8 @@ Cpu::~Cpu()
bool Cpu::Serialize(int8_t fh)
{
uint8_t buf[13] = { CPUMAGIC,
(pc >> 8) & 0xFF,
(pc ) & 0xFF,
(uint8_t)((pc >> 8) & 0xFF),
(uint8_t)((pc ) & 0xFF),
sp,
a,
x,