If you’re reading this, you probably learned how to count using your fingers going from one to ten. It is a convenient and intuitive system given that humans generally have 10 fingers. This is the decimal counting system that is also referred to as base ten because it is based on powers of ten (who […]
I’ve been working on an assembler for the byte-code to a virtual machine for a few days. During this process, I encountered the need to convert hex strings such as “AFEE5C” to their binary equivalent, each 8-bit hex value (eg. “FF”) being single bytes equivalent to a single char in C. So I wrote a […]