Well, perhaps I'm misunderstanding you here, but I don't mean changing any
code. Just write a small utility that swaps the vectors at those two memory
locations. This is where the BIOS stores the addresses for COM2 and COM4.
Unless this Oberon system makes no attempt at compatibility, this will have
the effect of swapping the port addresses. You shouldn't be hard-coding $2E8
or $2F8 in any code (nor should Oberon). Mind you, this is from a real-mode
and V86-mode perspective - so perhaps none of this stuff is applicable?

Anyway, just run the above utility from autoexec.bat or whatever (before
loading any drivers that use these ports, of course). Thereafter, the BIOS,
DOS and any software (that doesn't hard-code the port addresses) will see
COM2 at the COM4 address and vice versa.

Joe.


On Tue, 23 Jul 2002 07:17:39 +0000, Ghost in the Machine <[EMAIL PROTECTED]> wrote:

>Hello Joe -
>----------
>>
>> Well, COM4 traditionally uses the same IRQ as COM2, although not
>> simultaneously. Therefore, perhaps you can simply swap the addresses
>> of COM2 and COM4, by swapping the addresses vectors at memw[40:02]
>> and memw[40:06]?
>
>You're on the right track. :-)
>
>I did realize I could just substitute 2E8H for 2F8H in the code and it would
>access COM4 _thinking_ it was COM2.  A bit more complex since detection
>of existing ports etc. has to be adjusted along with this but basically I can
>fake it, yes.
>

------ snip -----

To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with 
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html

Reply via email to