Jupyter at Bryn Mawr College |
|||
Public notebooks: /services/public/dblank / CS240 Computer Organization / 2015-Fall / Notes |
CS240: Fall 2015, Blank
For Wednesday, read chapter 7 and come prepared for a classroom activity.
Today, you will be assigned a partner. You will work in pairs on one computer, switching "drivers" every 15 minutes.
%%dot
digraph flowchart {
rankdir=TB
fontname=Helvetica
node [peripheries=0,
style=filled,
fontname=Helvetica,
fixedsize=true,
width=1.8,
height=0.8]
edge [fontname=Helvetica,
fontsize=12,
fontcolor=blue,
labeldistance=1.8]
init [shape=box, label="R0 \<- 0\nR1 \<- #-5"]
load [shape=box, label="R2 \<- R1"]
test [shape=diamond, label="BRz"]
incr [shape=box, label="R1 \<- R1 + 1"]
complete [shape=box, height=0.8, label="HALT"]
init -> load
load -> test
test -> incr [headlabel="no"]
incr -> load
test -> complete [headlabel="yes"]
{ rank=same; incr test }
}
If you finish the above, do Exercises 6.7, 6.14, 6.19