Difference between revisions of "DASM"

From veswiki
Jump to: navigation, search
Line 8: Line 8:
 
dasm game.asm -f3 -output.bin
 
dasm game.asm -f3 -output.bin
 
</pre>
 
</pre>
-f3 means it outputs raw data.
+
-f3 means it outputs raw data with no load address first.
 
If you have problems with assembly errors then the option -L can be useful in order to find the reason.
 
If you have problems with assembly errors then the option -L can be useful in order to find the reason.
 
<pre>
 
<pre>

Revision as of 18:16, 23 May 2014

DASM is a versatile macro assembler with support for several 8-bit microprocessors including Fairchild F8, MOS 6502 & 6507, Motorola 6803, 68705 & 68HC11 and Hitachi HD6303.
Check here for latest official version

As DASM is an assembler for many processors you need to add the line "{tab}processor f8" as the first line to use it with the F8 System (don't write {tab} but insert a tab sign there, space/s will work as well). DASM is run from a command line unless you make a .bat file to simplify assembly and reassembly during a programming project (recommended). Easiest assembly of a F8-program called game.asm would be this:

dasm game.asm -f3 -output.bin

-f3 means it outputs raw data with no load address first. If you have problems with assembly errors then the option -L can be useful in order to find the reason.

dasm game.asm -f3 -output.bin -Lname-of-list.txt

You can then check the name-of-list.txt for the exact problem.

Local copy:
DASM 2.20.11 (.7z, 116kB)