Skip to content

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

@zhaoleicpp

Description

@zhaoleicpp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions