Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial Interrupts failed??

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I am having some problems with my serial port file transfer program. This program uses the serial port interrupts. Can anyone tell me why the following code will fail to have any serial port interrupts coming in?

a: mov ah, 6
mov dl, 0ffh
int 21h
jnz b
jmp a

b: ...test for ESC key ....

This is the loop that my program goes through when waiting for serial interrupts. It tests the keyboard for ESC keypress.

However, the following code works:

a: mov ah, 1
int 16h
jnz b
jmp a

b: ....test for ESC key ....

Why does one works while the other fails? Both seems to do a software INT very fast.

Thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top