Download AMCA User Manual
Transcript
AMCA User Manual 5.28 5.29 5.30 5.31 5.32 5.33 5.34 5.35 5.36 5.37 5.38 5.39 5.40 5.41 5.42 5.43 5.44 5.45 5.46 5.47 5.48 5.49 5.50 5.51 5.52 6. Macro Language ................................................................................................................................................43 6.1 6.2 6.3 6.4 7. FOR – Perform For Loop While Iterator Meets the Condition.................................................................................... 28 IF – Begin Conditionally Assembled Code Block....................................................................................................... 29 IFDEF – Execute If Symbol has Been Defined.......................................................................................................... 30 IFNDEF – Execute If Symbol has not Been Defined ................................................................................................. 30 #INCLUDATA – Include Binary Data File................................................................................................................... 31 #INCLUDE – Include Additional Source File ............................................................................................................. 31 LINES – Insert Listing Page Eject ............................................................................................................................. 32 LIST – Listing Options ............................................................................................................................................... 32 LOCAL – Declare Local Macro Variable .................................................................................................................... 33 MACRO – Declare Macro Definition.......................................................................................................................... 34 MAXMACRODEPTH – Define Maximum Macro Depth ............................................................................................. 34 MESSG – Create User Defined Message ................................................................................................................. 35 NEWPAGE – Insert Listing Page Eject...................................................................................................................... 35 NOEXPAND – Turn off Macro Expansion.................................................................................................................. 36 ORG – Set Program Origin........................................................................................................................................ 36 RADIX – Specify Default Radix ................................................................................................................................. 36 REPEAT – Begin a Repeat-Until Loop Block Definition............................................................................................. 37 RES – Reserve Memory............................................................................................................................................ 37 SUBTITLE – Specify Program Subtitle...................................................................................................................... 38 SWITCH – Begin Conditional Switching Assembly Block.......................................................................................... 38 TITLE – Specify Program Title................................................................................................................................... 39 #UNDEFINE – Delete a Substitution Label ............................................................................................................... 39 UNTIL – Perform Loop Until Condition is True .......................................................................................................... 40 VARIABLE – Declare Symbol Variable ...................................................................................................................... 41 WHILE – Perform Loop While Condition is True........................................................................................................ 41 Macro Syntax ............................................................................................................................................................ 43 Macro Directives........................................................................................................................................................ 43 Text Substitution ........................................................................................................................................................ 44 Macro Usage ............................................................................................................................................................. 44 Expression Syntax and Operation...................................................................................................................45 7.1 7.2 7.3 7.4 Text Strings................................................................................................................................................................ 45 Numeric Constants and Radix................................................................................................................................... 46 High/Mid/Low............................................................................................................................................................. 48 Increment/Decrement (++/--) ..................................................................................................................................... 48 Appendix A. Quick Reference .................................................................................................................................49 A.1 A.2 A.3 A.4 AMCA Quick Reference ............................................................................................................................................ 49 4-Bit MCU List ........................................................................................................................................................... 54 8-Bit MCU List ........................................................................................................................................................... 55 4-Bit MCU Instruction Set .......................................................................................................................................... 56 Appendix B. AMCA Errors/Warnings......................................................................................................................58 B.1 B.2 Errors ........................................................................................................................................................................ 58 Warnings ................................................................................................................................................................... 63 Glossary.....................................................................................................................................................................64 C.1 Terms ........................................................................................................................................................................ 64 2 Rev 2.2 2004/2/12