
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Verify your program runs correctly. Document this with some simulator snapshots. Of course, identify why you chose these snapshots and what the snapshots are displaying.
The Keyboard is the only device that has interrupt capability in the LC- simulator. The Keyboardâs Interrupt Vector # is x0180. You must load that Interrupt Vector with the location of your interrupt service routine, and donât forget to set the interrupt enable bit in the Keyboard Status Register.
Also, when the interrupt Service Routine begins to be executed, the service routine should immediately disable further interrupts (so that you wonât get another interrupt before you service the present one). You can disarm the interrupts by either reading the device data register, or by turning off the interrupt enable bit (and then, of course, turning it back on just before you leave the service routine). Reading the data register is the simplest.
Verify your program runs correctly. Document this with some simulator snapshots. Of course, identify why you chose these snapshots and what the snapshots are displaying.