.ASM into .NES assistance

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

3gengames
Formerly 65024U
Posts: 2281
Joined: Sat Mar 27, 2010 12:57 pm

Re: .ASM into .NES assistance

Post by 3gengames »

Context is just a text editor, it does NOTHING to help you to get a .NES file more than Notepad would. Like said, you have to write program in C or assembly, and run it through the right programs (CC65/ASM6) for it to look at the program and process it to a .NES ROM with the program you wrote in the file. Even if this happens, you have to write the code 100% right to get any results even with the right compiler/assembler. You should read on different assemblers/compilers to understand how they work, as it seems you don't even understand what tool you need, let alone how to use it! :)
User avatar
Gilbert
Posts: 479
Joined: Sun Dec 12, 2010 10:27 pm
Location: Hong Kong
Contact:

Re: .ASM into .NES assistance

Post by Gilbert »

AFAIK, ConTEXT is a context sensitive text editor, that helps you with writing your codes. Having just an editor won't make you eligible in writing stuff for a specific system immediately and you still need to learn how to code for it (which I suppose those youtube videos are for). Getting the (C-) source codes to that particular text editor wouldn't help either, unless you need to compile the editor yourself, or do you want to compile ConTEXT into a NES rom? But why?

If you just want to make games just follow those tutorials people suggested. People normally enter codes with text editors and any text editors will do, then parse the source text files with compilers or assemblers to get executables or roms. ConTEXT is just one of these text editors, and it has syntax highlighting that helps you with coding. That's it.

edit: Ninja'd by 3gengames.
User avatar
caramelpuffpuff
Posts: 64
Joined: Sat Feb 23, 2013 4:16 pm

Re: .ASM into .NES assistance

Post by caramelpuffpuff »

3gengames wrote:Context is just a text editor, it does NOTHING to help you to get a .NES file more than Notepad would. Like said, you have to write program in C or assembly, and run it through the right programs (CC65/ASM6) for it to look at the program and process it to a .NES ROM with the program you wrote in the file. Even if this happens, you have to write the code 100% right to get any results even with the right compiler/assembler. You should read on different assemblers/compilers to understand how they work, as it seems you don't even understand what tool you need, let alone how to use it! :)
Awwww. Well, I want to test it by using the sample of .ASM game-files with ASM6...to see if I got the right file for me...Not sure if I'm explaining it right.
I am thinking of requesting a tutor [free] to learn NES programming in 6502 Assembly, as I am still baffled on the Bunnyboy 6504 lessons. If anyone want to help, I'm happy.
Bear in mind I may act silly or have trouble understanding, so please bear with me.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: .ASM into .NES assistance

Post by tokumaru »

Keep in mind that even if a file has the .ASM extension that doesn't mean that you can use any assembler with it. For example, source code written for NESASM will have some commands that ASM6 doesn't understand, and vice-versa. You need to know what assembler the programmer was targeting when he wrote the program, and use that assembler.
User avatar
caramelpuffpuff
Posts: 64
Joined: Sat Feb 23, 2013 4:16 pm

Re: .ASM into .NES assistance

Post by caramelpuffpuff »

tokumaru wrote:Keep in mind that even if a file has the .ASM extension that doesn't mean that you can use any assembler with it. For example, source code written for NESASM will have some commands that ASM6 doesn't understand, and vice-versa. You need to know what assembler the programmer was targeting when he wrote the program, and use that assembler.
Oh muffins. -___-;

I guess I'll try to make a demo and explain what I did. In the 6502 assembly, does all the letters like "STA" and "LDA" must me capitalized?

(I understand it...but now I have to figure out making a picture of myself, and do something that convert that code into the NES. so I could give the record and hypothesis on it and how I do it and what happens now.)
I am thinking of requesting a tutor [free] to learn NES programming in 6502 Assembly, as I am still baffled on the Bunnyboy 6504 lessons. If anyone want to help, I'm happy.
Bear in mind I may act silly or have trouble understanding, so please bear with me.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: .ASM into .NES assistance

Post by tokumaru »

caramelpuffpuff wrote:I guess I'll try to make a demo and explain what I did.
Yes, the best thing is to start with something simple, like setting some colors and writing something on the screen.
In the 6502 assembly, does all the letters like "STA" and "LDA" must me capitalized?
That's one of the things that can change from assembler to assembler, but most current assemblers should accept lower-case as well as upper-case instructions.
User avatar
caramelpuffpuff
Posts: 64
Joined: Sat Feb 23, 2013 4:16 pm

Re: .ASM into .NES assistance

Post by caramelpuffpuff »

tokumaru wrote:
caramelpuffpuff wrote:I guess I'll try to make a demo and explain what I did.
Yes, the best thing is to start with something simple, like setting some colors and writing something on the screen.
In the 6502 assembly, does all the letters like "STA" and "LDA" must me capitalized?
That's one of the things that can change from assembler to assembler, but most current assemblers should accept lower-case as well as upper-case instructions.
Poyo. I'm trying to find a "most recent version" replacement for YY-CHR that doesn't have "cyan" color and that is "black-transparent color" as a default, because mine doesn't have an editor that allows you to make background world or something... FOUND IT!!! :D http://www.geocities.jp/yy_6502/yychr/y ... 407_en.zip

