EMS6500 EM Microelectronic, EMS6500 Datasheet - Page 59

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.8.4. MACRO
4.8.5. ORG
Syntax : label MACRO (par (,par(..)
Define macro - A full description of macros and the relevant processing is described
in the following MACRO DEFINITION section.
A label must be written preceding the MACRO directive, which will become the
'calling name' for the list of instructions that follow this directive (until the
complementary MACEND directive). An example MACRO statement is as follows:
SaveAll MACRO AF, BC, DE, HL'
The optional formal parameters are used during macro expansion to be replaced by
the call parameters which are passed to the macro when the macro is invoked.
Syntax : ORG addr
Origin - sets the PC (Program Counter) to the specified address values.
There are several effects that this directive may cause. If it is executed before any
object-code generating statements, it effectively sets the start address for the object-
code; otherwise it specifies the next address for following statements.
ORG0100H
ORG$ + 16
ORG statements may generate an error if the new PC value has overflowed the
memory address space or recovered a previously used memory address. Also, you
cannot use 'forward references' within the address expressions. This means it is not
possible to refer to a symbol that has not yet been defined.
; Set address to 0100 hex
; Increase address by 16
;Save Registers
51
Development System
www.emmicroelectronic.com
EM66xx
Binder 4.3-01/03 Rev. B/495

Related parts for EMS6500