Hi guys, I am trying to learn BASIC on a Commodore 64 (after failing at trying to learn complete 6502 assembly on the NES), and can't wait to contribute to the wonderful world of programming here, but am unfortunately stuck, one one of the first chapters on the C64 official users guide.
One of the first interesting programs you learn how to make; a ball that moves from left to right across the screen...
Is some pictures of the code and the instructions and my result on photobucket...I'm sure there was an easier way to convey that information as well but, thank anyone deeply for any help that I can get back from this, as it is only a meager few lines of code that prevent my...erm..blossoming into the world of programming...Thanks!
Oh...and is a { the same as a [ in C64?...
Thanks..
Exceedingly unhelpful...
I was under the impression that the two were related, and this site gives no real links to compilers or other program I can use to implement any learnings it does give me.
Basic is the most commonly used programming language out there, is it not?
hmm...alright, then damn.
Would anyone mind maybe being able to tell me, just, what will bring me closer to being able to learn how to program a NES game? It uses the 6502 processor, as does the C64. Yet from what I can gather you can only write for NES in a text file and then compile it, C64 at least lets you input into the system and get results.
However, every singular resource on the web clearly states to not even attempt it unless you know assembly, or a simpler programming language.
I was told that the 6502 is also used in computers today everywhere, but that C++ is the most common language, and now I am being told that they have nothing in common?
...and is there really some taboo reason why I cannot find any compilers for C++?
Thanks a million.
1.The C64 uses the 6510, the nes uses a cpu BASED on the 6502
2.the 6502 IS DEFINITELY NOT IN USE TODAY
3. there are a million c++ compilers out there. For example theres code::blocks,visual studio,dev c++ and a ton others. if you have any more questions just ask
you really need to find a new source of information
Thank you for your responses.
Just one more though, WILL learning C++ effectively bring me closer to being able to program for the NES and thus SNES? Or would BASIC be all around more similar to that cause in particular?
well neither. Since the nes couldn't store much data, all of it was coded in pure assembly. That also goes for the snes who runs on a 65c816 cpu. If you wanna code for newer consoles then learn C++ but if you wanna go for older you MUST use assembler.
For the nes learn 6502 assembly
for the snes learn 65c816 assembly
if you wanna know anything else just ask but it will be a few hours before i can respond
Alright thanks, I suppose I will go back to trying to find a beginner based assembly tutorial- if one exists.
I know this is getting further away from C++ conversation, but
correct me if I'm wrong here, but what I am drawing out of this is:
Even though C64 and NES use 6502 assembly, only C64 uses basic, but this leads me to believe that all programs written in assembly for the NES could also be written in the same (6502) assembly for the C64.
-Is that correct?
And would learning C++ give me even some understanding that was even closely related to in any way to programming for the NES or C64, or is it completely exempt from them and only used to make programs that are to be run on an actual computer OS?
I suppose this is what happens sometimes when you try to use several hundred outdated resources to gather your information instead of just asking the right person the right question...
Thanks!
ONLY the nes uses 6502 assembly
the C64 uses 65c816 assembly, basic will not work
assembly is the hardest computer language to learn, C++ is actually easier and even that is hard when your first getting started
C++ is used on many systems. All newer game consoles use it and pc's also use it. Learning C++ would help you understand how to think as a programmer though
assembly is the hardest computer language to learn,
No it's not. I learned x86 assembly, and that's by far the worst designed one because of the jumble of backwards compatibility Intel have had to included. As an example of why x86 assembly is so poorly designed; NOP (aka a NULL statement) isn't even opcode 0x00. It's 0x90.
I would say brainfuck is harder to learn than assembly. Assembly has no symbols (some assemblers add their own so that you can define constants, but Intel assembly doesn't specify any), just text. Contrastingly, brainfuck has no text, just symbols.
C++ is used on many systems. All newer game consoles use it and pc's also use it. Learning C++ would help you understand how to think as a programmer though
Again, you're wrong. The Xbox 360 uses C# as well as native C++ code AFAIK. At any rate, PCs can use any language that can be compiled to native code, and any language that compiles to bytecode so long as there's a program to interpret it.
One of the first interesting programs you learn how to make; a ball that moves from left to right across the screen...
I thought a program that uses POSIX threads and POSIX signalling to implement a userland scheduler was pretty cool, but it seems I was wrong. My mistake.