nesasm error

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
nesasm error
by on (#22846)
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?

by on (#22848)
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.

by on (#22854)
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

by on (#22867)
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

by on (#22874)
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?

by on (#22880)
It means the assembler crashed.

by on (#22920)
yes..

but why? How to do I get it to stop crashing and assemble my file?

by on (#25458)
Use DOSBOX emulator and run NESASM under them.