Vasm Assembler System
Total Page:16
File Type:pdf, Size:1020Kb
vasm assembler system Volker Barthelmann, Frank Wille June 2021 i Table of Contents 1 General :::::::::::::::::::::::::::::::::::::::::: 1 1.1 Introduction ::::::::::::::::::::::::::::::::::::::::::::::::::: 1 1.2 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 1 1.3 Installation :::::::::::::::::::::::::::::::::::::::::::::::::::: 1 2 The Assembler :::::::::::::::::::::::::::::::::: 3 2.1 General Assembler Options ::::::::::::::::::::::::::::::::::::: 3 2.2 Expressions :::::::::::::::::::::::::::::::::::::::::::::::::::: 5 2.3 Symbols ::::::::::::::::::::::::::::::::::::::::::::::::::::::: 7 2.4 Predefined Symbols :::::::::::::::::::::::::::::::::::::::::::: 7 2.5 Include Files ::::::::::::::::::::::::::::::::::::::::::::::::::: 8 2.6 Macros::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 8 2.7 Structures:::::::::::::::::::::::::::::::::::::::::::::::::::::: 8 2.8 Conditional Assembly :::::::::::::::::::::::::::::::::::::::::: 8 2.9 Known Problems ::::::::::::::::::::::::::::::::::::::::::::::: 9 2.10 Credits ::::::::::::::::::::::::::::::::::::::::::::::::::::::: 9 2.11 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 10 3 Standard Syntax Module ::::::::::::::::::::: 13 3.1 Legal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 13 3.2 Additional options for this module :::::::::::::::::::::::::::: 13 3.3 General Syntax ::::::::::::::::::::::::::::::::::::::::::::::: 13 3.4 Directives ::::::::::::::::::::::::::::::::::::::::::::::::::::: 14 3.5 Known Problems:::::::::::::::::::::::::::::::::::::::::::::: 21 3.6 Error Messages:::::::::::::::::::::::::::::::::::::::::::::::: 21 4 Mot Syntax Module ::::::::::::::::::::::::::: 23 4.1 Legal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 23 4.2 Additional options for this module :::::::::::::::::::::::::::: 23 4.3 General Syntax ::::::::::::::::::::::::::::::::::::::::::::::: 24 4.4 Directives ::::::::::::::::::::::::::::::::::::::::::::::::::::: 24 4.5 Known Problems:::::::::::::::::::::::::::::::::::::::::::::: 35 4.6 Error Messages:::::::::::::::::::::::::::::::::::::::::::::::: 35 5 Madmac Syntax Module :::::::::::::::::::::: 37 5.1 Legal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 37 5.2 General Syntax ::::::::::::::::::::::::::::::::::::::::::::::: 37 5.3 Directives ::::::::::::::::::::::::::::::::::::::::::::::::::::: 37 5.4 Known Problems:::::::::::::::::::::::::::::::::::::::::::::: 41 5.5 Error Messages:::::::::::::::::::::::::::::::::::::::::::::::: 41 ii vasm manual 6 Oldstyle Syntax Module :::::::::::::::::::::: 43 6.1 Legal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 43 6.2 Additional options for this module :::::::::::::::::::::::::::: 43 6.3 General Syntax ::::::::::::::::::::::::::::::::::::::::::::::: 43 6.4 Directives ::::::::::::::::::::::::::::::::::::::::::::::::::::: 44 6.5 Structures :::::::::::::::::::::::::::::::::::::::::::::::::::: 51 6.6 Known Problems:::::::::::::::::::::::::::::::::::::::::::::: 52 6.7 Error Messages:::::::::::::::::::::::::::::::::::::::::::::::: 52 7 Test output module ::::::::::::::::::::::::::: 55 7.1 Legal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 55 7.2 Additional options for this module :::::::::::::::::::::::::::: 55 7.3 General ::::::::::::::::::::::::::::::::::::::::::::::::::::::: 55 7.4 Restrictions ::::::::::::::::::::::::::::::::::::::::::::::::::: 55 7.5 Known Problems:::::::::::::::::::::::::::::::::::::::::::::: 55 7.6 Error Messages:::::::::::::::::::::::::::::::::::::::::::::::: 55 8 ELF output module ::::::::::::::::::::::::::: 57 8.1 Legal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 57 8.2 Additional options for this module :::::::::::::::::::::::::::: 57 8.3 General ::::::::::::::::::::::::::::::::::::::::::::::::::::::: 57 8.4 Restrictions ::::::::::::::::::::::::::::::::::::::::::::::::::: 57 8.5 Known Problems:::::::::::::::::::::::::::::::::::::::::::::: 57 8.6 Error Messages:::::::::::::::::::::::::::::::::::::::::::::::: 57 9 a.out output module :::::::::::::::::::::::::: 59 9.1 Legal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 59 9.2 Additional options for this module :::::::::::::::::::::::::::: 59 9.3 General ::::::::::::::::::::::::::::::::::::::::::::::::::::::: 59 9.4 Restrictions ::::::::::::::::::::::::::::::::::::::::::::::::::: 59 9.5 Known Problems:::::::::::::::::::::::::::::::::::::::::::::: 59 9.6 Error Messages:::::::::::::::::::::::::::::::::::::::::::::::: 59 10 TOS output module:::::::::::::::::::::::::: 61 10.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 61 10.2 Additional options for this module ::::::::::::::::::::::::::: 61 10.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 61 10.4 Restrictions :::::::::::::::::::::::::::::::::::::::::::::::::: 61 10.5 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 61 10.6 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 61 iii 11 Amiga output module ::::::::::::::::::::::: 63 11.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 63 11.2 Additional options for this module ::::::::::::::::::::::::::: 63 11.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 63 11.4 Restrictions :::::::::::::::::::::::::::::::::::::::::::::::::: 64 11.5 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 64 11.6 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 64 12 X68k output module ::::::::::::::::::::::::: 65 12.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 65 12.2 Additional options for this module ::::::::::::::::::::::::::: 65 12.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 65 12.4 Restrictions :::::::::::::::::::::::::::::::::::::::::::::::::: 65 12.5 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 65 12.6 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 65 13 O65 output module :::::::::::::::::::::::::: 67 13.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 67 13.2 Additional options for this module ::::::::::::::::::::::::::: 67 13.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 68 13.4 Restrictions :::::::::::::::::::::::::::::::::::::::::::::::::: 68 13.5 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 68 13.6 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 68 14 vobj output module :::::::::::::::::::::::::: 69 14.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 69 14.2 Additional options for this module ::::::::::::::::::::::::::: 69 14.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 69 14.4 Restrictions :::::::::::::::::::::::::::::::::::::::::::::::::: 69 14.5 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 69 14.6 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 69 15 Simple binary output module ::::::::::::::: 71 15.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 71 15.2 Additional options for this module ::::::::::::::::::::::::::: 71 15.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 72 15.4 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 72 15.5 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 72 16 Motorola srecord output module ::::::::::: 73 16.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 73 16.2 Additional options for this module ::::::::::::::::::::::::::: 73 16.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 73 16.4 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 73 16.5 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 73 iv vasm manual 17 Intel hex output module::::::::::::::::::::: 75 17.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 75 17.2 Additional options for this module ::::::::::::::::::::::::::: 75 17.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 75 17.4 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 75 17.5 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 75 18 C #define output module ::::::::::::::::::: 77 18.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 77 18.2 Additional options for this module ::::::::::::::::::::::::::: 77 18.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 77 18.4 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 77 18.5 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 77 19 m68k cpu module :::::::::::::::::::::::::::: 79 19.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 79 19.2 Additional options for this module ::::::::::::::::::::::::::: 79 19.2.1 CPU selections :::::::::::::::::::::::::::::::::::::::::: 79 19.2.2 Optimization options:::::::::::::::::::::::::::::::::::: 80 19.2.3 Other options ::::::::::::::::::::::::::::::::::::::::::: 82 19.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 83 19.4 Internal symbols ::::::::::::::::::::::::::::::::::::::::::::: 83 19.5 Extensions ::::::::::::::::::::::::::::::::::::::::::::::::::: 84 19.6 Optimizations:::::::::::::::::::::::::::::::::::::::::::::::: 89 19.7 Known Problems::::::::::::::::::::::::::::::::::::::::::::: 93 19.8 Error Messages :::::::::::::::::::::::::::::::::::::::::::::: 93 20 PowerPC cpu module :::::::::::::::::::::::: 97 20.1 Legal :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 97 20.2 Additional options for this module ::::::::::::::::::::::::::: 97 20.3 General :::::::::::::::::::::::::::::::::::::::::::::::::::::: 98 20.4 Extensions :::::::::::::::::::::::::::::::::::::::::::::::::::