Interpreter number and version - KVonGit/zil-stuff GitHub Wiki
Just playing around with this to learn some fundamentals.
The experts say there is no good reason to check this, as it is not reliable, and I believe them. =)
;"
TERP NUMBERS (SO FAR)
Frotz (DOS), consoleZLR, jZIP, xZIP: 6
Windows Frotz, sfrotz: 4
Parchment, Gargoyle, dfrotz, frotz_curses: 1
Ozmoo: 8
Zoom: 3
"
;"
TERP-VERSION NUMBERS (SO FAR)
Frotz (DOS), Windows Frotz, dfrotz, sfrotz: 70
consoleZLR: 65
jZIP, xZIP: 66
Windows Frotz: 70
Parchment, Gargoyle: 67
Ozmoo: 78
Zoom: 90
"
;" 0 1 2 3 4 5 6 7 8 9 A B C D E F"
;" 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"
<ROUTINE TERP-NUMBER? ()
<GETB 0 30>> ;"1E" ;" (16 + 14)"
<ROUTINE TERP-VERSION? ()
<GETB 0 31>> ;"1F" ;" (16 + 15)"