Download M68ICS08SOM User`s Manual

Transcript
P&E
Microcomputer
Systems, Inc.
CHAPTER 4 – CASM08Z ASSEMBLER INTERFACE
Table 4-2. Assembler Directives
Directive
Action
BASE ^
Change the default input base to binary, octal, decimal, or
hexadecimal.
CYCLE_ADDER_OFF
Stop accumulating instruction cycles and print the total.
CYCLE_ADDER_ON
Start accumulating instruction cycles.
INCLUDE ^
Include specified file in source code.
MACRO ^
Create a macro.
MACROEND
End a macro definition.
Conditional
Directive
Action
SET
Sets the value of its parameter to true. The maximum
number of SETs is 25.
SETNOT
Sets the value of its parameter to false.
The maximum number of SETNOTs is 25.
IF or IFNOT
Determines the block of code to be used for conditional
assembly; the code between the IF and ENDIF will be
assembled if the given parameter value is true; the code
between IFNOT and ENDIF will be assembled if the
parameter value is false.
ELSEIF
Provides alternative to ENDIF when precedes ENDIF; for
example, if the parameter value is true, the code between
IF and ELSEIF will be assembled, but the code between
ELSEIF and ENDIF will not be assembled. If the
parameter value is false, code between IF and ELSEIF will
not be assembled, but code between ELSEIF and ENDIF
will be assembled.
ELSEIF gives the same alternative arrangement to a
directive sequence that begins with IFNOT.
ENDIF
M68ICS08SOM/D
See IF, IFNOT, ELSEIF
4-9