How to use S2 tools for Mac

This is the S2 assembler and simulator (as21, sim21) for Mac.  It is written in Python.

How to use it.   

1) unzip the package to your directory.
2) You run 'terminal', change to that directory. (it is mostly in Launchpad, Other directory)
3) inside mypython directory, there are as21.py. and sim21.py.   You run Python interpreter this way:

3.1.   > python3 as21.py
           it will prompt with the request for input file name.  You type atoz.txt (an example of S2 assembly)
          then it will produce atoz.obj which is used to run in the simulator

3.2.  you run the simulator by:
       > python3 sim21.py
         it will prompt with the request for input object file.  You type atoz.obj (just produced by the step 3.1)
        then you are ready in the simulator environment.

Python version 3 is already come with your Mac.  No need to install anything.  This package is safe because it contains only python script, no executable file of any kind.  If you are interest you can see how the assembler and simulator are written (as21.py, sim21.py).    Any bug please report to me.

If you have trouble, ask me at Discord channel.

Prabhas     

last update   27 Feb 2021