Below is a list of commands that can be used with Mikro Assembler, along with their descriptions and examples. These commands can also be invoked using BASIC shortcuts by entering the first letter and holding shift while entering the second letter.
- ASSEMBLE - assemble the source code
- AUTO - automatically provide line numbers
- DELETE - remove specified lines
- DISASSEMBLE - display a disassembled area of memory
- FIND - display lines containing some text
- FORMAT - display the formatted source code
- NUMBER - display a number in different formats
- TABLE - display a list of assembled labels
- TIM - start the machine code monitor
ASSEMBLE
The ASSEMBLE
command assembles the source code into memory by running three passes, and provides addresses for the start and end of each area of memory used. If the assembly would corrupt the area of memory that contains BASIC code, it prompts for confirmation or stops and displays an error.
AUTO
AUTO start
AUTO start,step
The AUTO
command outputs a line number ready for code to be entered, and automatically displays the next line number when you press return. To stop the AUTO
function, hold shift and press return or press return twice. The default start number is 100, and the default step is 10 on the first run.
DELETE start-end
DELETE start-
DELETE -end
The DELETE
command removes the specified range of lines from memory.
DISASSEMBLE start-end
DISASSEMBLE start-
The DISASSEMBLE
command displays a listing of memory locations and their contents, along with the corresponding opcodes or "BYT" if the opcode is invalid. If more than a screenful of information is available, the command pauses until you press a key.
FIND text
FIND text,start-end
FIND text,start-
FIND text,-end
The FIND
command displays a formatted list of lines containing the specified text. You can limit the output to a specified range.
FORMAT
FORMAT start-end
FORMAT start-
FORMAT -end
The FORMAT
command displays the source code formatted in columns better suited for displaying assembler code.
NUMBER $hexadecimal
NUMBER decimal
NUMBER @octal
NUMBER %binary
NUMBER label
The NUMBER
command takes a number, or an assembled label, and displays its value in hexadecimal, decimal, octal, and binary. It can also display the result of simple additions and subtractions as long as the value is not negative at any stage of the calculation.
TABLE
The TABLE
command displays an alphabetically sorted list of labels with their 16-bit hexadecimal values after a successful assemble.
TIM
The TIM
command starts the machine code monitor and puts you at the prompt, ready for input. It displays the starting address of TIM
and the state of the registers.