Echelon Neuron User Manual
Page 6

Writing a Neuron Assembly Utility Function .......................................... 35
Overview of Stack-Oriented Programming ................................................ 36
Designing a Neuron Assembly Function .................................................... 37
Interrupt Tasks with Assembly Code ......................................................... 39
Documenting Changes to the Stack ............................................................ 40
Stack-Effect Comments ......................................................................... 41
Multi-Byte Values ........................................................................... 41
Pointer Values ................................................................................. 41
Conditional Values .......................................................................... 41
Showing the Return Stack .............................................................. 42
Stack-Transformation Comments ........................................................ 42
Interfacing with a Neuron C Application ................................................. 47
Integers, Characters, and Strings ........................................................ 51
Structures and Unions .......................................................................... 52
Calling a Neuron C Function from Assembly Code ................................... 52
Exploring an Example Function in Neuron Assembly .......................... 55
Overview of the Checksum Example .......................................................... 56
Implementing the Checksum Function ...................................................... 56
Including the Assembly Function in a Neuron C Application .................. 57
Neuron Assembly Language Instruction Statements ............................ 59
Overview of the Assembly Language Instructions .................................... 60
vi