I thought it would be good to get people familiar with bit-twiddling, as you will be doing a whole lot of that when writing retro emulators.
This is one of my favorite sites on the internet: https://graphics.stanford.edu/~seander/bithacks.html
This is one of my favorite sites on the internet: https://graphics.stanford.edu/~seander/bithacks.html
I recommend Matt Godbolt's Talk(s) about compiler cleverness: https://www.youtube.com/watch?v=bSkpMdDe4g4 (see the 30 minute mark for the multiplication example)
> This is one of my favorite sites on the internet: https://graphics.stanford.edu/~seander/bithacks.html
Yes - I also enjoyed the book "Hacker's Delight", but haven't got round to reading the second edition yet.