EMS6500 EM Microelectronic, EMS6500 Datasheet - Page 53

no-image

EMS6500

Manufacturer Part Number
EMS6500
Description
Microcontroller Development System 4-bit (Emmon), Simulators 4-bit
Manufacturer
EM Microelectronic
Datasheet
Copyright  2003, EM Microelectronic-Marin SA
4.3.
When an OPERAND is entered it must be separated from the preceding
OPERATOR by SPACE/TAB character(s). Example instruction mnemonics of the
EM66xx CPU are illustrated below:
HALT
SUB
LDR
CALL
Within the OPERANDS some instructions may require a numeric value to be
specified (typically a memory address or data value). You can write these values
either as SYMBOLS, CONSTANTS or EXPRESSIONS which are evaluated by the
assembler. Leading labels are automatically assigned with the current program
location for the instruction which is referenced.
Assembly language statements comprise single text lines held in a text file, which
are usually created within a word processor (though the word processor used must
create 'standard' text files). Each statement encodes either a CPU/MPU instruction
or assembler "Pseudo-op" directive.
The text line is considered as having several 'fields' as follows:
Elements enclosed in parentheses are optional and determined by the program or
the particular instruction. Upper/lower case characters are not distinguished unless
enclosed within single quote marks, and blank text lines are ignored.
General Statement Rules
---------------------------------------------------------------------------
(LABEL)
---------------------------------------------------------------------------
Name1
---------------------------------------------------------------------------
(LABEL)
---------------------------------------------------------------------------
Cr
---------------------------------------------------------------------------
(LABEL)
---------------------------------------------------------------------------
Symbol:
;This is a simple comment for increased program readability
---------------------------------------------------------------------------
JMP
STAX
00FH
O1FH
TEST
INSTRUCTION
LDI
Name1
DIRECTIVE
EQU
Reg, 10 ;This is an example
;No OPERAND required
0DH
;Enter HALT mode
;Subtract Accu from memory address
;Load Accu from memory address O1FH
;Execute TEST subroutine
Fig. 28 EM66xx general statement rules
(OPERANDS)
(OPERANDS)
;Assemble Directives
(COMMENT)
;PC assigned to Symbol
45
(COMMENT)
(COMMENT)
Development System
www.emmicroelectronic.com
EM66xx
Binder 4.3-01/03 Rev. B/495

Related parts for EMS6500