MAC65 Assembler
Total Page:16
File Type:pdf, Size:1020Kb
MAC65 Assembler http://www.abbuc.de http://www.atari-portal.de Converted 2006 by Andreas Bertelmann for ABBUC I MAC65 Assembler Contents Part I Introduction 5 Part II The editor 8 1 General editor........ .usage.......... ................................................................................................................ 8 2 Text mode. .................................................................................................................................. 8 3 Edit mode. .................................................................................................................................. 9 Part III Editor commands 11 1 ASM ................................................................................................................................... 11 2 BLOAD ................................................................................................................................... 12 3 BSAVE ................................................................................................................................... 12 4 BYE ................................................................................................................................... 12 5 C (Change... .Memory)............... ................................................................................................................ 13 6 D (Display... .Memory)............... ................................................................................................................ 13 7 DEL ................................................................................................................................... 13 8 DOS ................................................................................................................................... 13 9 ENTER ................................................................................................................................... 14 10 FIND ................................................................................................................................... 14 11 LIST ................................................................................................................................... 14 12 LOAD ................................................................................................................................... 15 13 LOMEM ................................................................................................................................... 15 14 NEW ................................................................................................................................... 15 15 NUM ................................................................................................................................... 16 16 PRINT ................................................................................................................................... 16 17 REN ................................................................................................................................... 16 18 REP ................................................................................................................................... 17 19 SAVE ................................................................................................................................... 17 20 SIZE ................................................................................................................................... 17 21 TEXT ................................................................................................................................... 18 22 ? (hex/dec... .convert).............. ................................................................................................................. 18 Part IV The Macro Assembler 20 1 Assembler.... .input........ ...................................................................................................................... 21 2 Instruction.... .format........... ................................................................................................................... 21 3 Labels ................................................................................................................................... 22 4 Operands.. ................................................................................................................................. 22 5 Operators.. ................................................................................................................................. 22 Operators:... .+.. .-. .*. ./. ............................................................................................................................................ 23 Operators:... .&.. .!. .^.. ............................................................................................................................................. 23 Operators:... .=.. .>.. .<.. .<>.... .>=.... .<=.... ............................................................................................................................. 23 Converted 2006 by Andreas Bertelmann for ABBUC Contents II Operators:... ..OR...... ..AND........ ..NOT......... ........................................................................................................................... 23 Operators:... .[. .]. .................................................................................................................................................. 24 6 Assembler.... expressions...................... ......................................................................................................... 24 7 Operator .precedence.................... .............................................................................................................. 24 8 Numeric .constants................. ................................................................................................................. 25 9 Strings ................................................................................................................................... 25 Part V Directives 27 1 Directive:.. .*=... ............................................................................................................................ 27 2 Directive:.. .=.. ............................................................................................................................. 28 3 Directive:.. ..=... ............................................................................................................................ 28 4 Directive:.. ..BYTE.......... .[and........ ..SBYTE].............. ........................................................................................... 28 5 Directive:.. ..CBYTE............. .................................................................................................................. 29 6 Directive:.. .DBYTE............ .[. .see...... .also....... ..WORD............. .]. ................................................................................. 30 7 Directive:.. ..ELSE.......... ..................................................................................................................... 30 8 Directive:.. ..END........ ....................................................................................................................... 30 9 Directive:.. ..ENDIF........... .................................................................................................................... 30 10 Directive:.. ..ERROR.............. ................................................................................................................. 31 11 Directive:.. ..FLOAT............. .................................................................................................................. 31 12 Directive:.. ..IF.... ........................................................................................................................... 31 13 Directive:.. ..INCLUDE................. .............................................................................................................. 32 14 Directive:.. ..LOCAL............. .................................................................................................................. 33 15 Directive:.. ..OPT........ ....................................................................................................................... 33 16 Directive:.. ..PAGE........... .................................................................................................................... 34 17 Directive:.. ..SBYTE............. .................................................................................................................. 35 18 Directive:.. ..SET........ ....................................................................................................................... 35 19 Directive:.. ..TAB........ ....................................................................................................................... 35 20 Directive:.. ..TITLE........... .................................................................................................................... 36 Part VI Macro facility 38 1 Directive:.. ..ENDM........... ................................................................................................................... 38 2 Directive:.. ..MACRO.............. ...............................................................................................................