User guide

ERROR: Memory allocation failure.
Please free up an additional 72K and try again.
In order to begin assembly, 6502asm allocates a 64K block of memory at start-up. The additional
memory (it says 72K) is because if you are this short of memory, we’d better ensure we have
room for the opcode table and some labels...
Under MS-DOS™, you may also see:
Available memory is only
<filename>
bytes, need at least 73728 (72K)...
or:
Oops, total memory cockup!
This is because the DOS memory allocation scheme is really sucky. You may even get this on a
128Mb machine if you boot directly to DOS (not via Windows™).
ERROR: CNT command cannot open file at line
<line>
.
(filename is "
<filename>
")
You cannot continue into the file specified as the file cannot be opened.
ERROR: Attempting to DCB a value larger than &FF at line
<line>
.
The DCB command inserts a byte, but you’ve specified a value that is too large to fit into a single
byte...
ERROR: Unknown EQUx at line
<line>
.
Should be EQUB, EQUW, EQUS, or EQUZ (re: DCx)
The EQUx commands are simply aliases for the DCx commands. “EQU” alone has no meaning.
ERROR: Invalid count (
<count>
) in FIL command at line
<line>
.
(syntax is "FIL <count>, <value>" - are the parameters transposed?)
You will probably see this if you wanted to write a number of null bytes, but put the parameters
the wrong way around; i.e.
FIL 0, 256
ERROR: Missing ',' in FIL command at line
<line>
.
Perhaps you only specified one parameter assuming a default state (like “FIL 32” would write
out 32 null bytes?).
ERROR: INF command cannot open file at line
<line>
.
(filename is "
<filename>
")
You cannot insert the contents of the file specified as the file cannot be opened.
ERROR: Relative address to &
<address>
(
<offset>
) out of range (-128...127) at line
<line>
.
Due to the way relative addressing works, you can only branch to an address that is 128 bytes
before or 127 bytes after the address of the following instruction. The ‘<offset>’ lets you know
what the range calculated was, in case it is something you could fix with a little bit of jiggling,
like an offset of -130 bytes...
ERROR: Unexpected end of calculation at line
<line>
.
Calculations must end with the ‘]’ character.
ERROR: Division by zero in calculation at line
<line>
.
Obvious.
6502asm user guide – prerelease version
page 19