First page Back Continue Last page Overview Graphics
Laboratory 2.2 (cont)
Compile and link the program.
Run the previous program four times, changing the values of the dip switches as specified. Record the value stored at "num_in" after each run.
SW3 SW2 SW1 SW0 Binary Code (num_in)
on on off on ________
off on on off ________
off off on off ________
on off off on ________
On is 1 and off is 0. Place switches 7-0 in the off state.