Shop OBEX P1 Docs P2 Docs Learn Events
OT: Interupt this — Parallax Forums

OT: Interupt this

ArchiverArchiver Posts: 46,084
edited 2001-01-07 23:11 in General Discussion
This is more than a little OT but I need to know how to implement a low
level interupt in Qbasic. Basically I've got a program that searches for
MP3s on my hard drive (via a "shell "dir"" type command) it creates a list
of MP3s then sends them to another program that sends them out the parrallel
port. Here is the block of code I have for this.

e$="d:\mp3play\mp3d.exe "
While inkey$ = "" and n$(m)<>""
t$=e$+n$(m) 'n$(m) is the name of the song
shell t$
m=m+1
wend

I need a way to interupt the program when it is running MP3d.exe. This
would basically be a stop function. CTRL-BREAK does it, but I need
something that can ultimately be controlled by the serial port. How can I
do this? Where could I find some more info on this type of thing?
Do I have to get into assembler to do this? Please help.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Sign In or Register to comment.