0
|
1 portasm - a toolkit for writing portable generic assembler sources
|
|
2 ------------------------------------------------------------------
|
|
3
|
|
4 Copyright (C) 2011 Daniel Adler <dadler@uni-goettingen.de>.
|
|
5 Licensed under BSD two-clause license.
|
|
6
|
|
7
|
|
8 Requirements
|
|
9 ------------
|
|
10 - C Preprocessor
|
|
11
|
|
12
|
|
13 Supported Architectures and Tool-chains:
|
|
14 ----------------------------------------
|
|
15
|
651
|
16 - x86: gas, apple as, masm
|
|
17 - x64: gas, apple as, masm
|
|
18 - ppc: gas, apple as
|
|
19 - ppc64: gas, apple as
|
|
20 - arm: gas, apple as
|
|
21 - arm64: gas, apple as
|
0
|
22
|
|
23
|
|
24 Usage:
|
|
25 ------
|
|
26
|
|
27 Implement assembler sources in *.S files which use C preprocessor.
|
|
28 #include portasm-<ARCH>.S at front
|
|
29
|
|
30 In order to generate MASM files for X86 and X64, run
|
341
|
31 'gen-masm.sh <name> [<outsuffix>]' script which reads <name>.S and outputs <name><outsuffix>.masm file.
|
0
|
32
|
|
33
|
|
34 Common Macros:
|
|
35 --------------
|
|
36
|
|
37 BEGIN_ASM
|
|
38 END_ASM
|
|
39 BEGIN_PROC(name)
|
|
40 END_PROC(name)
|
|
41 GLOBAL(name)
|
|
42 HEX(value)
|
|
43
|
|
44
|