beautypg.com

Echelon Neuron User Manual

Page 146

background image

%lookupTable DATA.B h’12,h’2C,h’39

The following example defines a constant string “Hello, World!” and includes a

terminating zero byte:

SEG CODE

ORG

APEXP %hello

%hello DATA.B “Hello, World!”, 0

The following example declares an array of pointers to three functions funcA,

funcB, and funcC:

SEG CODE

ORG

IMPORT funcA, funcB, funcC

APEXP %funcTable

%funcTable DATA.B PTR funcA

DATA.B PTR funcB, PTR funcC

136

Neuron Assembler Directives