CENG3420 Lab 2-1: LC-3b Simulator
Bei Yu
Department of Computer Science and Engineering The Chinese University of Hong Kong
byu@cse.cuhk.edu.hk
Spring 2018
1 / 29
CENG3420 Lab 2-1: LC-3b Simulator Bei Yu Department of Computer - - PowerPoint PPT Presentation
CENG3420 Lab 2-1: LC-3b Simulator Bei Yu Department of Computer Science and Engineering The Chinese University of Hong Kong byu@cse.cuhk.edu.hk Spring 2018 1 / 29 Overview LC-3b Basis LC-3b Assembly Examples LC-3b Simulator Task 2 / 29
1 / 29
2 / 29
3 / 29
◮ turns symbols into machine instructions. ◮ EX: lc3b_asm, SPIM, ...
◮ mimics the behavior of a processor ◮ usually in high-level language ◮ EX: lc3b_sim, SPIM, ...
3 / 29
4 / 29
5 / 29
6 / 29
7 / 29
8 / 29
9 / 29
10 / 29
11 / 29
12 / 29
13 / 29
14 / 29
14 / 29
15 / 29
16 / 29
17 / 29
18 / 29
19 / 29
20 / 29
◮ Execute the input LC-3b program ◮ One instruction at a time ◮ Modify the architectural state of the LC-3b
20 / 29
21 / 29
22 / 29
23 / 29
24 / 29
25 / 29
25 / 29
26 / 29
27 / 29
28 / 29
29 / 29