[go: up one dir, main page]

0% found this document useful (0 votes)
40 views4 pages

Interrupt Program Using Keyboard Interrupt

This document discusses how keyboard interrupts are used to interrupt a program. It calculates the number of cycles between two interrupts using the BX and SI registers, with the total cycles equal to 0FFFF*SI+BX. It provides three examples of interrupt cycle calculations with different values for the SI and BX registers. It also notes that pressing the keyboard interrupt key gently was used to learn how debounce works, and that the CS and IP registers are used to indicate the interrupt vector address, with IP given first then CS.

Uploaded by

usopp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views4 pages

Interrupt Program Using Keyboard Interrupt

This document discusses how keyboard interrupts are used to interrupt a program. It calculates the number of cycles between two interrupts using the BX and SI registers, with the total cycles equal to 0FFFF*SI+BX. It provides three examples of interrupt cycle calculations with different values for the SI and BX registers. It also notes that pressing the keyboard interrupt key gently was used to learn how debounce works, and that the CS and IP registers are used to indicate the interrupt vector address, with IP given first then CS.

Uploaded by

usopp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Interrupt program using keyboard interrupt

Conclusion: The number of cycles between 2 interrupts is


calculated using BX and SI registers. Total cycles=
0FFFF*SI+BX.

or
Output:

1.) SI : 0000H and BX : 1A9CH


2.) SI : 0000H and BX : 635FH
3.) SI : 0007H and BX : 0A125H

Observations:- Press KBINT key gently. We learnt how to use


‘Debounce’. CS and IP used to indicate the address to which the interrupt
vector ought to point to. IP first then CS is given.

You might also like