Command File
| BNEZ instruction
clock clka 0 1 0 0
clock clkabar 1 0 1 1
clock clkb 0 0 0 1
clock clkbbar 1 1 1 0
vector ir ir3 ir2 ir1 ir0
vector state s1 s2 s3 s4
vector oneflag zeroflag
ana state oneflag br incpc ldpcbuf loading ir
V RESTART 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
V LOADDONE 1
V ENTER 1
V DMSEG 0
V IMSEG 0
V ZEROFLAG 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1
V ir 0011
R
Simulation

Notice:
- ONEFLAG is high whenever the ACC contains a non-zero value
- When ONEFLAG is low, BNEZ will not branch, so the next PC value will
just be the current one incremented by 1
- When ONEFLAG is high, BNEZ will branch, so the next PC value will add
the value on the bus to the current PC
- The BR signal triggers the PC mux to chose the value off the bus,
instead of the hardwired 0001
- When BR is high, INCPC again goes high to load the new value
entp should be driving the bus when this happens!!!