dlbeer / mspdebug

Debugging tool for MSP430 MCUs
GNU General Public License v2.0
184 stars 80 forks source link

push SR reg goes wrong when PC>=0x10000 #108

Open zhaoleicpp opened 3 years ago

zhaoleicpp commented 3 years ago

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.