nesasm error

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

Post Reply
vixo
Posts: 7
Joined: Wed Apr 04, 2007 1:56 pm

nesasm error

Post by vixo »

I'm following GBA guys tutorial on the basics of making NES ROMS. I've got up to day 5, where there is code for the bare bones of a file. The problem is, I can't get nesasm to assemble it. I've put the relevant sprite, background, pallette, code file and nesasm into a folder together, and then ran a DOS cd to assemble the file, all as it says in the tutorial.

When I type "nesasm infile" into the DOS window, it says "can not open input file 'infile.asm'!'

the code is all in a notepad file, saved as infile.asm. Although it says it's still a txt file, so I suppose the name is infile.asm.txt.

can anyone help?
User avatar
commodorejohn
Posts: 193
Joined: Mon Sep 11, 2006 6:48 pm
Location: Moose Lake, Minnesota

Post by commodorejohn »

You probably have Windows set to hide file extensions (it's the default setting, a damn stupid default if ever there was one.) Open a folder window, select Tools->Folder Options, switch to the View tab, and deselect "Hide file extensions for known file types." (While you're at it, you may as well set it to show hidden files and folders and show operating system files, two other things stupidly turned off by default.)

P.S. Everybody here will tell you not to follow GBA Guy's tutorial - check around for some previous threads on the subject to find other suggested tutorials.
[size=0]"There is only one basic human right, the right to do as you damn well please. And with it comes the only basic human duty, the duty to take the consequences."
- P.J. O'Rourke[/size]
User avatar
No Carrier
Posts: 290
Joined: Tue Dec 13, 2005 4:19 pm
Location: Gainesville, FL - USA
Contact:

Post by No Carrier »

commodorejohn wrote:P.S. Everybody here will tell you not to follow GBA Guy's tutorial - check around for some previous threads on the subject to find other suggested tutorials.
I was thinking the same thing. Quietust used to recommend NES101 (which is on the main page). I really like it, but I had to learn a little ASM before I could dive right into it..

NC
vixo
Posts: 7
Joined: Wed Apr 04, 2007 1:56 pm

Post by vixo »

ahh, that sorted the problem. Still won't assemble, but I'll follow some of the other information and see if I can get it to work. I'll check out nes101

thanks very much for the help
vixo
Posts: 7
Joined: Wed Apr 04, 2007 1:56 pm

Post by vixo »

ok.....

the second problem (I'm using code from a different guide for nesasm now - the joker21 tutorial - but the same message comes up if I do it with GBA guys code), is that when I try to assemble, this message appears -

Image

anyone know what's going wrong?
tepples
Posts: 22864
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

It means the assembler crashed.
vixo
Posts: 7
Joined: Wed Apr 04, 2007 1:56 pm

Post by vixo »

yes..

but why? How to do I get it to stop crashing and assemble my file?
sdm
Posts: 448
Joined: Tue Apr 11, 2006 4:08 am
Location: Poland

Post by sdm »

Use DOSBOX emulator and run NESASM under them.
Post Reply