EMS6500 EM Microelectronic, EMS6500 Datasheet - Page 61

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
separated by commas), and whatever is specified replaces the parameter identifiers
specified within the statements of the macro definition.
With this in mind we can illustrate the actual statements which would be assembled
for the program example given above:
LABELS can also be defined within macros, and remain local to each separate
'macro call'. Expressions, which reference a label, which is not defined within the
macro, will cause an error.
Note : there is no support for nested macros !
;Program example
Start
;Expansion
MoveAll.PA.1
MoveAll.TA.1
MoveAll.PB.1
MoveAll.TB.1
;Expansion
MoveAll.PA.2
MoveAll.TA.2
MoveAll.PB.2
MoveAll.TB.2
STI
MoveAll VA, WA, VB, WB
LDA
STA
LDA
STA
CALL
MoveAll WA, VA, WB, VB
LDA
STA
LDA
STA
STI
VB, 1
MoveAll.PA.1
MoveAll.TA.1
MoveAll.PB.1
MoveAll.TB.1
Test
MoveAll.PA.2
MoveAll.TA.2
MoveAll.PB.2
MoveAll.TB.2
VA, 0
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
Fig. 31 Expanded macro implementation
VA
WA
VA
WB
WA
VA
WB
VB
;Start of prog
53
Development System
www.emmicroelectronic.com
EM66xx
Binder 4.3-01/03 Rev. B/495

Related parts for EMS6500