???..What program convert assembler to .NES?
I am thinking of requesting a tutor [free] to learn NES programming in 6502 Assembly, as I am still baffled on the Bunnyboy 6504 lessons. If anyone want to help, I'm happy.
Bear in mind I may act silly or have trouble understanding, so please bear with me.
3gengames
Formerly 65024U
Posts: 2281
Joined: Sat Mar 27, 2010 12:57 pm

Re: .ASM into .NES assistance

Post by 3gengames »

You don't convert anything. You assemble it. There are lots of assemblers, google "NES assembler" and you'll find some. The popular ones are ASM6, NESASM3, and CA65. They all work in different ways, they all will have information on the features they have in documentation on the site. That's basically ALL there is to it, it's YOUR job to figure everything else out, basically. Most of those will be command line tools, which we showed ya how, but if not then go to Nintendoage and download a nerdy nights file and look at the .bat to see how command line tools are run from a batch file.

And google for YY-Chr 0.98 Beta 2. I believe it's the last one until they went to a MS-generic library and made it into complete trash excuse for a graphics editor.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: .ASM into .NES assistance

Post by tepples »

caramelpuffpuff wrote:???..What program convert assembler to .NES?
An assembler. The language is "assembly language"; the program that turns it into object code is an "assembler". The popular assemblers here are "asm6" and "ca65". A lot of people find asm6 easier to set up for the first time, but ca65 might be better for large projects once your skills pass a certain point.

Apart from YY-CHR, the other way to draw graphics is to make a BMP or PNG file in GIMP and then use a program to convert that to the CHR format that the NES expects.
User avatar
caramelpuffpuff
Posts: 64
Joined: Sat Feb 23, 2013 4:16 pm

Re: .ASM into .NES assistance

Post by caramelpuffpuff »

tepples wrote:
caramelpuffpuff wrote:???..What program convert assembler to .NES?
An assembler. The language is "assembly language"; the program that turns it into object code is an "assembler". The popular assemblers here are "asm6" and "ca65". A lot of people find asm6 easier to set up for the first time, but ca65 might be better for large projects once your skills pass a certain point.

Apart from YY-CHR, the other way to draw graphics is to make a BMP or PNG file in GIMP and then use a program to convert that to the CHR format that the NES expects.
Oh. Than ASM6 would be suitable for me now.

Well, I sometimes do that, but I find it more fun doing it on YY-CHR instead of GIMP; even if I use the NES palette for GIMP, it still doesn't feel like I'm making sprite.

"And google for YY-Chr 0.98 Beta 2. I believe it's the last one until they went to a MS-generic library and made it into complete trash excuse for a graphics editor."

Thank you for this one.

(.....Sooooo lonely. -u-)
I am thinking of requesting a tutor [free] to learn NES programming in 6502 Assembly, as I am still baffled on the Bunnyboy 6504 lessons. If anyone want to help, I'm happy.
Bear in mind I may act silly or have trouble understanding, so please bear with me.
User avatar
koitsu
Posts: 4203
Joined: Sun Sep 19, 2004 9:28 pm
Location: A world gone mad

Re: .ASM into .NES assistance

Post by koitsu »

A bit off-topic, but I thought I'd ask: caramlepuffpuff, your native tongue isn't English (and that's fine!) -- so what is your first language? This forum is quite diverse language-wise, so possibly there's someone who can speak to you in your native tongue thus help diminish any confusion. :-) Let us know!
User avatar
caramelpuffpuff
Posts: 64
Joined: Sat Feb 23, 2013 4:16 pm

Re: .ASM into .NES assistance

Post by caramelpuffpuff »

koitsu wrote:A bit off-topic, but I thought I'd ask: caramlepuffpuff, your native tongue isn't English (and that's fine!) -- so what is your first language? This forum is quite diverse language-wise, so possibly there's someone who can speak to you in your native tongue thus help diminish any confusion. :-) Let us know!
PM on that.....:oops:
I am thinking of requesting a tutor [free] to learn NES programming in 6502 Assembly, as I am still baffled on the Bunnyboy 6504 lessons. If anyone want to help, I'm happy.
Bear in mind I may act silly or have trouble understanding, so please bear with me.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: .ASM into .NES assistance

Post by tokumaru »

caramelpuffpuff wrote:PM on that.....:oops:
If you answer by PM the people that do speak your language won't know! :roll:
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: .ASM into .NES assistance

Post by tepples »

Wild paranoid guess: "If people know what my parent language is, they'll know where I grew up, and I don't want to give out any more PII than I absolutely have to, especially in a country that tries to suppress homebrew."
User avatar
koitsu
Posts: 4203
Joined: Sun Sep 19, 2004 9:28 pm
Location: A world gone mad

Re: .ASM into .NES assistance

Post by koitsu »

caramelpuffpuff, am I allowed to disclose publicly what your native tongue is? I understand your concerns that you mentioned in your PM, but we have had no language (or ethnic/racial) issues on this forum. It's very diverse.
Post Reply