ARM Assembly Language Using the Raspberry Pi(bob.cs.sonoma.edu)
bob.cs.sonoma.edu
ARM Assembly Language Using the Raspberry Pi
http://bob.cs.sonoma.edu/IntroCompOrg-RPi/intro-co-rpi.html
5 comments
I teach people that there are many ways to encode numbers into 0, 1 symbols (state of switches). One obvious way for natural numbers is base-2 (with more significant bits on the left). It get's more complicated with negative numbers (two's complement usually, but could also be one sign bit). Floating point numbers are hard. You could also use variable length integers where small numbers are represented with less bits and you use one bit to mark end of a number (every 8 bits).
I find
"bit pattern would be
0000007b "
To be confusing, bit pattern to me would refer to the actual bits, because they are intrinsically relevant eg as flags.
But I'm not a clean slate, so I don't know. All I can say is I didn't have problems learning the 'usual' way.
"bit pattern would be
0000007b "
To be confusing, bit pattern to me would refer to the actual bits, because they are intrinsically relevant eg as flags.
But I'm not a clean slate, so I don't know. All I can say is I didn't have problems learning the 'usual' way.
Anybody know if I can use C.H.I.P instead of RPi to follow this book?
z3t4(1)
Comments from a posting last year: https://news.ycombinator.com/item?id=15716990
I normally see it approached as "numbers are these abstract objects that can have different names, and different number bases are just different ways of naming the numbers; base two is handy for computers".
This approaches it as "binary is a representation of the state of switches. Oh by the way here's an equivalence relation between bit strings and the decimal numbers you know and love"
It's been so long since I've taught this to anybody I have no intuition about whether or not this approach is any better.