push SR reg goes wrong when PC>=0x10000
zhaoleicpp opened this issue · 0 comments
zhaoleicpp commented
in function fetch_operand in sim.c
*data_ret = dev->regs[reg] & mask;
goes wrong when reg is MSP430_REG_SR and PC>=0x10000.
The SR contains PC19:16. this can be ignored normally, but push.