X816 Problems?

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

User avatar
nineTENdo
Posts: 223
Joined: Sun Mar 19, 2006 12:37 am
Location: San ANto, TX
Contact:

X816 Problems?

Post by nineTENdo »

Hello everyone,

Im having trouble trying to assemble with x816. I have the version x112f and when ever i try to assemble the source code with "x816 st1.asm" i get

" 'x816' is not a recognized as an internal or external command, operable program or batch file"

Ive tried changing directories and ive also tried using "x112f st1.asm" instead with the same results. Can someone help me?

Thanks in Advance,
EL
Celius
Posts: 2159
Joined: Sun Jun 05, 2005 2:04 pm
Location: Minneapolis, Minnesota, United States
Contact:

Post by Celius »

Is 'x816' the name of your executable? I'm sure it is, but if it isn't, that is the problem.
User avatar
nineTENdo
Posts: 223
Joined: Sun Mar 19, 2006 12:37 am
Location: San ANto, TX
Contact:

Post by nineTENdo »

I went to properties and the name is under "X112F.EXE" but i tried that too with no results.
User avatar
Memblers
Site Admin
Posts: 3901
Joined: Mon Sep 20, 2004 6:04 am
Location: Indianapolis
Contact:

Post by Memblers »

x816 doesn't work right in WinXP. Someone figured out how to get it to work, I don't know how. I've used DOSBox when I have to use it..

Also the executable isn't x816.exe by default, looks like you tried the other name though (I think that was the right one).
User avatar
nineTENdo
Posts: 223
Joined: Sun Mar 19, 2006 12:37 am
Location: San ANto, TX
Contact:

Post by nineTENdo »

How can i get it to work under the dosbox promp or can i just drag it in there? NE1 been able to get it run under XP, 98?
User avatar
Memblers
Site Admin
Posts: 3901
Joined: Mon Sep 20, 2004 6:04 am
Location: Indianapolis
Contact:

Post by Memblers »

If you have it in the the folder C:\nesdev for example,
you would run DOSBox, then type "mount c: c:\nesdev", then type C: to go there then run the assembler as usual.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

Out of frustration with getting x816 to work under Windows 2000, I just ported my projects to CA65.
User avatar
nineTENdo
Posts: 223
Joined: Sun Mar 19, 2006 12:37 am
Location: San ANto, TX
Contact:

Post by nineTENdo »

Well it worked under "x112f st1.asm" in DOSBOX. Does anyone know how i can fix errors?
User avatar
Memblers
Site Admin
Posts: 3901
Joined: Mon Sep 20, 2004 6:04 am
Location: Indianapolis
Contact:

Post by Memblers »

nineTENdo wrote:Well it worked under "x112f st1.asm" in DOSBOX. Does anyone know how i can fix errors?
Maybe, what are the errors exactly? And what is st1.asm btw?
User avatar
nineTENdo
Posts: 223
Joined: Sun Mar 19, 2006 12:37 am
Location: San ANto, TX
Contact:

Post by nineTENdo »

Also does it generate an nes .ROM file. I assembled a demo with no errors but i have nothing in my folder. Does it output somewhere else?
User avatar
nineTENdo
Posts: 223
Joined: Sun Mar 19, 2006 12:37 am
Location: San ANto, TX
Contact:

Post by nineTENdo »

st1.asm is just a modified Sound Test Demo by Snowbros that im experimenting with cuting and pasting it to try and get different results.
User avatar
Memblers
Site Admin
Posts: 3901
Joined: Mon Sep 20, 2004 6:04 am
Location: Indianapolis
Contact:

Post by Memblers »

Check the command line options to see if there's any you need (try "x112f /?"). I thought it creates a .bin file with the same name as the source. Look in the source, if at the beginning there's some stuff to set up an iNES header (text "NES", $1A, etc.) If not, then it's just a raw ROM that you'll need to copy a header onto. The lazy way is to rip the first 16 bytes off an .NES file that has the same setup (size, mapper, etc), then do a "copy /b header+romname.bin romname.nes".

If the CHR-ROM isn't included in the source also (.incbin or whatever), then you'll need to copy that onto the end, same way as adding the header. I think most x816 progs generally included the CHR-ROM though at the end (when they use CHR-ROM, anyways).
User avatar
nineTENdo
Posts: 223
Joined: Sun Mar 19, 2006 12:37 am
Location: San ANto, TX
Contact:

Post by nineTENdo »

Does the NESASM read stuff like EQU and .asc? What are is pros and cons to x816
User avatar
Memblers
Site Admin
Posts: 3901
Joined: Mon Sep 20, 2004 6:04 am
Location: Indianapolis
Contact:

Post by Memblers »

EQU should work. You might have to change it to =, which is the same thing.

.asc might be in there, with a different name. You could look in nesasm's docs. It's just for defining your font tiles, if they're not in the usual ASCII position.

x816 pros: simple to use and reliable. I used it to make my SNES NSF player, I had no trouble with the assembler that I can recall.

cons: DOS-only. Assembling my huge SNES NSF player in DOSBox seems to take forever (but more like 30 secs when I used to run it natively).
Noone hardly uses it anymore for new projects. ca65 is better if you want to share and use others people's code IMHO.
When it reports errors you have to view the listing to see where they are. It's a bit different than just having the line number reported.
User avatar
Disch
Posts: 1848
Joined: Wed Nov 10, 2004 6:47 pm

Post by Disch »

Memblers wrote:cons: DOS-only.
It runs just fine for me via command prompt on Win2k.

Though I do agree that ca65 > *
Post Reply