rplantz
Posts: 68
Joined: Sun Jul 01, 2012 2:38 am

Free assembly language book available online

Fri Sep 09, 2016 6:36 pm

My college-level textbook, Introduction to Computer Organization: ARM Assembly Language Using the Raspberry Pi, is ready for use at http://bob.cs.sonoma.edu. It is being used in the classroom for the first time this semester (Fall 2016) at Sonoma State University and Santa Rosa Jr. College.

All the programming is done with GNU tools already installed with Raspbian. Using my RPi 3, I can read the book with Epiphany while programming in a Terminal window.

I used MathBook XML to author the book. It is still undergoing development, so some of the formatting will change as I bring the early chapters up to the newer standards.

Comments are very welcome, especially any errors that you see.

User avatar
fos
Posts: 104
Joined: Wed Nov 16, 2011 1:48 am
Location: Texas & Kansas, United States
Contact: Website

Re: Free assembly language book available online

Tue Sep 13, 2016 11:48 pm

Thank you for sharing. I will download, give it a try and comment.

Jeff
https://faroutscience.com

RudyB
Posts: 35
Joined: Thu Apr 05, 2012 5:58 am

Re: Free assembly language book available online

Mon Oct 10, 2016 1:02 pm

is this book still up for download.
Can't seem to connect to this site for a few days now.
Maybe the book can be downloaded anywhere else?

regards

rplantz
Posts: 68
Joined: Sun Jul 01, 2012 2:38 am

Re: Free assembly language book available online

Mon Oct 10, 2016 2:54 pm

That's odd, I just clicked on the link (Chrome, Windows 10) and it opened right away. Have you tried typing in the url by hand? I used Chromium on my RPi3 (running PIXEL) to open the site last night.

