Sikau

Learn Project: A whole computer

Build a whole computer system: assembler, CPU, decoder and kernel.

A combined module for after How computers work, Assembly language and Operating systems: design a 16-bit encoding and write an assembler for it, build a CPU that decodes and runs the machine words, write the decoder again in real RISC-V, and finish with a kernel that time-slices two machine-code programs with a yield system call — all in one place.

Advanced · 4 lessons · about 3 hours · free

Start Project: A whole computer free: run real code in your browserright here

Continue with Google

What you will learn

Unit 1: A computer system, end to end

Assembler, CPU, a decoder in RISC-V, and a kernel.

  1. Day 1An assembler for the toy CPUTurn assembly text with labels into 16-bit machine words.40 min
  2. Day 2The CPUDecode machine words with masks and run them: fetch, decode, execute.40 min
  3. Day 3The decoder in RISC-VPull the fields out of a toy machine word with real assembly shifts and masks.35 min
  4. Day 4Final: A kernel for your CPUTime-slice two machine-code programs, with a yield system call.50 min

Before you start

These courses make Project: A whole computer easier:

See all courses

Built with ❤️ by dibe.sh