home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / discs / shareware / share_46 / sasm / Demo / -Read next >
Text File  |  1994-03-23  |  2KB  |  52 lines

  1.  
  2. This directory contains a *very* simple demo Desktop application with
  3. all the SAsm source files. All it does is install itself on the icon
  4. bar, put up a menu if you click MENU on it or a message if you click
  5. SELECT. The items on the menu also show a message when selected.
  6.  
  7. The general idea of this is to demonstrate how a 'real' SAsm application
  8. looks to give you some idea of the 'feel' of SAsm. It also shows how the
  9. source files can be split up into various sections and assembled using a
  10. master 'make' file. This file also defines filenames for the error file,
  11. listing file, label file, etc so if you use the command line switches
  12. for these the output will automaticlly be sent to the file.
  13.  
  14. In this case because the application is very small all the 'working'
  15. code is in one file but with a larger program this would obviously be
  16. split up into several sections.
  17.  
  18.  
  19. The application is supplied ready assembled but you will obviously want
  20. to assemble it for yourself to see what happens. To do this :-
  21.  
  22.     1.  Load the SAsm module (or copy SAsm to your Library)
  23.  
  24.     2.  Click on 'MakeCSD'. This will make the 'Demo' directory the CSD
  25.  
  26.     3.  Open a Task window (CTRL-F12) or press F12 to get the CLI prompt
  27.  
  28.     4.  Type   'sasm demomake'
  29.  
  30.     5.  You should see the usual SAsm messages and the code will be
  31.         assembled and saved to its application directory.
  32.  
  33. If you want an assembler listing file then use :-
  34.  
  35.            sasm demomake ! ~ F A
  36.  
  37. or if you want a file listing all global labels use :-
  38.  
  39.            sasm demomake ! ~ N
  40.  
  41.  
  42. The file 'demomake' is a 'make' file which sets up all the data required
  43. by SAsm and then uses 'include' to assemble the files in order.
  44. Obviously you will want to inspect all of these to see how it's done.
  45.  
  46. You may find it interesting to insert some 'deliberate mistakes' into
  47. one or more of these files and see how SAsm copes with them. I'm sure
  48. you can have hours of innocent fun in this way.
  49.  
  50.         David Holden --- March 1994
  51.  
  52.