MODE command (Developers)
The MODE command goes something like:
MODE COM1:9600,N,8,1
This then needs to be translated into a call
to this BIOS interrupt:
http://www.ctyme.com/intr/rb-0811.htm
9600 is actually the maximum allowed value
for that interrupt, but I believe I read
somewhere that some implementations redefine
those values. Also I see here that there are
extensions available - not sure how you know
when they can be used:
http://www.ctyme.com/intr/rb-0823.htm
Regardless, I was thinking that the MODE
command should allow a speed of "MAX" instead
of needing to code an actual value.
Because the serial port in some implementations
is going to be emulated by qemu or whatever, and
the speed doesn't have a lot of meaning.
What do you think "best practice" should be?
I need to implement this for PDOS/386. Currently
I have a "portinit" command and usually give it
a value of 0xe3.
Thanks. Paul.
Complete thread:
- MODE command - kerravon, 14.10.2021, 12:34 (Developers)
- MODE command - bretjohn, 14.10.2021, 17:36
- MODE command - kerravon, 15.10.2021, 00:29
- MODE command - bretjohn, 15.10.2021, 07:29
- MODE command - kerravon, 15.10.2021, 07:42
- MODE command - bretjohn, 16.10.2021, 00:50
- MODE command - kerravon, 16.10.2021, 02:07
- MODE command - RayeR, 18.10.2021, 21:44
- MODE command - kerravon, 16.10.2021, 02:07
- MODE command - bretjohn, 16.10.2021, 00:50
- MODE command - kerravon, 15.10.2021, 07:42
- MODE command - bretjohn, 15.10.2021, 07:29
- MODE command - kerravon, 15.10.2021, 00:29
- MODE command - DosWorld, 22.10.2021, 03:35
- MODE command - kerravon, 23.10.2021, 01:50
- MODE command - DosWorld, 01.11.2021, 19:05
- MODE command - kerravon, 01.11.2021, 20:02
- MODE command - tom, 02.11.2021, 18:53
- MODE command - kerravon, 02.11.2021, 21:22
- MODE command - tom, 02.11.2021, 18:53
- MODE command - kerravon, 01.11.2021, 20:02
- MODE command - DosWorld, 01.11.2021, 19:05
- MODE command - kerravon, 23.10.2021, 01:50
- MODE command - bretjohn, 14.10.2021, 17:36