First page Back Continue Last page Overview Graphics
Laboratory 5.1 : Logic Instructions
2. Add code to the above program to set bit 4 of VAR_1 and store it back in VAR_1.
3. Using an AND instruction and the appropriate branch instruction, add code to the above program to wait for bit 1, and only bit 1 (switch 2) of the dip swich on the interface board to go low (on).
Access the switches through port T at address $ae.
4. Modify the above program to wait for the switch to go high.