CPU Emulator Tutorial

Click here to start

Table of contents

CPU Emulator Tutorial

Background

The book’s software suite

Tutorial Objective

The Hack computer

CPU Emulator Tutorial Contents

Slide 7

The Hack Computer Platform

Slide 9

Instruction memory

Data memory (RAM)

Registers

Arithmetic/Logic Unit

Slide 14

I/O devices: screen and keyboard

Screen action demo

Keyboard action demo

Slide 18

Slide 19

Loading a program

Slide 21

Running a program

Slide 23

Slide 24

Animation options

Slide 26

Interactive VS Script-based simulation

The basic setting

Example: Max.asm

Sample test script: Max.tst

Using test scripts

Slide 32

Slide 33

The default script (and a deeper understanding of the CPU Emulator logic)

Slide 35

Breakpoints: a powerful debugging tool

PowerPoint Presentation

Slide 38

Slide 39

Postscript: Maurice Wilkes (computer pioneer) discovers debugging:

Author: Workshop In Computer Construction - From Nand to Tetris

E-mail: nand2tet@cs.huji.ac.il

Homepage: http://www.cs.huji.ac.il/~nand2tet/