Skip to content

Instantly share code, notes, and snippets.

@99z
Created July 19, 2017 22:06
Show Gist options
  • Save 99z/ee5a7478f0c06dfb19b6b2825f5c4800 to your computer and use it in GitHub Desktop.
Save 99z/ee5a7478f0c06dfb19b6b2825f5c4800 to your computer and use it in GitHub Desktop.
multics simulator graceful shutdown

Commands from stdin wrapped in []

[ESC]
M-> [logout * * *]

Ready
M-> 
[ESC]
CONSOLE: RELEASED

 0806  as   LOGOUT             IO.SysDaemon.z dmn cord   0: 0 $0.02 (looc)
 0806  as   LOGOUT             Backup.SysDaemon.z dmn bk   0: 0 $0.03 (looc)
 0806  as   LOGOUT             IO.SysDaemon.z dmn prta   0: 0 $0.02 (looc)
 0806  as   LOGOUT             Utility.SysDaemon.z dmn ut   0: 2 $1.82 (looc)
 0806  as   LOGOUT             Volume_Dumper.Daemon.z dmn vinc   0: 0 $0.03 (looc)
ESC
M-> [shut]
[ESC]

 0806  as   act_ctl_: shutdown, 6 0.03 0.03 0.00 0.79 0:0:9 $3.76
0806.9  shutdown complete
DBG(8975795132887)> ERR ERR: Need status register data format
DBG(8975795132935)> ERR ERR: doPayloadChan expected IDCW 10 (12)
[ESC]
bce (boot) 0806.9: M-> [die]

Do you really wish bce to die? M-> [yes]

BCE DIS causes CPU halt

simCycles = 8975944343092

cpuCycles = 191589398
Timer runout faults = 6672
Derail faults = 1
Lockup faults = 65
Connect faults = 1749
Illegal procedure faults = 5
Directed fault 0 faults = 630
Directed fault 1 faults = 6653
Access violation faults = 282
Fault tag 2 faults = 2562

Halt, IC: 000012 (000000000000)
sim> [quit]
Goodbye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment