beautypg.com

Echelon Neuron User Manual

Page 5

background image

Table of Contents

Welcome ......................................................................................................... iii

Audience ........................................................................................................ iii

Related Documentation ................................................................................ iii

Introduction ....................................................................................................... 1

Introduction .................................................................................................... 2

Neuron Assembler Tools ................................................................................ 3

Neuron C Compiler for Assembly Programming ................................... 3

Neuron Assembler Command Line Tool ................................................ 3

Command Usage ............................................................................... 4

NAS Command Switches .................................................................. 4

Neuron Librarian Tool ............................................................................ 5

IzoT NodeBuilder Development Tool ..................................................... 6

Assembler Files .............................................................................................. 6

Source Files .............................................................................................. 6

Naming Convention .......................................................................... 6

File Format ........................................................................................ 7

Output Files ............................................................................................. 7

General Neuron Assembly Syntax ................................................................ 8

Labels ....................................................................................................... 9

Assembly Instructions ............................................................................. 9

Operands ................................................................................................ 10

Literal Constants ............................................................................ 10

Symbols ............................................................................................ 11

Expressions ...................................................................................... 11

Comments .............................................................................................. 14

Assembler Directives ................................................................................... 14

Interfacing with Neuron C Programs ......................................................... 14

Neuron Architecture for Neuron Assembly Programming .................. 15

Neuron Architecture .................................................................................... 16

Hardware Resources for Assembly Programs ............................................ 17

CPU Registers ........................................................................................ 17

General-Purpose Registers ............................................................. 18

Pointer Registers ............................................................................. 19

Flag Register ................................................................................... 21

Instruction Pointer .......................................................................... 21

Base-Page Register and Stack Registers ....................................... 21

Stacks ..................................................................................................... 22

Data Stack ....................................................................................... 22

Return Stack ................................................................................... 23

Stack Manipulation ............................................................................... 24

Segments ................................................................................................ 25

Using Neuron Chip Memory ................................................................. 26

Chips with Off-Chip Memory ......................................................... 26

Chips without Off-Chip Memory .................................................... 28

Chips with Auto-tuned Memory ..................................................... 29

Accessing Global and Static Data ......................................................... 30

Addressing Modes ........................................................................................ 30

Immediate .............................................................................................. 30

Absolute .................................................................................................. 30

Direct ...................................................................................................... 31

Neuron Assembly Language Reference

v