Skip to content

Setting program counter via lua scripting breaks under certain conditions #6818

Open
@utz82

Description

@utz82

Running the following code on Channel F

halt br halt

and setting the program counter with the following sequence

emu.pause()
manager:machine().devices[":maincpu"].state["PC0"].value = n
emu.unpause()

fails approx. 50% of the time, setting PC0 to an arbitrary value instead.

Adding a "nop" to the halting loop fixes the issue. See here for more context.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions