Jump to content
IGNORED

DASM Question.


Recommended Posts

I was always able to assemble the example code from this forum with

dasm -f3 source.asm -otarget.bin

So the answer should be "no, but be sure to include the '-f3' option.

(I patched my dasm, so this is the default, though.)

Link to comment
Share on other sites

DASM can compile source for a number of different CPUs. If you don't tell it the type of CPU you'll end up with errors like this:

error: Unknown Mnemonic 'sty'
error: Unknown Mnemonic 'lda'
error: Unknown Mnemonic 'nop'
...

 

The way you tell it the type of CPU is by the processor pseudo-op:

		PROCESSOR 6502

 

 

Put it as the very first line of your source code. It must have whitespace before processor. If you do this:

PROCESSOR 6502

 

you'll get an error:

error: Unknown Mnemonic '6502'.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...