Understanding Assembler

Assignment


Basic elements of assembly language are:

Labels

Instructions

Operands

Directives

Directive
Description
Syntax
Type
CONSTANT
Declare Symbol Constant
constant <label> [= <expr>,...,<label> [= <expr>] ]
CONTROL
#DEFINE
Define a Text Substitution Label
#define <name> [[(<arg>,...,<arg>)]<value>]
CONTROL
END
End Program Block
end
CONTROL
EQU
Define an Assembly Constant
<label> equ <expr>
CONTROL
#INCLUDE
Include Additional Source File
include <<include_file>> include "<include_file>"
CONTROL
ORG
Set Program Origin
<label> org <expr>
CONTROL
PROCESSOR
Set Processor Type
processor <processsor_type>
CONTROL
RADIX
Specify Default Radix
radix <default_radix>
CONTROL
SET
Define an Assembler Variable
<label> set <expr>
CONTROL
#UNDEFINE
Delete a Substitution Label
#undefine <label>
CONTROL
VARIABLE
Declare Symbol Variable
variable <label> [= <expr>,..., <label> [= <expr>] ]
CONTROL
ELSE
Begin Alternative Assembly Block to IF
else
CONDITIONAL
ENDIF
End Conditional Assembly Block
endif
CONDITIONAL
ENDW
End a While Loop
endw
CONDITIONAL
IF
Begin Conditionally Assembled Code Block
if <expr>
CONDITIONAL
IFDEF
Execute If Symbol is Defined
ifdef <label>
CONDITIONAL
IFNDEF
Execute If Symbol is Not Defined
ifndef <label>
CONDITIONAL
WHILE
Perform Loop While Condition is True
while <expr>
CONDITIONAL
_ _CONFIG
Set configuration fuses
_ _config <expr> OR _ _config <addr>, <expr>
DATA

Comments

 Technological Design Home