Hi, I noticed a bug in my TERMINAL,
file term-irq.asm, around line 215:
216 irq_modem: ; 0: modem status changed
217 add dx,6
218 mov [comstats],al ; store new modem status
219 jmp short irq_poll ; check for further IRQ reasons
Before line 218, there should be a line
in al,dx
as you can imagine :-). You can compile
TERMINAL by doing:
nasm -o terminal.com terminal.asm
So... If you are working with serial ports, please test
the patch and let me know if it improves the handshake
processing (the terminal properly reads register 6 at
other places, so at least it is not completely broken).
http://www.coli.uni-saarland.de/~eric/stuff/soft/terminal-2005apr23.zip
has the current but probably buggy version.
While we are at it... You can edit this part of term-comm.asm:
80 spcalc:
81 mov ax,60h ; for 1200 Baud
82 shr ax,cl
...
Replace the 60h by 180h if you want the speeds
300 600 1200 2400 4800 9600 19200 38400
instead of the default speeds
bauds db '1200','2400','4800','9600','19.2','38.4','57.6','115.'
(you may want to update several strings in term-data.asm
and in the batch file to properly "document" that patch ;-))
Both the speed patch and the possible handshake bug fix patch
are inspired by Jakub Klawiter who is experimenting with 300
baud communications, both with and without hardware handshake X-).
Eric
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel