8sh

These files might not work on the most current version of the Commander X16, or these may be held over from the previous forum. To find previous versions of the emulator, so you can test old programs, please visit Our GitHub Page
Post Reply
rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

8sh

Post by rje »


https://github.com/bobbyjim/x16-8sh




This is the early early stage of an attempted "shell" for the X16.




By definition, a command shell is an interpreter that exposes the system.  In practice, the shell exposes the system through an immediate-mode scripting language, which can also be executed from a file.  The Commodore computers' boot mode is a kind of "BASIC shell".




This shell currently does almost nothing.  I am slowly working out a set of mid-level operations for it, and plan to add the shell's command inventory on top of that. Then, I'll add the ability to run full scripts from file.  Then, I'll add the ability to "pipe" the output of one script into another.  In this manner, I hope to build up a small inventory of useful utilities.




 




 




 




 




  1. Handles integer constants, true, false, and nil.


  2. Handles grouping by parentheses.


  3. Handles math ops + - * / and unary minus.


  4. Handles comparison ops > >= == <= <.


  5. Handles ! (not).




Prints out a "fortune" text when you LOGOUT.




8SH


Attachments
8sh
8sh
Screen Shot 2021-04-15 at 8.27.41 AM.png (61.56 KiB) Viewed 438 times

[The extension 8sh has been deactivated and can no longer be displayed.]

FORTUNE.BIN
8sh
(7.59 KiB) Downloaded 84 times
PETFONT.BIN
8sh
(2 KiB) Downloaded 87 times
Post Reply