Debian Codegraph @

contrib/toacme/docs/Known problems.txt

raw
1
2
3 VisAss, AssBlaster and Flash8-AssBlaster stuff
4 ----------------------------------------------
5
6 The pseudo opcode "\kc" cannot be converted, because ACME does not
7 have a matching pseudo opcode. The converter will insert an
8 explanatory message in the output file.
9
10 The pseudo opcode "\st" is converted to "!eof". To decide whether this
11 makes sense or not is left as an exercise for the reader.
12
13 "Marked" AssBlaster labels are converted to global ACME labels.
14 "Unmarked" AssBlaster labels are converted to local ACME labels.
15 If your AssBlaster sources contain marked (!) labels which read like
16 mnemonics ("^lda", "^nop" "^sed" or the like), ACME will interpret
17 the converted versions like instructions.
18 THE CONVERTER DOES NOT HANDLE THIS PROBLEM YET, so you will have to
19 change such label names by hand. If binaries produced by ACME and
20 AssBlaster are the same size, you don't have this problem.
21
22 AssBlaster allows the characters '[', ']' and '^' to be used in label
23 names. These are converted to uppercase letters, which does not cause
24 any problems - it just looks a bit strange... :)
25
26 Empty comments (semicolons at end-of-line) are stripped.
27
28 AssBlaster claims to support the 6510's undocumented ("illegal")
29 instructions. Actually, when I checked, it confused some of the
30 mnemonics ("asr" and "arr"), and for "lax" and "aax" (aka "sax") it
31 actually generated wrong opcodes for some addressing modes.
32
33 There's a slight problem with macros: Source codes that assemble fine
34 with AssBlaster *might* give "label not defined" errors after ACME
35 conversion. This is because AssBlaster macros can access all labels,
36 while ACME macros can only access global labels (besides their
37 arguments, of course).
38
39 To fix such errors, you'll have to
40 a) make the macro code reference global labels instead of local ones
41 and
42 b) define those global labels, of course.
43
44 AssBlaster ACME (unfixed) ACME (fixed by you)
45
46 \md chk.c1,c2 !macro chk .c1,.c2 { !macro chk .c1,.c2 {
47 lda #c1 lda #.c1 lda #.c1
48 ldx #c2 ldx #.c2 ldx #.c2
49 jsr sub jsr .sub jsr sub ;<-FIX
50 \de } }
51
52 \ma chk.5,7 +chk 5,7 +chk 5,7
53 rts rts rts
54
55 sub: .sub .sub
56 rts; later rts; later sub ;<-FIX
57 rts; later
58
59
60 Hypra-Ass and Giga-Ass stuff
61 ----------------------------
62
63 The following pseudo opcodes cannot be converted, because ACME does
64 not have any matching pseudo opcode. The converter will insert an
65 explanatory message in the output file.
66 .on (uses BASIC line numbers)
67 .go (uses BASIC line numbers)
68 .co (for chained assembly)
69 .dp (format rules)
70 .li (list on printer)
71 .st (stop output)
72
73 Empty comments (semicolons at end-of-line) are stripped.
74
75 There's a problem with macros: ACME macro parameters should be *local*
76 labels, but in Hypra-Ass and Giga-Ass, all labels are global.
77 THE CONVERTER DOES NOT HANDLE THIS PROBLEM, so you will have to fix
78 the macros manually:
79
80 Hypra-Ass ACME (unfixed) ACME (fixed by you)
81
82 .ma chk (c1,c2) !macro chk c1,c2 { !macro chk .c1,.c2 {
83 lda #c1 lda #c1 lda #.c1
84 ldx #c2 ldx #c2 ldx #.c2
85 jsr sub jsr sub jsr sub
86 .rt } }