beautypg.com

Neuron assembler tools, Neuron c compiler for assembly programming, Neuron assembler command line tool – Echelon Neuron User Manual

Page 13

background image

Chapter 8, System-Provided Functions, describes system-provided

functions for various arithmetical or logical operations or for stack

management.

This book also contains several appendixes with additional information.

Neuron Assembler Tools

You can create and edit Neuron assembly language files using any text editor,

such as Windows Notepad. The primary tool for working with Neuron assembly

language files is the Neuron Assembler. The Neuron Assembler translates your

source code, written in the Neuron Assembly language, into a Neuron object file

(.no extension). You can use the Neuron Librarian to create or manage code

libraries of Neuron object files, including those created from assembly language

files.
In general, you do not need to use the Neuron Assembler when creating a small

number of utility functions for use with one specific Neuron C application. To use

assembly source code within a Neuron C application, the Neuron C Compiler

supports the #pragma include_assembly_file directive, which can be used to

copy a specified assembly source file directly into the compiler-generated output.
The main tools for working with Neuron C applications, which can interact with

Neuron assembly functions, are the IzoT NodeBuilder FX Development Tool, and

the FT 6000 EVB. The IzoT NodeBuilder FX Development Tool can produce

Neuron assembly listing output files for your Neuron C programs.

Neuron C Compiler for Assembly Programming

The Neuron C Compiler supports the #pragma include_assembly_file

directive. This directive can be used repeatedly within the same Neuron C source

code, specifying one assembly source file at a time.
The Neuron C compiler translates your Neuron C source code into Neuron

Assembly output. When it encounters the #pragma include_assembly_file

directive, the compiler copies the content of the referenced assembly source file

directly (without modification) into its own output stream.
See the Neuron C Reference Guide for more information about compiler

directives.

Neuron Assembler Command Line Tool

The Neuron Assembler, available from the command line as NAS.EXE,

translates source files written in the Neuron assembly language (typically using

a .ns file extension) into Neuron object files (.no file extension), which can then

be packaged into function libraries using the Neuron Librarian (NLIB.EXE).

The resulting function libraries can then be provided to the Neuron Linker

(NLD.EXE), and code that is contained in these libraries and referenced by the

Neuron C source code is linked with the application.
To run the Neuron Assembler, open a Windows command prompt (Start →

Programs → Accessories → Command Prompt), and enter the following

command:

nas –switches file.ns

Neuron Assembly Language Reference

3