home *** CD-ROM | disk | FTP | other *** search
-
- This directory contains a *very* simple demo Desktop application with
- all the SAsm source files. All it does is install itself on the icon
- bar, put up a menu if you click MENU on it or a message if you click
- SELECT. The items on the menu also show a message when selected.
-
- The general idea of this is to demonstrate how a 'real' SAsm application
- looks to give you some idea of the 'feel' of SAsm. It also shows how the
- source files can be split up into various sections and assembled using a
- master 'make' file. This file also defines filenames for the error file,
- listing file, label file, etc so if you use the command line switches
- for these the output will automaticlly be sent to the file.
-
- In this case because the application is very small all the 'working'
- code is in one file but with a larger program this would obviously be
- split up into several sections.
-
-
- The application is supplied ready assembled but you will obviously want
- to assemble it for yourself to see what happens. To do this :-
-
- 1. Load the SAsm module (or copy SAsm to your Library)
-
- 2. Click on 'MakeCSD'. This will make the 'Demo' directory the CSD
-
- 3. Open a Task window (CTRL-F12) or press F12 to get the CLI prompt
-
- 4. Type 'sasm demomake'
-
- 5. You should see the usual SAsm messages and the code will be
- assembled and saved to its application directory.
-
- If you want an assembler listing file then use :-
-
- sasm demomake ! ~ F A
-
- or if you want a file listing all global labels use :-
-
- sasm demomake ! ~ N
-
-
- The file 'demomake' is a 'make' file which sets up all the data required
- by SAsm and then uses 'include' to assemble the files in order.
- Obviously you will want to inspect all of these to see how it's done.
-
- You may find it interesting to insert some 'deliberate mistakes' into
- one or more of these files and see how SAsm copes with them. I'm sure
- you can have hours of innocent fun in this way.
-
- David Holden --- March 1994
-
-