L1VM - shell

Es gibt jetzt auf dem GitHub Repo “prog/shell.l1com”. Eine Shell aus der man L1VM Programme mit dem Befehl “run” oder “!” starten kann:

l1vm-sh $ ! passwd-card -q
   ABC DEF GHI JKL MNO PQR STU VWX YZ  .
 1 5%r f-l +A6 4uA V:3 fMF O73 %rS lO% BMy
 2 .yU ,h} Tfi +*? mz7 ~k> y/0 aOt v24 +pa
 3 ]la 1Sj :c{ Su@ OAg Eew L#k u@E &X# >qs
 4 v%X 2Mz qQM ]+g Z${ s,A IEn 3V& /g$ g,L
 5 8KH Vj6 GK{ c[o VmH 3QS %GH /m@ C0M 9bS
 6 8g] 5od V,+ DBd Irv 49y Tz> hYL Yrc 0$f
 7 bKS >d< X}P pEp s#p &%j 0iD 1<W 01i YtN
 8 /LY U5w $IG 5,D ,kj 6VZ #6h PGM 6e{ {@u
 9 2y} Jmk cpM aO{ vCx A@S y9P kxI pW] K2&
10 J5: 5Rv W?d ~c| RUT >H5 DXC ktq Q+X }At

l1vm-sh $

Alle anderen Befehle werden direkt ausgeführt ohne Umwandlung. Ich erweiterte die Shell um eine History Funktion. Mit der Eingabe von “<” werden die letzten Befehle angezeigt. Man gibt dann die Nummer ein, die vor dem Befehl steht. Die erweiterte Shell heißt “shell-2.l1com”.


—–

On my GitHub repo there is a shell program in “prog/shell.l1com”. With this shell you can run L1VM programs by “run” or “!”. See the example above.

All other commands are run direct without change. I did write a history function. If you enter “<” as a command then the shell will list the last commands. You have to enter the number before the command to run it. The new shell is “shell-2.l1com”.