Re:Computer Science from the Bottom Up (2016)
by 314 on Sunday December 29, 2019 @02:38AM
(#21904645)
It’s a typo: he meant 0xa0 or 0x0a and the shift is the four positions to the right to extract the top nybble of the byte.
Re:Computer Science from the Bottom Up (2016)
by delsarto on Sunday December 29, 2019 @03:49AM
(#21904887)
Thanks, I believe this should be clearer with https://github.com/ianw/bottomupcs/commit/d8dfd3dc6be5795f4b...
Re:Computer Science from the Bottom Up (2016)
by 314 on Sunday December 29, 2019 @04:51AM
(#21905077)
Great resource - very detailed and your style is clear and readable. I'd happily recommend this to anybody who is studying an OS course (and in fact emailed a link to some people who teach similar courses to see if they would use it as background reading).
https://www.bottomupcs.com/chapter01.xhtml
Section on "Masking"
How do you get 0x09 or 0x90?
I get how using <memory> & <mask> = <extracted data>...
so:
10100101
&
11110000
=
10100000
But I have yet to see how this is 0x90 or 0x09, perhaps I'm misunderstanding. I'm trying to understand the 'shift' piece of it