Jump to content
Sign in to follow this  
8BIT 1337

Dasm Problem

Recommended Posts

I'm in the beginning stages of playing around with graphical hacks. Before I actually do anything I want to be comfortable with the disassemble and reassemble stages.

 

I've used Distella to dissassemble a 4k rom, using the -a option, and when I try to use dasm on the resulting file I get an error for *every* line: "Unknown Mnemonic."

 

What idiotic thing am I doing to cause this? I'm using version 2.12 of Dasm. I've tried 2.02 as well with the same result.

 

Any help will be appreciated!

Share this post


Link to post
Share on other sites

You have to tell DASM the CPU type

 

Add processor 6502 (with at least one blank before!) at the start of your code.

Share this post


Link to post
Share on other sites

That worked of course - Thanks! I must have missed that little tidbit somewhere along the line!

 

First hack, here I come... :)

Share this post


Link to post
Share on other sites

Thanks here too.

 

I transfered my software from a Win98 machine to one running XP and thought it was an OS issue.

 

Glad I checked here first :)

 

This little batch script really helps out:

 

DISSAMBLE.BAT

 

echo processor 6502 > %1.s

distella -a %1.bin >> %1.s

 

Just type disassemble and the file name, no extension.

Share this post


Link to post
Share on other sites

Hi Greg!

 

echo      processor 6502 > %1.s

distella -a %1.bin >> %1.s

 

Try this one:

 

distella -pa %1.bin >> %1.s

 

:)

 

Greetings,

Manuel

Share this post


Link to post
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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...