Jump to content
IGNORED

Easy 6502


Recommended Posts

  • 2 weeks later...

uhh... there is nothing "easy" about the 6502...

 

Learning 6502 is pretty easy, i picked it up when i was about fourteen just using a couple of books, a machine code monitor and, because it was the 1980s, a small group of school friends who were learning at the same time so going for it now with communities like this one to ask for help, huge archives of reference books online and other online resources like the one Stephen has linked to should if anything be easier.

  • Like 2
Link to comment
Share on other sites

I've done a few interrupts in the past but nothing at all major in 6502. I have to say, I've found it quite easy to pick up compared to other languages.

 

I wrote a tiling routine in 'C' a short while ago and it took me several weeks to get it working. I've just written one in 6502 and I've developed in a few days (1 1/2 hrs per day). Most of that time was spent debugging it also.

 

To me, the main hurdle that I need to overcome is knowing all the tips and tricks for making things as efficient as possible. This is something which I hope to pick up in time.

 

To any modern programmers, I'd say it is probably on a par with Shell script programming for difficulty to learn. (I'm sure this is debatable!)

 

Although I compile with MADS, I've deliberately decided not to use a lot of the features of MADS as I may tie myself down to this compiler. And also, it would take me ages to learn all the different ways of using it. I'm using pretty much standard 6502. I realise that I am missing out on plenty of features which could probably help me, but I don't want to be tied down.

Link to comment
Share on other sites

6502 code itself is rather easy. Programming something that works, looks, and sounds good on Atari 8bit is a different chapter, but that has more to do with the atari hardware (although I think a lot of the atari makes sense too).

 

There are a few harder instructions, but most of the time you don't even need those (I speak of certain addressmode)

Link to comment
Share on other sites

6502 code itself is rather easy. Programming something that works, looks, and sounds good on Atari 8bit is a different chapter, but that has more to do with the atari hardware (although I think a lot of the atari makes sense too).

 

Absolutely, it's the machines wrapped around the 6502 that are more challenging. The "trick" i reckon is not to jump in at the deep end, start with trying to make something that looks and plays like Warlok or Sea Dragon to begin with (or insert early but playable examples of another genre here =-) and use those to get an understanding of the machine to build on.

Link to comment
Share on other sites

I found 6502 pretty easy to pick up. What I found took me time, was learning to program (in any language). As has been said before, programming something that is functional, easy to use and pleasing to the eye can be the trial. The semantics of the language used are usually fairly simple.

Link to comment
Share on other sites

Sure, it's easy, as long as all your variables are 8 bit and you don't need to use more than three registers in your program (two of which are just index registers and can't be used in arithmetic operations). Speaking of arithmetic, you only have addition and subtraction, you'll have to code multiplication and division yourself, if you're even able to do that, which most people don't (present company excluded, I'm sure).

Link to comment
Share on other sites

interesting, i thought the 2600 used a cutdown version of the 6502 namely the 6507 (which is also in the 1050 drive) and unless i am muistaken the NES used a 3rd party variant of the 6502 (the 2a03 or 2a07 i believe) which ran slightly slower then the atari versions of 6502 and 6502c proccessors

 

Wan't it said that the 6502 was the risc processor of it's day, compared to the likes of z80 or 8080/8086/8

  • Like 1
Link to comment
Share on other sites

interesting, i thought the 2600 used a cutdown version of the 6502 namely the 6507 (which is also in the 1050 drive) and unless i am muistaken the NES used a 3rd party variant of the 6502 (the 2a03 or 2a07 i believe) which ran slightly slower then the atari versions of 6502 and 6502c proccessors

 

 

They're all 6502 variants so, whilst the specifics might vary, the instruction set (which is what Easy 6502 deals with) is still valid across the board.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

I really liked that website, but after the easy 6502 course, I was still left wondering a bit, how am I going to organize the program....then, I bought this book called "Machine Language for Beginners" off e-bay.

 

I have to recommend this book as well. If you are a programmer like me, but just want to be productive in assembler, this book has a path to getting started fairly quick, leveraging your existing knowledge.

 

I'm sure my first effort won't be optimized like someone with experience could - but, I'm half way hopeful it won't be a big scrambled mess either - it may have some organization now! woot.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...