Skip to content

PDP11: Hitting panic() will hang the Pi #157

@hoglet67

Description

@hoglet67

Hit this by switching from the 6502 to to the PDP11 without doing a Ctrl-BREAK (justr a normal BREAK)

For some reason (a bug in 0.28 of the PDP Tube ROM?) this eventually hits a HALT instruction (at 000000).

The instruction hit is 177700 which is diassembled as ??? but executed as HALT. This seems like an inconsistency.

The HALT instruction calls panic()

panic() ends up doing:

    cpu.halted = 1;
    printstate();
    while (1);

Doing a while (1) like this is bad, as reset is not seen.

Doing this would be better:

while (tubeContinueRunning());

So several things to look at:

  1. Replace while (1) with while (tubeContinueRunning()
  2. Investigate what instructions act as HALT
  3. Investigate possible bug in 0.28 of the PDP11 Tube ROM
  4. SIngle stepping a halt instruction could be more user friendly

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