beautypg.com

Echelon Neuron User Manual

Page 48

background image

40

Neuron Assembler Errors (NAS)

NAS#

Description

47

Offset must be a constant [NAS#47]

48

49
50
51

52

Constant is out of -1..-8 range [NAS#48]
Offset value is out of 0..255 range [NAS#49]
Offset value is out of 8..23 range [NAS#50]
First operand is out of 0..255 range [NAS#51]
Second operand is out of 0..255 range [NAS#52]

A constant, offset value or operand was outside the supported value range.

53

is an unknown function name [NAS#53]

See the

Neuron Assembly Language Reference

for a list of supported

function names.

54

Invalid resource name [NAS#54]

A RESOURCE directive is being used incorrectly. RESOURCE directives

are reserved for use by the Neuron C Compiler. Do not specify RESOURCE

directives in your Neuron Assembly code.

55

Constant is too large [NAS#55]

56

Could use small branch instruction [NAS#56]

A performance warning. Smaller branch instructions use less code space

and execute faster.

57

Could use smaller 'PUSHS' instead [NAS#57]

You can use PUSHS to push immediate constants in the 0..7 range.
PUSHS uses less code space and executes faster than PUSH.

58

Useless instruction [NAS#58]

The instruction has no effect.

59
60
61

62
63
64

65
66

Could use smaller 'INC' instead [NAS#59]
Could use smaller ‘DEC’ instead [NAS#60]
Could combine ‘RET’ with previous instruction [NAS#61]
Could replace ‘CALLR’+’RET’ with ‘SBR’ [NAS#62]
Could replace ‘CALLR’+’RET’ with ‘BR’ [NAS#63]
Could replace ‘CALL’+’RET’ with ‘BRF’ [NAS#64]
Could replace ‘CALLF’+’RET’ with ‘BRF’ [NAS#65]
Could use immediate-operand instruction with previous push [NAS#66]

These suggestions are provided for more efficient code.