The book is in HTML, created by Mathbook XML (https://mathbook.pugetsound.edu/), so is not downloadable. It is online. It is being used in the classroom this semester, which will provide me some feedback. I anticipate some changes, after which I plan to create a paperback version. This should be available early next year.

User avatar
scruss
Posts: 2542
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Free assembly language book available online

Mon Oct 10, 2016 3:43 pm

Thanks, Bob. The Mathbook presentation looks pretty good in Chromium on a Raspberry Pi 3 — a lot like O'Reilly's Safari Books Online.

I was just wondering about learning ARM assembly (I was all about the Z80 three decades ago …) and your book looks like a great place to start.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

rplantz
Posts: 68
Joined: Sun Jul 01, 2012 2:38 am

Re: Free assembly language book available online

Mon Oct 10, 2016 6:42 pm

Thank you for the kind words, scruss. I hope that the book does provide a good place to start learning about the ARM for people like you. I imagine you will skim over the first part of the book, until you get to the assembly language programming. Then when I describe the instructions, I use notation that is similar to the ARM manuals. I'm hoping this makes it easier for readers to use the manuals to extend their expertise.

And please let me know if you encounter any errors in the book.

--Bob

ejolson
Posts: 3681
Joined: Tue Mar 18, 2014 11:47 am

Re: Free assembly language book available online

Mon Oct 10, 2016 8:44 pm

rplantz wrote:I hope that the book does provide a good place to start learning about the ARM for people like you. I imagine you will skim over the first part of the book, until you get to the assembly language programming. Then when I describe the instructions, I use notation that is similar to the ARM manuals. I'm hoping this makes it easier for readers to use the manuals to extend their expertise.
It looks like a nice book. I like how it leverages previous C experience and find this reasonable because mixing assembly with C is probably more common than with other languages.

Your book seems related to the topic whether there is any use of teaching assembly language. Unfortunately, that thread was was recently locked. Such longer threads often get linked by search engines, so it is useful to update them even if they are old. For example, it would have been nice to put a link from that thread to this one so people who found that thread would know about this one.

The first book I read on programming was Introduction to Programming. That book starts out with an entire chapter on logic and octal arithmetic before discussing assembly language. For obvious reasons no prior high-level programming knowledge was assumed. At any rate learning a little assembly has provided me with a certain intuition regarding how computer hardware works that has served well.

RudyB
Posts: 35
Joined: Thu Apr 05, 2012 5:58 am

Re: Free assembly language book available online

Tue Oct 11, 2016 5:09 am

rplantz wrote:That's odd, I just clicked on the link (Chrome, Windows 10) and it opened right away. Have you tried typing in the url by hand? I used Chromium on my RPi3 (running PIXEL) to open the site last night.
.
Thank you. I just checked on a different internetprovider and there the page loads without problems.
Very strange, using my DSL connection, no connection. Using my fiber connection and the page loads.

By the way, great reading this material.

cirosantilli
Posts: 1
Joined: Sun Jul 22, 2018 7:23 am
Contact: Website

Re: Free assembly language book available online

Sun Jul 22, 2018 7:26 am

I am working on: https://github.com/cirosantilli/arm-assembly-cheat

Features:

- covers both ARMv7 and ARMv8
- the exact same assembly also works on QEMU, so you can try stuff out faster on your host before going native
- good GDB setup out of the box, both on host and native
- has asserts that show the assembly line number where things failed
- uses the C standard library for IO, which makes it OS portable in theory, and allows to easily reuse goodies like `printf` and `memcpy`

carlsmith
Posts: 3
Joined: Sun Aug 26, 2018 9:52 pm

Re: Free assembly language book available online

Thu Sep 20, 2018 9:44 pm

Hi Robert. I was going to study Introduction to Computer Organization: ARM Assembly Language Using the Raspberry Pi, but the restrictive license put me off.

I always typeset the textbooks I study so they render perfectly on my ebook reader (with grayscale syntax highlighting and navigation that takes advantage of the hardware), and will edit stuff and add a kind of marginalia over time. My ebook reader is over ten years old, so I rarely share anything I make for it, but the work is part of the learning process for me, even if only five people ever read it.

A GPL style license would be awesome.

rplantz
Posts: 68
Joined: Sun Jul 01, 2012 2:38 am

Re: Free assembly language book available online

Fri Sep 21, 2018 3:31 am

I'm sorry that the book does not meet your needs. I have some contractual agreements regarding use of the material, so there isn't much I can do at this time. The contract does allow me to maintain a free copy online, but I cannot share the source. As stated on my website, I am retired, so all the work I put into the book was on my own time.

ichibrosan
Posts: 4
Joined: Fri May 24, 2019 7:34 am

Re: Free assembly language book available online

Fri May 24, 2019 7:38 am

I think it was a very generous thing to do to publish the book on the web for free.

I am unemployed and trying to learn this material in order to become more viable as an employee.

Not everyone can afford to buy books, and the freedom to read them for free is a major boon for which I am grateful.

Thanks, Douglas

User avatar
kennyc
Posts: 75
Joined: Mon Jul 15, 2019 9:26 am

Re: Free assembly language book available online

Sun Jul 28, 2019 12:29 am

rplantz wrote:
Fri Sep 21, 2018 3:31 am
I'm sorry that the book does not meet your needs. I have some contractual agreements regarding use of the material, so there isn't much I can do at this time. The contract does allow me to maintain a free copy online, but I cannot share the source. As stated on my website, I am retired, so all the work I put into the book was on my own time.
Excellent and Good for You! Thank You!
Kenny A. Chaffin
Blog: http://mansionsofthemind.blogspot.com/
Art: https://www.deviantart.com/kennyc
"Strive on with Awareness" - Siddhartha Gautama

User avatar
DougieLawson
Posts: 36307
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Free assembly language book available online

Sun Jul 28, 2019 8:13 am

rplantz wrote:
Fri Sep 21, 2018 3:31 am
I'm sorry that the book does not meet your needs. I have some contractual agreements regarding use of the material, so there isn't much I can do at this time. The contract does allow me to maintain a free copy online, but I cannot share the source. As stated on my website, I am retired, so all the work I put into the book was on my own time.
This saddens me. You've provided an excellent resource for free and someone had to complain about it.

I've not done much with assembler on my RPis but found the arcane incantations in your book useful to get the as & gcc stuff running.

ARM assembly language is close enough to IBM's S/370 to be familiar territory for me.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

bitcohen
Posts: 4
Joined: Thu Feb 08, 2018 2:32 pm

Re: Free assembly language book available online

Thu Aug 15, 2019 3:11 pm

Very clearly written book. never thought anyone cared about assembly anymore. Great info.

Thanks, Bitcohen

jackilerd
Posts: 2
Joined: Fri Nov 08, 2019 8:28 pm

Re: Free assembly language book available online

Fri Nov 08, 2019 8:29 pm

I think it was a very generous thing to do to publish the book on the web for free.

Thanks, Jack

Return to “Teaching and learning resources”