Error Handler

This handler may be either jumped to or called.
 
      ENTRY BADOPR
404   PRINT 406, PC 
406   FORMAT(' BAD OPERATION, PC: 'O4)
      STEP=0
      RETURN
 
Does this work? Statement 404 is reachable from entry other than BADOPR. Can two entries share the same RETURN statement? The simulator may have never executed a bad operation to test this code.
 

PDP-8 Simulator
© 1975, 1998, Ward Cunningham
all rights reserved