Jump to content
IGNORED

Best book for learning assembler?


Recommended Posts

I downloaded most of the assembler books from Atari Mania. Which one is best to start with? It is more important for me that the book is easy to understand than that it covers everything. I have access to mads and the cartridge assembler.

 

Where can I find small sniplets of assembler source code to look at?

Link to comment
Share on other sites

https://atariwiki.org/wiki/Wiki.jsp?page=6502%20Assembly%20CodeI downloaded most of the assembler books from Atari Mania. Which one is best to start with? It is more important for me that the book is easy to understand than that it covers everything. I have access to mads and the cartridge assembler.

Atari Roots has a good reputation for Atari specific programming. The 6502 book by Lance A. Leventhal and the Rodney Zaks book is good as well, but more generic. There was also a serialized assembly course in ANALOG magazine (which I did not read).

 

Where can I find small sniplets of assembler source code to look at?

Atari Wiki has some

  • Like 1
Link to comment
Share on other sites

Where can I find small sniplets of assembler source code to look at?

I sure as hell wish I had a book like "6502 Assembly Language subroutines" by Leventhal&Saville available quarter century ago (and not just a 6502 instruction reference sheet without any examples whatsoever).

 

That book shows you snippets for literally all (and more) things you'll possibly need in the beginning - arrays, strings, tables, math (mul/div) with nicely explained multi-page examples, stacks, all addressing modes in really nice detail, then goes on to examples with 16-bit math/arrays, even sorting / searching.

 

I still keep it open all the time and use for a reference, when needed.

  • Like 1
Link to comment
Share on other sites

Aces123,

I used Machine Language for Beginners as my introduction to 6502 on an Atari. I don't claim to be more than a novice, but the examples provided in that book helped my understanding of the basics.

Edited by Kylev
Link to comment
Share on other sites

Do you mean this one http://www.atarimania.com/documents/Atari-130XE-Machine-Language-for-the-Absolute-Beginner.pdf

 

I used that one the last time I tried to learn assembler and I liked it. Or is it another book?

 

NVM: I think I found the book you meant, looks interesting. Thanks for the sugestion.

Edited by Aces123
Link to comment
Share on other sites

For me, the big hurdle to learning assembly was figuring out that you need to know a lot about the environment you'll be writing for. Sure, you can write some mnemonics and figure out what they'll produce, but you can't just start laying code down with abandon like you can in BASIC. You have to know how to play nice within the system as a whole, so you really have two things to learn.

  • Like 1
Link to comment
Share on other sites

Some more suggestions here.

 

Bryan really has a good point. Getting Input and Output is a lot harder in assembly than in BASIC (although the joysticks aren't too bad and you could e.g. use them to manipulate color registers or sprites).

 

There's a 6502 online simulator which allows for easy trying out of code.

 

These days it's easier to try assembly on an emulator where you can step through code and see how registers and memory locations are changing.

Edited by slx
  • Like 1
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...