News:

11 March 2016 - Forum Rules

Main Menu

NES Assembler issues

Started by Timaeus, August 14, 2015, 07:09:02 PM

Previous topic - Next topic

Timaeus

 Apparently to fix that sprite change issues in MM1 I have to use a NES assembly tool . Looks like the NES Disassembler utility won´t do much , because it doesn´t support the MM1 mapper . So I picked up this one : http://www.romhacking.net/utilities/674/ , but when I double click , it appears a black screen that immediately closes . Someone know why that happens ?
Do little by little, one thing at a time, and never forget why you do what it should be done!

Disch

Assemblers are generally command-line tools.  You don't double-click them to open them like you would your web browser.

Instead, you open a command prompt, and type out a command, indicating the name of the program to run (the assembler), give it the file name to assemble, possibly an output file, and any other optional parameters.

Assemblers will come with a readme or some kind of documentation that will tell you the necessary (and available) commands.

Corvo

Like Disch said, it's a command-line tool. Press Windows Key + R and type "cmd" in the box. Navigate to the directory the program is in, and type its name.

Disch

or Shift+Right Click in the directory - select "Open Command Window here"

or, make a new text file ... type the command(s) into that... then change the extension to .bat -- then double-click it to run.

oziphantom

Quote from: Disch on August 15, 2015, 03:23:37 AM
or Shift+Right Click in the directory - select "Open Command Window here"

That is only if you have installed the extension and is not part of a standard windows set up. You need to add the power tools.

mz

That works fine in a standard Windows 8.1 setup.

IIRC, it's been like that since Windows 7 or Vista...
There has to be a better life.

Timaeus

 I started using another tool . The readme doc shows this syntax  : NESDisassembler.exe <filename.nes> <bank> <addressbase> , so I think I should type : NESDisassembler.exe Mega Man (USA).nes 0 0 cSMB.ASM (If I figure out wrong , please warn me). My target right now is figure out how to change the enemies sprites in straight forward sections , fortunately I found a document that should be useful : http://bisqwit.iki.fi/jutut/megamansource/maincode.txt

If I´m wrong about something please warn me , and thanks for the help .
Do little by little, one thing at a time, and never forget why you do what it should be done!

Corvo

If a filename has spaces, you have to type it within quotes. So it would be:
NESDisassembler.exe "Mega Man (USA).nes" 0 0 cSMB.ASM

PS: You don't need to type the ".exe" part.


dougeff

Why don't you use Frantik's disassembler?

http://www.romhacking.net/forum/index.php?topic=12177.0

Works better if you run through the entire game first with Code/Data Logger running, as it can use the CDL file to organize the data better.
nesdoug.com -- blog/tutorial on programming for the NES