csci2021/ArchLab/archlab-handout/sim/y86-code
Michael Zhang 1fa36db752
f
2018-01-29 17:45:27 -06:00
..
abs-asum-cmov.yo f 2018-01-29 17:45:27 -06:00
abs-asum-cmov.ys f 2018-01-29 17:45:27 -06:00
abs-asum-jmp.yo f 2018-01-29 17:45:27 -06:00
abs-asum-jmp.ys f 2018-01-29 17:45:27 -06:00
asum.yo f 2018-01-29 17:45:27 -06:00
asum.ys f 2018-01-29 17:45:27 -06:00
asumi.yo f 2018-01-29 17:45:27 -06:00
asumi.ys f 2018-01-29 17:45:27 -06:00
asumr.yo f 2018-01-29 17:45:27 -06:00
asumr.ys f 2018-01-29 17:45:27 -06:00
cjr.yo f 2018-01-29 17:45:27 -06:00
cjr.ys f 2018-01-29 17:45:27 -06:00
j-cc.yo f 2018-01-29 17:45:27 -06:00
j-cc.ys f 2018-01-29 17:45:27 -06:00
Makefile f 2018-01-29 17:45:27 -06:00
poptest.yo f 2018-01-29 17:45:27 -06:00
poptest.ys f 2018-01-29 17:45:27 -06:00
prog1.yo f 2018-01-29 17:45:27 -06:00
prog1.ys f 2018-01-29 17:45:27 -06:00
prog2.yo f 2018-01-29 17:45:27 -06:00
prog2.ys f 2018-01-29 17:45:27 -06:00
prog3.yo f 2018-01-29 17:45:27 -06:00
prog3.ys f 2018-01-29 17:45:27 -06:00
prog4.yo f 2018-01-29 17:45:27 -06:00
prog4.ys f 2018-01-29 17:45:27 -06:00
prog5.yo f 2018-01-29 17:45:27 -06:00
prog5.ys f 2018-01-29 17:45:27 -06:00
prog6.yo f 2018-01-29 17:45:27 -06:00
prog6.ys f 2018-01-29 17:45:27 -06:00
prog7.yo f 2018-01-29 17:45:27 -06:00
prog7.ys f 2018-01-29 17:45:27 -06:00
prog8.yo f 2018-01-29 17:45:27 -06:00
prog8.ys f 2018-01-29 17:45:27 -06:00
prog9.yo f 2018-01-29 17:45:27 -06:00
prog9.ys f 2018-01-29 17:45:27 -06:00
prog10.yo f 2018-01-29 17:45:27 -06:00
prog10.ys f 2018-01-29 17:45:27 -06:00
pushquestion.yo f 2018-01-29 17:45:27 -06:00
pushquestion.ys f 2018-01-29 17:45:27 -06:00
pushtest.yo f 2018-01-29 17:45:27 -06:00
pushtest.ys f 2018-01-29 17:45:27 -06:00
README f 2018-01-29 17:45:27 -06:00
ret-hazard.yo f 2018-01-29 17:45:27 -06:00
ret-hazard.ys f 2018-01-29 17:45:27 -06:00

This directory contains examples of Y86-64 assembly code programs
(extension `.ys') used in Chapter 4 of CS:APP2e.

Given an assembly code file "file.ys", you can assemble it with the
command "make file.yo".  The resulting file is in the "object code"
format described in the book.

You can assemble and simulate all the test programs in this directory.
First, you need to make the different simulators in the pipe (psim)
and seq (ssim and ssim+) directories.  Then use the following
commands:

PIPE: make testpsim
SEQ: make testssim
SEQ+: make testssim+

Each of these commands will cause a number of programs to be assembled
and simulated.  Lots of things will scroll by, but you should see the message
"ISA Check Succeeds" for each of the programs tested.