Took the plunge: Chuck's AVR Assembly Book

Go To Last Post
18 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've been interested in Chuck assembly language book for some time. I finally got off my duff and ordered it through his site: http://www.zbaird.com/

While I nearly always use C for my AVR code, I think I'll learn enough useful tips in Chuck's book to be a worthwhile read. Even if his book is all blank pages, Chuck has been so very generous giving products to others, that doing this small bit of support seems like appropriate reward for his generosity.

BTW, the wikipedia page http://en.wikibooks.org/wiki/Embedded_Systems/Atmel_AVR has an incorrect link to Chuck's web site. Anyone interested in fixing that?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well Chuck our strategy is working. While I pretend to do things in C you win them over...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kmr wrote:
Even if his book is all blank pages, Chuck has been so very generous giving products to others, that doing this small bit of support seems like appropriate reward for his generosity.
Is that why I've not been able to understand any of Chucks book! Here, I thought it was me, that I was going blind.

Seriously, I've looked over Chucks book. just a little bit. Each time I pick it up, I discover something new. Maybe one of these times, I'll make the connection and JS won't have to feel like he's all alone over there in the "Dark Side !"

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
JS won't have to feel like he's all alone over there in the "Dark Side !"
Who is alone in the dark side? Not catching up with reading the forums I see. :)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

microcarl wrote:
Each time I pick it up, I discover something new.
While AVR assembly seems straightforward enough, I'm confident that I'll learn more than a handful of good ideas from his book.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, thanks, Kevin! What a nice surprise to find this thread this morning! My mother will send you the check... :)

The domain name changed because I recently got a new hosting service, so any reference you see to cbaird.net should become zbaird.com. I need to get that fixed...

I've been thinking what is really needed is a "C Programmer's Guide to Assembly Language" for AVRs. Just enough to make 'em dangerous, maybe defuse the range wars a little. Sounds like work, though, so then I lie down and the thought passes.

And John, you can "while" away the hours all you want but you don't fool me - I know hard core when I see it. The secret handshake is safe, so go ahead and act like you've "switch"ed.

Chuck Baird

"I wish I were dumber so I could be more certain about my opinions. It looks fun." -- Scott Adams

http://www.cbaird.org

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
Quote:
JS won't have to feel like he's all alone over there in the "Dark Side !"
Who is alone in the dark side? Not catching up with reading the forums I see. :)
I've been following your thread, I just figured I see how long it lasted. But I can tell that you've already learned more about GCC then I'd ever care to know.

I sort of miss the old MC68HC11 assembly programming days. And now I'm wondering if it will be as much fun with the AVR.

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
And now I'm wondering if it will be as much fun with the AVR.

How can you doubt it, Carl, with the fun loving bunch of assembly language programmers on this forum?

Take this simple test to see if it's for you:
1) Are you a masochist?

Chuck Baird

"I wish I were dumber so I could be more certain about my opinions. It looks fun." -- Scott Adams

http://www.cbaird.org

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

zbaird wrote:
Quote:
And now I'm wondering if it will be as much fun with the AVR.

How can you doubt it, Carl, with the fun loving bunch of assembly language programmers on this forum?

Take this simple test to see if it's for you:
1) Are you a masochist?

In micros, a true masochist uses a stack-less, bank-switched PIC chip. :o

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

In micros, a true masochist uses a stack-less, bank-switched PIC chip.

With UV-PROM, and only one chip to make the turnaround time 30 minutes instead of 30 seconds. And the only guide he has to using the PIC is Myke Predko's book. (If any true masochist misses this last utensil then I might lend you mine, which I keep mostly because I love to hate :twisted: )

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:
Quote:

In micros, a true masochist uses a stack-less, bank-switched PIC chip.

With UV-PROM, and only one chip to make the turnaround time 30 minutes instead of 30 seconds. And the only guide he has to using the PIC is Myke Predko's book. (If any true masochist misses this last utensil then I might lend you mine, which I keep mostly because I love to hate :twisted: )

I've done several projects using UV EPROMS, back in the early 1980's. It was Snail speed, compared to today's technology. But I had several EPROMS, and my turn-around time was a bit quicker. But that turn-around time did give the opportunity for a cup of coffee, as well as thinking time.

I don't think I could go back. But I still have a ROM emulator, a couple UV EPROM erasers, and a couple other items - like a $700.00 MC68701 programmer & $1,400.00 Data-man programmer. It's a shame, so much money tied up, sitting on a shelf doing nothing! Now, what could I use that money for today?

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

zbaird wrote:
1) Are you a masochist?
I guess I'll find out after I read your chapter on hand-assembling AVR code -- at least I'm hoping there's chapter in there for people who don't want to use no stinkin' assembler ;)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah, nobody gets to use the assembler until they write one. In machine language, loaded through the front panel in binary through switches.

Been there, done that. Time to pass that damn torch.

Chuck Baird

"I wish I were dumber so I could be more certain about my opinions. It looks fun." -- Scott Adams

http://www.cbaird.org

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
And the only guide he has to using the PIC is Myke Predko's book.
oh,oh got one of those...
Quote:
I can tell that you've already learned more about GCC then I'd ever care to know.
Well, I have had expert legal advice from a top lawyer hired by the A.S.S. to see how I could stop the C bullying. I was told to do a project in C to make people think that I'm into C and then use my beloved asm for real stuff.

My membership to the A.S.S. is not affected as long as I don't inhale while coding in C. Not getting much done in between deep breaths..

Anyway it works with marijuana apparently, so I thought I'd give it a shot. This guy is good, has advised world rulers apparently.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I've been thinking what is really needed is a "C Programmer's Guide to Assembly Language" for AVRs.

Include using inline asm in GCC and I'll buy a copy :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Include using inline asm in GCC...

Too bad - I'm not a GCC guy. Maybe my good friend Kangaroo John can write that chapter.

Actually, maybe he can write the whole book. I'd buy a copy.

Chuck Baird

"I wish I were dumber so I could be more certain about my opinions. It looks fun." -- Scott Adams

http://www.cbaird.org

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

zbaird wrote:
Yeah, nobody gets to use the assembler until they write one. In machine language, loaded through the front panel in binary through switches.

Been there, done that. Time to pass that damn torch.

Pah. Some of us *build* the damn processor first. *Then* we write the assembler. And the emulator. And persuade someone else to write the compiler.

And what is this 'stack' of which you speak? We don't need no steenkin' stack. Or subroutines. Or interrupts...

:mrgreen:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This highlights a disadvantage of the flash-based memory of the AVR -- it can't be programed with a simple front page and access bytes in external static RAM. Hmm, maybe a front panel with a built-in ISP programmer to read/write data to flash, eeprom, and sram would be retro cool!