In these code alongs, we travel beneath Python to binary, hexadecimal, and assembly language, writing our programs in Visual X-TOY, a simulator of a simple virtual computer. Work through them in order; each lesson contains the video in which we explore the ideas and write the programs together.
- The CPU, Memory, and Binary
- Hexadecimal: A Shorthand for Binary
- Meet X-Toy, a Virtual Computer
- Bitwise Operations in X-Toy: AND, XOR, Shifts, and Bit Masks
- Negative Numbers and Two’s Complement in X-Toy
- Indirect Memory, Branching, and If/Else in X-Toy
- Loops and Functions in X-Toy: Multiplication