| 1 |
|
| 2 |
|
| 3 |
ACME |
| 4 |
|
| 5 |
...the ACME Crossassembler for Multiple Environments |
| 6 |
|
| 7 |
--- error messages --- |
| 8 |
|
| 9 |
|
| 10 |
Here's a sorted list of all error messages ACME can give, possible |
| 11 |
reasons and what you can do to sort it out. |
| 12 |
|
| 13 |
|
| 14 |
---------------------------------------------------------------------- |
| 15 |
Section: Errors on startup |
| 16 |
---------------------------------------------------------------------- |
| 17 |
|
| 18 |
Cannot open toplevel file "FILENAME". |
| 19 |
Maybe you mistyped its name? |
| 20 |
|
| 21 |
Error in CLI arguments: ... |
| 22 |
There are several of these errors, but they should be quite self- |
| 23 |
explanatory. |
| 24 |
|
| 25 |
|
| 26 |
---------------------------------------------------------------------- |
| 27 |
Section: Warnings during assembly |
| 28 |
---------------------------------------------------------------------- |
| 29 |
|
| 30 |
!warn: ... |
| 31 |
This is given when the pseudo opcode "!warn" is executed. The |
| 32 |
actual message varies according to the pseudo opcode's arguments. |
| 33 |
|
| 34 |
Assembling buggy JMP($xxff) instruction |
| 35 |
The original 6502 processor has a bug: When executing an indirect |
| 36 |
JMP instruction where the low byte of the argument equals $ff, it |
| 37 |
fetches the high byte of the jump target address not from memory |
| 38 |
location ARGUMENT + 1, but from ARGUMENT - 255. Therefore ACME |
| 39 |
issues this warning if you are about to generate such an |
| 40 |
instruction. |
| 41 |
Note that this warning is only given for some CPU types (6502, |
| 42 |
nmos6502/6510, c64dtv2) because later ones like 65c02 and 65816 |
| 43 |
have been fixed in this regard. |
| 44 |
|
| 45 |
Assembling unstable ANE #NONZERO instruction |
| 46 |
Assembling unstable LXA #NONZERO instruction |
| 47 |
These warnings are only ever given for CPU type nmos6502 (6510). |
| 48 |
ANE and LXA are undocumented ("illegal") opcodes of this CPU, and |
| 49 |
they only work reliably if the argument is zero or the accumulator |
| 50 |
contains 0xff. |
| 51 |
Therefore ACME issues these warnings if it is about to generate |
| 52 |
these instructions with a non-zero argument. |
| 53 |
|
| 54 |
Binary literal with strange number of digits. |
| 55 |
This warning is given if the number of digits in a binary literal |
| 56 |
is not a multiple of four. This is useful when you meant to write |
| 57 |
%#....... but actually wrote %#........ by mistake. See? :P |
| 58 |
You can disable this warning using the CLI switch "-Wno-bin-len". |
| 59 |
|
| 60 |
Bug in ACME, code follows |
| 61 |
A situation has been encountered implying there is a bug in ACME. |
| 62 |
See the last section in this file. |
| 63 |
|
| 64 |
Converted to integer for binary logic operator. |
| 65 |
Applying binary logic to float values does not make much sense, |
| 66 |
therefore floats will be converted to integer in such cases. |
| 67 |
|
| 68 |
"EOR" is deprecated; use "XOR" instead. |
| 69 |
This means the operator, not the mnemonic. |
| 70 |
|
| 71 |
Found old "!for" syntax. |
| 72 |
Please update your sources to use the new "!for" syntax. See |
| 73 |
AllPOs.txt for details. |
| 74 |
You can suppress this warning using the "--dialect" or the |
| 75 |
"-Wno-old-for" CLI switch. |
| 76 |
("-Wno-old-for" does _exactly_ the same as "--dialect 0.94.8") |
| 77 |
|
| 78 |
Found new "!for" syntax. |
| 79 |
When using the "-Wno-old-for" switch to disable the warning about |
| 80 |
the older syntax, the new syntax will trigger this warning. |
| 81 |
|
| 82 |
Found SED instruction for CPU with known decimal SBC bug. |
| 83 |
This warning is only ever given for CPU types 65ce02 and 4502, |
| 84 |
because they are known to be buggy in decimal mode. |
| 85 |
Pavel Zima and Eric Smith found an example where $41 minus $08 |
| 86 |
gave $39 instead of $33. |
| 87 |
|
| 88 |
Label name not in leftmost column. |
| 89 |
A label definition has blanks before the label name. |
| 90 |
Imagine this source code: |
| 91 |
lda #00 |
| 92 |
imx |
| 93 |
rts |
| 94 |
Obviously, there's a typo in the middle line (imx instead of inx), |
| 95 |
but ACME does not recognize this: It looks just like a label |
| 96 |
definition! Therefore releases 0.89 and higher warn you when a |
| 97 |
label name does not start in column 1. Releases 0.94 and higher |
| 98 |
support a command line option to switch off this warning |
| 99 |
("-Wno-label-indent"). |
| 100 |
|
| 101 |
Memory already initialised. |
| 102 |
The "!initmem" pseudo opcode was given more than once, or in |
| 103 |
addition to the "--initmem" command line option. Only use it once. |
| 104 |
|
| 105 |
Output file name already chosen. |
| 106 |
The "!to" pseudo opcode was given more than once, or in addition |
| 107 |
to the "--outfile" command line option. Only use it once. |
| 108 |
|
| 109 |
Output file format already chosen. |
| 110 |
The "!to" pseudo opcode specified a file format, but a format had |
| 111 |
already been chosen using the "--format" command line option. |
| 112 |
|
| 113 |
Segment reached another one, overwriting it. |
| 114 |
The program counter has just reached the start of another segment. |
| 115 |
Because some people might want to assemble "onto" a binary file |
| 116 |
that was loaded before, this warning can be inhibited using |
| 117 |
modifier keywords when changing the program counter via "*=". |
| 118 |
For extra safety you can also turn this warning into an error |
| 119 |
using the "--strict-segments" CLI switch. In future versions of |
| 120 |
ACME this might become the default. |
| 121 |
|
| 122 |
Segment starts inside another one, overwriting it. |
| 123 |
The given value in a "*=" assignment is located inside another |
| 124 |
segment. Because some people might want to assemble "onto" a |
| 125 |
binary file that was loaded before, this warning can be inhibited |
| 126 |
using modifier keywords when changing the program counter via |
| 127 |
"*=". |
| 128 |
For extra safety you can also turn this warning into an error |
| 129 |
using the "--strict-segments" CLI switch. In future versions of |
| 130 |
ACME this might become the default. |
| 131 |
|
| 132 |
Symbol list file name already chosen. |
| 133 |
The "!sl" pseudo opcode was given more than once, or in addition |
| 134 |
to the "--symbollist" command line option. Only use it once. |
| 135 |
|
| 136 |
Symbol name starts with a shift-space character. |
| 137 |
The name of a global symbol starts with a shift-space character. |
| 138 |
It is highly likely that this is a typing error, therefore this |
| 139 |
warning is issued. |
| 140 |
|
| 141 |
Used "!to" without file format indicator. |
| 142 |
Please specify the file format as a second argument to the "!to" |
| 143 |
pseudo opcode. If not given, cbm format is used. |
| 144 |
The file format can be overridden by the "--format" cli switch. |
| 145 |
|
| 146 |
Using oversized addressing mode. |
| 147 |
ACME just assembled an instruction using an addressing mode that |
| 148 |
was larger than needed. This only happens if ACME could not work |
| 149 |
out the argument's value in the first pass, therefore assuming a |
| 150 |
16-bit addressing mode. If, in a later pass, ACME finds out that |
| 151 |
the argument is small enough to fit in 8 bits, then this warning |
| 152 |
is shown. If you define all your zeropage symbols *before* they |
| 153 |
are first used, this shouldn't happen. If you know that a specific |
| 154 |
argument fits in 8 bits, you can force ACME to use 8 bits |
| 155 |
addressing by postfixing the mnemonic with "+1". Example: |
| 156 |
lda+1 label |
| 157 |
ACME will then use an 8-bit addressing mode, regardless of whether |
| 158 |
the label is known or not. If the label value happens to be too |
| 159 |
large to fit in 8 bits, ACME will show an error of course (to |
| 160 |
always truncate a value to 8 bits, use the '<' operator). |
| 161 |
More about the postfixing method can be found in "AddrModes.txt". |
| 162 |
|
| 163 |
Wrong type - expected address. |
| 164 |
Wrong type - expected integer. |
| 165 |
Wrong type for loop's END value - must match type of START value. |
| 166 |
These warnings are only given when type checking has been enabled |
| 167 |
using the "-Wtype-mismatch" switch. Make sure the argument type |
| 168 |
matches the instruction's addressing mode. |
| 169 |
In "!for" loops, START and END must have the same type, which then |
| 170 |
gets used for the loop counter. |
| 171 |
|
| 172 |
Zeropage pointer wraps around from $ff to $00 |
| 173 |
A zeropage-indirect addressing mode uses $ff as the argument. The |
| 174 |
6502 will then fetch the second pointer byte from $00 instead of |
| 175 |
$0100, therefore this warning is issued. |
| 176 |
|
| 177 |
...called from here. |
| 178 |
If warnings and/or errors are output during a macro call, messages |
| 179 |
with this text are added to display the call stack (because you |
| 180 |
might need to fix the call instead of the macro itself). |
| 181 |
|
| 182 |
|
| 183 |
---------------------------------------------------------------------- |
| 184 |
Section: Errors during assembly |
| 185 |
---------------------------------------------------------------------- |
| 186 |
|
| 187 |
"!cbm" is obsolete; use "!ct pet" instead. |
| 188 |
This is given when the now obsolete "!cbm" pseudo opcode is |
| 189 |
encountered. |
| 190 |
If you want to assemble an old source code without first updating |
| 191 |
it, you can use the "--dialect" CLI switch to make ACME mimic an |
| 192 |
older version. |
| 193 |
|
| 194 |
"!pseudopc/!realpc" are obsolete; use "!pseudopc {}" instead. |
| 195 |
This is given when one of the now obsolete !pseudopc/!realpc |
| 196 |
pseudo opcodes is encountered. |
| 197 |
If you want to assemble an old source code without first updating |
| 198 |
it, you can use the "--dialect" CLI switch to make ACME mimic an |
| 199 |
older version. |
| 200 |
|
| 201 |
"!subzone {}" is obsolete; use "!zone {}" instead. |
| 202 |
This is given when the now obsolete "!subzone" pseudo opcode is |
| 203 |
encountered. |
| 204 |
If you want to assemble an old source code without first updating |
| 205 |
it, you can use the "--dialect" CLI switch to make ACME mimic an |
| 206 |
older version. |
| 207 |
|
| 208 |
!error: ... |
| 209 |
This is given when the pseudo opcode "!error" is executed. The |
| 210 |
actual message varies according to the pseudo opcode's arguments. |
| 211 |
|
| 212 |
Argument out of range. |
| 213 |
You called arcsin/arccos with something not in the [-1, 1] range. |
| 214 |
|
| 215 |
Binary literal without any digits. |
| 216 |
Hex literal without any digits. |
| 217 |
There were no digits after a number prefix like "0x" or "%". |
| 218 |
|
| 219 |
Cannot open input file. |
| 220 |
ACME had problems opening an input file ("!bin", "!convtab" or |
| 221 |
"!src"). Maybe you mistyped its name. |
| 222 |
|
| 223 |
Conversion table incomplete. |
| 224 |
The conversion table file is too small. It needs to be exactly 256 |
| 225 |
bytes in size. |
| 226 |
|
| 227 |
CPU does not support this addressing mode for this mnemonic. |
| 228 |
The given mnemonic cannot be combined with the given addressing |
| 229 |
mode on the CPU you have chosen. |
| 230 |
|
| 231 |
CPU does not support this postfix for this mnemonic. |
| 232 |
The given mnemonic cannot be combined with the addressing mode |
| 233 |
indicated by the given postfix, at least not on the CPU you have |
| 234 |
chosen. |
| 235 |
|
| 236 |
Division by zero. |
| 237 |
Guess what - you attempted to divide by zero. |
| 238 |
|
| 239 |
Expected '{' or IF/IFDEF/IFNDEF keyword after ELSE keyword. |
| 240 |
There is something strange after ELSE: It must be "if", "ifdef", |
| 241 |
"ifndef" or an opening brace. |
| 242 |
|
| 243 |
Expected ',' or IN keyword after loop variable. |
| 244 |
You made a syntax error when using "!for": After the loop variable |
| 245 |
there can either be a comma (for a simple counting loop) or the |
| 246 |
"in" keyword (when iterating over string or list contents). |
| 247 |
Anything else will give this error. |
| 248 |
|
| 249 |
Expected end-of-statement after ELSE block. |
| 250 |
There is something after the closing brace of an ELSE block. |
| 251 |
|
| 252 |
Expected end-of-statement or ELSE keyword after '}'. |
| 253 |
There is something after the closing brace of an IF block that is |
| 254 |
not an ELSE. |
| 255 |
|
| 256 |
Expected end-of-statement, found 'CHAR' instead. |
| 257 |
There are still arguments when there should not be any more. The |
| 258 |
given character is the one where end-of-line was expected. |
| 259 |
|
| 260 |
Expected EOF, found '}' instead. |
| 261 |
ACME encountered a '}' character when it expected the file to end |
| 262 |
instead (because no blocks were open). |
| 263 |
|
| 264 |
Expected index register after comma. |
| 265 |
You used an addressing mode with a comma but did not supply a |
| 266 |
valid index register (like 'x') after it. |
| 267 |
|
| 268 |
Expected keyword. |
| 269 |
ACME expects a keyword but does not find one, for example if a |
| 270 |
pseudo opcode ends on a comma. |
| 271 |
|
| 272 |
Expected octal value or symbol name after '&'. |
| 273 |
The character after the '&' was neither valid for an octal value |
| 274 |
nor for a symbol name. |
| 275 |
|
| 276 |
Expected symbol name. |
| 277 |
ACME tried to parse a symbol name but found no valid characters. |
| 278 |
|
| 279 |
Expected two hex digits after \x backslash sequence. |
| 280 |
In string literals, the backslash sequence "\x" must be followed |
| 281 |
by two hex digits. If the string ends before two hex digits have |
| 282 |
been found, this error is generated. |
| 283 |
|
| 284 |
Expected WHILE or UNTIL keyword, or an empty loop condition. |
| 285 |
When using "!do", loop conditions are optional before and after |
| 286 |
the block, but if one is given, it has to start with "while" or |
| 287 |
"until". |
| 288 |
|
| 289 |
Exponent is negative. |
| 290 |
Using negative exponents only give sensible results when using |
| 291 |
floating point maths. |
| 292 |
|
| 293 |
Expression did not return a number. |
| 294 |
An expression returned a string or a list but a number (integer or |
| 295 |
float) was expected. |
| 296 |
|
| 297 |
Expression did not return a string. |
| 298 |
An expression returned a list or a number but a string was |
| 299 |
expected (for example a file name). |
| 300 |
|
| 301 |
Quotes not found. |
| 302 |
In older versions, file names could not be specified via symbols, |
| 303 |
but had to be given as string literals in quotes: |
| 304 |
Either as "path/to/file" for lookups in the current directory or |
| 305 |
as <path/to/file> for lookups in the library. |
| 306 |
So if the first character is neither '<' nor '"' this error was |
| 307 |
generated. |
| 308 |
|
| 309 |
Force bits can only be given to counters, not when iterating over string/list contents. |
| 310 |
You used a force bit with a "!for" loop counter, but then used the |
| 311 |
"iterate over string/list contents" syntax. This does not work, |
| 312 |
because lists could contain other lists, and then a force bit does |
| 313 |
not make any sense. |
| 314 |
|
| 315 |
Force bits can only be given to numbers. |
| 316 |
You tried to give a force bit to a symbol and then assign a string |
| 317 |
or list to it. |
| 318 |
|
| 319 |
Given object is not iterable. |
| 320 |
You used "!for VAR in ITERABLE", but the iterable was neither a |
| 321 |
string nor a list (likely a number). |
| 322 |
|
| 323 |
Hex digits are not given in pairs. |
| 324 |
The two digits of a hex byte are separated by another character, |
| 325 |
or there is an odd number of digits. |
| 326 |
|
| 327 |
Illegal postfix. |
| 328 |
You used a postfix other than "+1", "+2" or "+3". |
| 329 |
|
| 330 |
Index is undefined. |
| 331 |
You attempted an indexing operation with some undefined symbol. |
| 332 |
|
| 333 |
Index out of range. |
| 334 |
The value for an indexing operation wasn't in the allowed range. |
| 335 |
|
| 336 |
Invalid hex digit after \x, expected 0-9/a-f. |
| 337 |
In string literals, the backslash sequence "\x" must be followed |
| 338 |
by two hex digits. If the next two chars are not [0-9a-fA-F], this |
| 339 |
error will be generated. |
| 340 |
|
| 341 |
Library path not set. Use --libpath or create an environment variable. |
| 342 |
This will be shown if the source code references a file from the |
| 343 |
library but ACME does not know where the library is located. |
| 344 |
If the ACME binary was compiled with a default path, you will not |
| 345 |
see this error. |
| 346 |
See the file "Lib.txt" in this directory for info on how to setup |
| 347 |
the library path. |
| 348 |
|
| 349 |
Macro already defined. |
| 350 |
Macros can only be defined once. If you define a macro twice, ACME |
| 351 |
will give an error for the new definition and then output an info |
| 352 |
message pointing to the initial definition. |
| 353 |
|
| 354 |
Macro not defined (or wrong signature). |
| 355 |
You tried to call a macro that either wasn't defined yet (always |
| 356 |
define macros before using them) or was called with an illegal |
| 357 |
argument list. There must be a 1:1 match between the definition's |
| 358 |
formal parameters and the call's actual arguments. |
| 359 |
|
| 360 |
Macro parameter twice. |
| 361 |
The same symbol name is used two (or more) times in the same macro |
| 362 |
parameter list. |
| 363 |
|
| 364 |
Negative size argument. |
| 365 |
The size argument of "!bin" or "!skip" must be zero or positive, |
| 366 |
but cannot be negative. |
| 367 |
|
| 368 |
Negative value - cannot choose addressing mode. |
| 369 |
Because the argument is a negative value, ACME does not know what |
| 370 |
addressing mode (8 bits, 16 bits, on a 65816 even 24 bits) to use. |
| 371 |
You can overcome this problem using the postfix method. Or correct |
| 372 |
your program to use positive addresses instead. |
| 373 |
|
| 374 |
Number does not fit in N bits. |
| 375 |
Number out of range. |
| 376 |
A value is too high or too low to be stored in 8/16/24 bits. |
| 377 |
This can also mean the desired addressing mode is not available, |
| 378 |
as in "sty $e000, x". |
| 379 |
|
| 380 |
Operation not supported: Cannot apply "OP" to "TYPE". |
| 381 |
Operation not supported: Cannot apply "OP" to "TYPE" and "TYPE". |
| 382 |
You tried to use an operator on the wrong type(s) of argument(s), |
| 383 |
like indexing a float or negating a string. |
| 384 |
|
| 385 |
Program counter cannot be negative. |
| 386 |
You used "--setpc VALUE", "* = VALUE" or "!pseudopc VALUE" with a |
| 387 |
negative number. |
| 388 |
|
| 389 |
Program counter undefined. |
| 390 |
You tried to generate data before setting the program counter. Use |
| 391 |
either "--setpc VALUE" on the command line or "* = VALUE" at the |
| 392 |
start of your source code file. |
| 393 |
|
| 394 |
Quotes still open at end of line. |
| 395 |
You forgot the closing quotes. |
| 396 |
|
| 397 |
Source file contains illegal character. |
| 398 |
Your source code file contained a null byte. |
| 399 |
|
| 400 |
String length is not 1. |
| 401 |
You tried something like LDA#"X" with an illegal string length. |
| 402 |
|
| 403 |
Symbol already defined. |
| 404 |
You defined a symbol that already had a different type or value. |
| 405 |
To change a symbol's type or value, use the "!set" pseudo opcode. |
| 406 |
|
| 407 |
Syntax error. |
| 408 |
Guess what - there's a syntax error. |
| 409 |
|
| 410 |
Target not in bank (0xTARGET). |
| 411 |
You tried to branch to an address not in the 0x0000..0xffff range. |
| 412 |
Relative addressing (branch instructions or PER) cannot leave the |
| 413 |
current code bank of 64 KiB. |
| 414 |
|
| 415 |
Target out of range (N; M too far). |
| 416 |
Branch instructions use relative addressing, which only has a |
| 417 |
limited range. You exceeded it. N is the attempted offset, M is |
| 418 |
the difference to the limit - so if you succeed in optimizing M |
| 419 |
bytes away, the code would assemble. |
| 420 |
|
| 421 |
The chosen CPU uses opcode 0xXY as a prefix code, do not use this mnemonic! |
| 422 |
The mnemonic is valid, but should not be used on this CPU. If you |
| 423 |
know better, you can get around this error like this: |
| 424 |
!cpu ANY_OTHER_CPU { PROBLEMATIC_MNEMONIC } |
| 425 |
|
| 426 |
There's more than one character. |
| 427 |
You used a text string containing more than one character in a |
| 428 |
situation where only a one-character string is allowed. |
| 429 |
|
| 430 |
There is no character in quotes. |
| 431 |
You used an empty text string in a situation where a one-character |
| 432 |
string is needed. |
| 433 |
|
| 434 |
Too late for postfix. |
| 435 |
You can only postfix symbols at the start, before they are used |
| 436 |
for the first time. |
| 437 |
|
| 438 |
Too many '('. |
| 439 |
A formula ends before all parentheses were closed. |
| 440 |
|
| 441 |
Un-pseudopc operator '&' can only be applied to number symbols. |
| 442 |
You tried to use the operator '&' on a list or a string. This |
| 443 |
operator only works on labels and on '*' (the program counter), it |
| 444 |
cannot be used on other objects. |
| 445 |
|
| 446 |
Un-pseudopc operator '&' only works on addresses. |
| 447 |
You tried to apply the operator '&' to something that is neither |
| 448 |
the program counter nor an implicitly defined label nor something |
| 449 |
derived from those. Example: |
| 450 |
argument = * + 1 |
| 451 |
label lda #$ff |
| 452 |
dummy = 500 |
| 453 |
You can use '&' on "label" and on "argument", but not on "dummy". |
| 454 |
|
| 455 |
Un-pseudopc operator '&' has no !pseudopc context. |
| 456 |
You tried to apply the operator '&' to an address symbol that was |
| 457 |
defined outside of a !pseudopc block, or, more generally, the |
| 458 |
number of '&' characters used was larger than the number of |
| 459 |
!pseudopc blocks around the definition. |
| 460 |
|
| 461 |
Unknown encoding. |
| 462 |
You used the "!convtab" pseudo opcode with a keyword ACME does not |
| 463 |
know. |
| 464 |
|
| 465 |
Unknown function. |
| 466 |
You used a mathematical function ACME does not know. |
| 467 |
|
| 468 |
Unknown mnemonic. |
| 469 |
You mistyped a mnemonic, or you forgot to select the correct cpu. |
| 470 |
|
| 471 |
Unknown operator. |
| 472 |
You used an arithmetic/logical operator ACME does not know. |
| 473 |
|
| 474 |
Unknown output format. |
| 475 |
You used the "!to" pseudo opcode with a format specifier ACME does |
| 476 |
not know. |
| 477 |
|
| 478 |
Unknown processor. |
| 479 |
You used the "!cpu" pseudo opcode with a cpu specifier ACME does |
| 480 |
not know. |
| 481 |
|
| 482 |
Unknown pseudo opcode. |
| 483 |
You have mistyped the keyword after "!". |
| 484 |
|
| 485 |
Unknown "*=" segment modifier. |
| 486 |
You used a modifier keyword ACME does not know. |
| 487 |
|
| 488 |
Unsupported backslash sequence. |
| 489 |
The character following the backslash was not one of the allowed |
| 490 |
ones. Backslash escaping was added in release 0.97 of ACME. |
| 491 |
If you want to assemble an old source code without first updating |
| 492 |
it, you can use the "--dialect" CLI switch to make ACME mimic an |
| 493 |
older version. |
| 494 |
|
| 495 |
Unterminated index spec. |
| 496 |
An index was started with '[' but did not end with ']'. |
| 497 |
|
| 498 |
Unterminated list. |
| 499 |
A list was started with '[' but did not end with ']'. |
| 500 |
|
| 501 |
Value not defined (SYMBOL NAME). |
| 502 |
A value could not be worked out. Maybe you mistyped a symbol name. |
| 503 |
Whether this is given as a "normal" or as a serious error depends |
| 504 |
on the currently parsed pseudo opcode. |
| 505 |
|
| 506 |
|
| 507 |
---------------------------------------------------------------------- |
| 508 |
Section: Serious errors (stopping assembly) |
| 509 |
---------------------------------------------------------------------- |
| 510 |
|
| 511 |
!serious: ... |
| 512 |
This is given when the pseudo opcode "!serious" is executed. The |
| 513 |
actual message varies according to the pseudo opcode's arguments. |
| 514 |
|
| 515 |
Expected '{' character. |
| 516 |
ACME didn't find the expected '{' character. Remember that '{' |
| 517 |
characters must be given on the same line as the keyword they |
| 518 |
belong to. |
| 519 |
|
| 520 |
Expected '}', found EOF instead. |
| 521 |
The file ended when ACME expected the block to be closed instead |
| 522 |
(because there was at least one block left open). |
| 523 |
|
| 524 |
Loop count is negative. |
| 525 |
You used the "!for" pseudo opcode with a negative loop count |
| 526 |
(getting this error is only possible when using the now deprecated |
| 527 |
syntax). |
| 528 |
|
| 529 |
Out of memory. |
| 530 |
When ACME runs out of memory, it stops assembly, giving this |
| 531 |
error. Free some memory and try again. It's highly unlikely anyone |
| 532 |
will ever see this error, though. ;) |
| 533 |
|
| 534 |
Reached memory limit. |
| 535 |
This error is reported if the write index for the output buffer |
| 536 |
exceeds 16 megabytes. This is an arbitrary limit - if you have a |
| 537 |
good reason for having it raised further, tell me. :D |
| 538 |
|
| 539 |
Syntax error. |
| 540 |
This is only given as a _serious_ error if it's in a "!do" loop |
| 541 |
condition. |
| 542 |
|
| 543 |
Too deeply nested. Recursive macro calls? |
| 544 |
The only reason for ACME to have a limit on macro call nesting |
| 545 |
at all is to find infinite recursions. |
| 546 |
The default limit is 64, this can be changed using the |
| 547 |
"--maxdepth" CLI switch. |
| 548 |
|
| 549 |
Too deeply nested. Recursive "!source"? |
| 550 |
The only reason for ACME to still have a limit on "!source" |
| 551 |
nesting at all is to find infinite recursions. |
| 552 |
The default limit is 64, this can be changed using the |
| 553 |
"--maxdepth" CLI switch. |
| 554 |
|
| 555 |
Tried to write to negative address. |
| 556 |
This means that a new segment inside a !pseudopc block would be |
| 557 |
placed before the start of the output buffer. Example: |
| 558 |
* = $1000 ; ok (we begin at $1000) |
| 559 |
!pseudopc $8000 { ; ok (we pretend to be at $8000) |
| 560 |
* = $5000 ; error (we need to go back by $3000, |
| 561 |
} ; which would mean going to -$2000!) |
| 562 |
|
| 563 |
Unexpected char when evaluating loop condition. |
| 564 |
There was a syntax error while evaluating the loop condition. |
| 565 |
|
| 566 |
Value not defined. |
| 567 |
A value could not be worked out. Maybe you mistyped a symbol name. |
| 568 |
Whether this is given as a "normal" or as a serious error depends |
| 569 |
on the currently parsed pseudo opcode. |
| 570 |
|
| 571 |
|
| 572 |
---------------------------------------------------------------------- |
| 573 |
Section: Errors on closedown |
| 574 |
---------------------------------------------------------------------- |
| 575 |
|
| 576 |
Cannot open symbol list file "FILENAME". |
| 577 |
Cannot open output file "FILENAME". |
| 578 |
Make sure the name doesn't contain wildcard characters and you |
| 579 |
have write access to the directory. |
| 580 |
|
| 581 |
No output file specified (use the "-o" option or the "!to" pseudo opcode). |
| 582 |
You didn't specify the output file, so ACME did not create one. |
| 583 |
|
| 584 |
|
| 585 |
---------------------------------------------------------------------- |
| 586 |
Section: Bugs in ACME |
| 587 |
---------------------------------------------------------------------- |
| 588 |
|
| 589 |
The warning "Bug in ACME, code follows" is always followed by a |
| 590 |
serious error message, stopping assembly. The second message actually |
| 591 |
gives a hint about the bug's location in the source code. |
| 592 |
If you ever get this combination of warning and serious error, please |
| 593 |
send me an e-mail and tell me about it. If possible, include a piece |
| 594 |
of source code that triggers it. |
| 595 |
Please don't get this wrong - there are no known bugs. I just left |
| 596 |
some debugging code in place in case there is a bug I failed to notice |
| 597 |
during testing. In practice, this warning is not expected to be given |
| 598 |
at all. That's the reason why I want to be notified if it *does* |
| 599 |
decide to show up. |
| 600 |
|
| 601 |
The hint messages are of no real interest to the end user, but here |
| 602 |
they are for completeness' sake: |
| 603 |
|
| 604 |
|
| 605 |
ArgStackEmpty |
| 606 |
There was no data for a monadic operator to work on. |
| 607 |
|
| 608 |
ArgStackNotEmpty |
| 609 |
The expression parser has finished though there are still |
| 610 |
arguments left to process. |
| 611 |
|
| 612 |
ExtendingListWithItself |
| 613 |
There were multiple references to the same list. |
| 614 |
|
| 615 |
ForceBitZero |
| 616 |
The function to handle force bits was called without a force bit. |
| 617 |
|
| 618 |
IllegalBlockTerminator |
| 619 |
A RAM block (macro or loop) was terminated incorrectly. |
| 620 |
|
| 621 |
IllegalGroupIndex |
| 622 |
The mnemonic tree contains a group that I didn't add. |
| 623 |
|
| 624 |
IllegalIfMode |
| 625 |
A sanity check in the if/ifdef/ifndef/else code failed. |
| 626 |
|
| 627 |
IllegalImmediateMode |
| 628 |
The mnemonic tree contains invalid info about the size of immediate |
| 629 |
arguments. |
| 630 |
|
| 631 |
IllegalInputSource |
| 632 |
Input is taken neither from a file nor from a RAM block. |
| 633 |
|
| 634 |
IllegalLoopAlgo |
| 635 |
The "!for" function was told to use an unknown algorithm. |
| 636 |
|
| 637 |
IllegalNumberTypeX |
| 638 |
A number was neither INT nor FLOAT nor UNDEFINED. |
| 639 |
|
| 640 |
IllegalObjectType |
| 641 |
A symbol is used that is neither number nor list nor string. |
| 642 |
|
| 643 |
IllegalOperatorId |
| 644 |
IllegalOperatorGroup |
| 645 |
The expression parser found an operator that does not exist. |
| 646 |
|
| 647 |
IllegalOutformat1 |
| 648 |
IllegalOutformat2 |
| 649 |
The output file format enum has an unexpected value. |
| 650 |
|
| 651 |
IllegalSymbolNameLength |
| 652 |
A sanity check on string lengths failed. |
| 653 |
|
| 654 |
NotEnoughArgs |
| 655 |
There was not enough data for a dyadic operator to work on. |
| 656 |
|
| 657 |
NullTypeObject |
| 658 |
ObjectHasNullType |
| 659 |
A symbol is used that does not have a type (number/list/string) |
| 660 |
associated with it. |
| 661 |
|
| 662 |
OperatorIsNotDyadic |
| 663 |
OperatorIsNotMonadic |
| 664 |
A function was passed the wrong type of operator. |
| 665 |
|
| 666 |
OperatorStackNotEmpty |
| 667 |
The expression parser has finished though there are still |
| 668 |
operators left to process. |
| 669 |
|
| 670 |
PartialEscapeSequence |
| 671 |
Buffered data ended on a backslash, which shouldn't be possible. |
| 672 |
|
| 673 |
PseudoPCContext |
| 674 |
A pointer became NULL which shouldn't happen. |
| 675 |
|
| 676 |
SecondArgIsNotAnInt |
| 677 |
A sanity check failed: An argument should have been converted to |
| 678 |
integer but wasn't. |
| 679 |
|
| 680 |
StrangeEscapeState1 |
| 681 |
StrangeEscapeState2 |
| 682 |
The state machine for backslash escaping reached a non-existing state. |
| 683 |
|
| 684 |
StrangeInputMode |
| 685 |
The input state machine has reached a state that does not exist. |
| 686 |
|
| 687 |
StrangeOperator |
| 688 |
The expression parser found a non-existing operator. |
| 689 |
|
| 690 |
TriedToIndexNumber |
| 691 |
The "index" operator was applied to a number type. |