[HomeBrew] Lpt port trouble
Flowertime01 at wmconnect.com
Flowertime01 at wmconnect.com
Fri Sep 30 16:59:16 EDT 2005
Ken,
If you can stand the transmitter coming on and staying on until a BAT file
will load and execute you can write a 4 word executable machine language com
file.
Then name the file in the autoexec.bat file. The very short program file will
execute when called from the autoexec.bat file. You need to know some port
addresses and the bits to place in the ports control word register.
You use basic as the tool to create the com file.
You write a basic program that
opens a file
puts the machine instructions in the file
closes the file.
You rename the file "mything.com"
and call it from the autoexec.bat file with the command line "mything"
Not having done any of this since about 1989, I do not have the port address
values or instruction values to stick into the file.
A slower way is to load basic with a program name from autoexec.bat. Use the
program to out the control values to the LPT port. You use this method from
basic to debug the program and find what you need to get into the port control
registers.
Roger KC6TRU
More information about the HomeBrew
mailing list