| 1 |
|
| 2 |
|
| 3 |
ACME |
| 4 |
|
| 5 |
...the ACME Crossassembler for Multiple Environments |
| 6 |
|
| 7 |
--- upgrading from earlier versions --- |
| 8 |
|
| 9 |
|
| 10 |
If you haven't used ACME before, you don't need to read this text. |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
---------------------------------------------------------------------- |
| 15 |
Upgrading from earlier releases to ACME release 0.97 |
| 16 |
---------------------------------------------------------------------- |
| 17 |
|
| 18 |
a) Single quotes vs. double quotes: |
| 19 |
Since "anything in double quotes" is now considered to be a string, |
| 20 |
problems can arise when trying to do a calculation with a character |
| 21 |
code. Here are some examples: |
| 22 |
lda #' ' ; loads 32 like before (ASCII code of space) |
| 23 |
lda #' ' + 1 ; loads 33 like before (32 plus one) |
| 24 |
lda #" " ; loads 32 like before (ASCII code of space) |
| 25 |
lda #" " + 1 ; used to load 33, now fails with error! |
| 26 |
The third example still works, because 1-char-strings are treated |
| 27 |
just like single characters when returned by the expression parser as |
| 28 |
an argument for a mnemonic. |
| 29 |
However, the fourth example now fails because the expression parser |
| 30 |
tries to add a string to an integer, which is an undefined operation. |
| 31 |
Some examples for a related problem: |
| 32 |
a = ' ' ; a is 32 (ASCII code of space) |
| 33 |
b = ' ' + 1 ; b is 33 (32 plus one) |
| 34 |
c = "!" ; c used to be 33, now it's a 1-char string |
| 35 |
d = "!" + "!" ; d used to be 66, now it's a 2-char string |
| 36 |
If you do not get any errors when compiling your old sources, you do |
| 37 |
not need to worry about this problem. |
| 38 |
If you _do_ get errors, just use single quotes instead of double |
| 39 |
quotes. If you had to use double quotes because the quoted character |
| 40 |
itself is a single quote, write '\'' instead (backslash escaping, see |
| 41 |
below). |
| 42 |
|
| 43 |
b) Backslash escaping: |
| 44 |
Backslashes in single or double quotes are now used as escape |
| 45 |
characters. You need to replace any backslash in older sources with a |
| 46 |
sequence of two backslashes, so "some\string" becomes "some\\string", |
| 47 |
and a single character '\' becomes '\\'. |
| 48 |
If you have used backslashes as directory separators in path names (in |
| 49 |
Windows/DOS environments), these also need changing - but instead of |
| 50 |
using a double backslash, just use a single forward slash ('/') |
| 51 |
instead. This has the added benefit of making the sources platform- |
| 52 |
independent (*and* it's compatible to older ACME releases as well). |
| 53 |
|
| 54 |
c) Character values are now unsigned: |
| 55 |
When parsing a character in single quotes, ACME returns its character |
| 56 |
code, according to the chosen encoding (raw/petscii/screencode). If |
| 57 |
this resulted in a byte with its most significant bit set, the actual |
| 58 |
number was architecture-dependent. Here's an example: |
| 59 |
!ct pet ; choose PetSCII encoding |
| 60 |
x = 'A' ; PetSCII 'A' is 0xc1, so MSB is set |
| 61 |
Now x was either -63 or +193, depending on the host cpu architecture. |
| 62 |
Since release 0.97, this example will give 193 on all architectures. |
| 63 |
In most cases, this is not a problem, because the actual bit pattern |
| 64 |
of the lower eight bits is the same. But if you have written any code |
| 65 |
where the numerical value of a PetSCII character is used for |
| 66 |
computations _in_the_source_code_, please check those computations. |
| 67 |
|
| 68 |
Use the "--dialect 0.95.2" CLI switch to get the old behavior |
| 69 |
concerning a) double quotes and b) backslashes. There is no way to get |
| 70 |
the old behavior concerning c) character values, because, as explained |
| 71 |
above, the old behavior was architecture-dependent, which is a bad |
| 72 |
idea(tm). |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
---------------------------------------------------------------------- |
| 77 |
Upgrading from earlier releases to ACME release 0.95.2 |
| 78 |
---------------------------------------------------------------------- |
| 79 |
|
| 80 |
In 6510 mode, ACME now outputs 0x0b instead of 0x2b when assembling |
| 81 |
the undocumented ("illegal") ANC #imm8 instruction. Both opcodes do |
| 82 |
the same thing, this was only changed because all other mnemonics use |
| 83 |
the lowest-numbered possible opcode as well. |
| 84 |
Use the "--dialect 0.94.12" CLI switch to get the old behavior. |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
---------------------------------------------------------------------- |
| 89 |
Upgrading from earlier releases to ACME release 0.94.12 |
| 90 |
---------------------------------------------------------------------- |
| 91 |
|
| 92 |
The pseudo opcode "!for" has a new syntax. The old syntax still works, |
| 93 |
but gives a warning. |
| 94 |
You can use the "--dialect 0.94.8" CLI switch to get the old behavior. |
| 95 |
|
| 96 |
|
| 97 |
---------------------------------------------------------------------- |
| 98 |
Upgrading from earlier releases to ACME release 0.94.8 |
| 99 |
---------------------------------------------------------------------- |
| 100 |
|
| 101 |
The pseudo opcodes "!cbm", "!subzone" and "!realpc" no longer give |
| 102 |
warnings, but have now been disabled. |
| 103 |
You can use the "--dialect 0.94.6" CLI switch to get the old behavior. |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
---------------------------------------------------------------------- |
| 108 |
Upgrading from earlier releases to ACME release 0.94.6 |
| 109 |
---------------------------------------------------------------------- |
| 110 |
|
| 111 |
The "to-the-power-of" operator ('^') is now right-associative, so |
| 112 |
b^c^d will now give b^(c^d) instead of (b^c)^d |
| 113 |
If you have never used the operator in this way, you don't need to |
| 114 |
worry about it. |
| 115 |
You can use the "--dialect 0.86" CLI switch to get the old behavior. |
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
---------------------------------------------------------------------- |
| 120 |
Upgrading from earlier releases to ACME release 0.89 |
| 121 |
---------------------------------------------------------------------- |
| 122 |
|
| 123 |
The "logical shift right" operator has been changed. Note: This is |
| 124 |
about ACME's expression parser and has nothing to do with the 6502 |
| 125 |
mnemonic called "LSR". |
| 126 |
Older versions were supposed to work like this: |
| 127 |
a = b >> c ; alias "LSR", do a logical shift right |
| 128 |
But what they actually did depended on the compiler that was used to |
| 129 |
create the ACME binary: many binaries did an "arithmetic shift right" |
| 130 |
instead. This has now been fixed and changed to: |
| 131 |
a = b >> c ; alias "ASR", do an arithmetic shift right |
| 132 |
a = b >>> c ; alias "LSR", do a logical shift right |
| 133 |
If you have never applied the old ">>"/"LSR" operator to a negative |
| 134 |
value, you do not need to worry about this. If you have, please check |
| 135 |
what you expected to happen in those instances (arithmetic or logical |
| 136 |
shift) and update your source codes accordingly (use either ">>"/"ASR" |
| 137 |
or ">>>"/"LSR"). |
| 138 |
Forcing the old behavior via the "--dialect" switch is not possible, |
| 139 |
because as explained above, the old behavior was compiler-dependent |
| 140 |
anyway. |
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
---------------------------------------------------------------------- |
| 145 |
Upgrading from earlier releases to ACME release 0.07 |
| 146 |
---------------------------------------------------------------------- |
| 147 |
|
| 148 |
Re-defining the program counter via "* = NEW_VALUE" no longer starts |
| 149 |
offset assembly. Instead, ACME will change its pointer into the output |
| 150 |
buffer to the given value, so you can write your code in distinct |
| 151 |
segments. These segments can be given in any order. After assembly, |
| 152 |
ACME stores everything from the lowest address used to the highest |
| 153 |
address used. Have a look at "AllPOs.txt" for an example on how to use |
| 154 |
this facility. |
| 155 |
|
| 156 |
Offset assembly is now done using a new pseudo opcode called |
| 157 |
"!pseudopc". Have a look at "AllPOs.txt" for further information on |
| 158 |
its syntax and usage. |
| 159 |
|
| 160 |
The pseudo opcode "!end" has been removed. Use "!eof" instead. |
| 161 |
|
| 162 |
The mnemonic BIT can no longer be assembled without any argument. If |
| 163 |
you want to insert the opcode only to mask the next instruction, use |
| 164 |
!src <6502/std.a> |
| 165 |
to get the definitions for these two macros: |
| 166 |
+bit8 ; output $24 to mask following 1-byte instruction |
| 167 |
+bit16 ; output $2c to mask following 2-byte instruction |
| 168 |
|
| 169 |
When using the 65816 cpu, ACME now uses the correct argument order for |
| 170 |
the MVN and MVP mnemonics, which is: |
| 171 |
mnemonic source_bank, destination_bank |
| 172 |
|
| 173 |
Using leading zeroes in hexadecimal or binary values makes ACME use |
| 174 |
bigger addressing modes than needed. This has now been extended to |
| 175 |
symbols as well: |
| 176 |
label2 = $00fa |
| 177 |
lda label2 |
| 178 |
will be assembled to: |
| 179 |
ad fa 00 lda $00fa |
| 180 |
|
| 181 |
Forcing the old behavior via the "--dialect" switch is not supported. |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
---------------------------------------------------------------------- |
| 186 |
Upgrading from earlier releases to ACME release 0.04 beta |
| 187 |
---------------------------------------------------------------------- |
| 188 |
|
| 189 |
The pseudo opcode "!module" has been removed. Use "!zone" instead. |
| 190 |
Forcing the old behavior via the "--dialect" switch is not supported. |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
---------------------------------------------------------------------- |
| 195 |
Upgrading from earlier releases to ACME release 0.03 beta |
| 196 |
---------------------------------------------------------------------- |
| 197 |
|
| 198 |
It is no longer possible to have more than one label in a single line. |
| 199 |
Forcing the old behavior via the "--dialect" switch is not supported. |
| 200 |
|