Dec 092017
 
Assembler and QBasic source to add hardware event trapping to your program using ACK line of printer port and ON UEVENT.
File ONUEVENT.ZIP from The Programmer’s Corner in
Category BASIC Language
Assembler and QBasic source to add hardware event trapping to your program using ACK line of printer port and ON UEVENT.
File Name File Size Zip Size Zip Type
TPCREAD.ME 199 165 deflated
UEVENT.ASM 3435 1474 deflated
UEVENT.BAS 1614 799 deflated
UEVENT.DOC 1045 602 deflated
UEVENTSR.ASM 3181 1402 deflated

Download File ONUEVENT.ZIP Here

Contents of the UEVENT.DOC file


This is some source code and an object file I put together
when I had to give a hardware interrupt capability to a QuickBasic
program. I used the ACK line on the printer port. The source code
is here. You'll have to use your favorite compiler on the
assembler code. Once you've made an .obj file from uventpt.asm,
compile your basic code using the /v switch, and link yourcode.obj
with ueventpt.obj. Be sure to use the qb.lib to get the CALL
INTERRUPT functions, as well as BCOM45.LIB. Be sure you make the
"call start" command in your QBasic code near the beginning to
properly initialize the vector and ports. To test the program,
just press the ON LINE button on your printer, to take it off line,
then press it again. This makes the ACK line go low for a few
milliseconds. There should be a beep, and the message "Now in
interrupt handler." Have a ball - if you get some great
improvements, or find some interesting applications, let me know on
the Programmer's Corner, (301) 995 - 3744. Gustin Kiffney


 December 9, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)