Running The SB-Assembler
You must first write your source file(s) before you even need to start the SB-Assembler.
So I assume that you have saved your source file now.
The sourcefile is the name of your main source file and it must obey to the naming rules described on the Source Files page. An extension is optional for sourcefile. If it is omitted the default extension .asm is used.
On Version 2 of the SB-Assembler the assembly process can be halted at any time by pressing almost any key, e.g. for taking a closer look at the listing that is sent to the screen.
The message "Press almost any key to continue" is displayed to indicate that the assembly process is halted.
Pressing almost any key will continue the assembly process again.
On Version 3 of the SB-Assembler you can no longer halt the output by pressing just about any key. The usefulness of the feature has faded when processing power made it possible to assemble a relatively huge program in less than 2 seconds.
The SB-Assembler doesn't need obscure switches on the command line, like most other assemblers do. This makes it a lot easier to start the SB-Assembler. All options are selected by using directives.
You don't even have to enter sourcefile every time you start the SB-Assembler. This is particularly useful if you're working on a project. On Linux, Unix and Macs you can set the environment variable SBASM to the name of your source file. In the most commonly used shell bash you do that by typing the following command:
Other shells may require a different syntax in order to set an environment variable. But the basic idea behind it remains the same.
On Microsoft systems you type the following command at the DOS prompt to pre-set the default sourcefile:
Now you don't have to enter the sourcefile every time you start the SB-Assembler any more. But you still can supply the sourcefile parameter, e.g. if you want to assemble a different source file once. You may change the default sourcefile as often as you want using the above procedures.
TIP: Usually you're not interested in the listing that is sent to the screen every time you start the SB-Assembler. You can switch it off by placing the directive .LI OFF on the first line in your source file and no listing will be produced any more.
If you don't supply the sourcefile (and didn't set the SBASM environment variable) you are prompted by the SB-Assembler to enter a source file name.
The SB-Assembler does understand one switch, even though I said it didn't.