windowsw 3.0 patch

David Preston Dykes ccastdd at prism.gatech.EDU
Fri Jun 28 06:35:57 AEST 1991


Greetings!
	Earlier I posted a question about getting ms windows 3.0 to work under
vp/ix.  Well I was sent a very elegant patch that works like a charm under
att sysvr4, and thought some of ya'll might want to see it.
	What follows is the mail I recieved from a very helpful Jean-Jacques 
Drolet.

From: drolet at drolet.cam.org (Jean-Jacques P. Drolet)
To: ccastdd at prism.gatech.edu
Subject: Re: windows 3.0 under vp/ix with at&t unix
Newsgroups: comp.unix.sysv386
References: <31544 at hydra.gatech.EDU>

In comp.unix.sysv386 you write:

>Greetings-
>	I have read conflicting reports on this so if one of ya'll could
>straighten me out on this once and for all I'd really appreciate it.
>	At work we are running vp/ix 3.0 under at&t sysv 3.2.  Under this
>new version of vp/ix, ms windows barfs with the same error message that it did
>under our older version of 2.1.  It dies with a "cannot emmulate instruction"
>message as its last breath.  Any fixes?  I know that most vendors have patched
>vp/ix to work with windows has at&t not yet done this or do I just not have
>the latest version of vp/ix?
>			-Thanks in Advance
>			-Dave

The following patch, sent by Tim Tyhurst, should work.

--------- Cut here -------------
Subject: win3.0 patch for ODT (probably others)
From: Ken J. Priddy <wwc1!pridke at hpspkla.spk.hp.com>
Date: Wed, 21 Nov 90 17:00:57 PST
To: sco-list at uunet.uu.net


I have gotten windows 3.0 installed on Open Desktop and it should work
the on VP/IX also.  Windows uses a combination of stack and flag manipulations
to determine the CPU type.  The invalid instruction is an operand size prefix.
What this patch does is forces the checking routine to think it's running
on an 8086 before it tries to do the operand size prefixes.

The following instructions are how I got windows 3.0 to work for me.

Copy disk 1 so that you can make changes.
rename kernel.exe to kernel.dat on the copy.
using debug or some such debuger change es:8b5a from 0B to 31 as follows
    debug kernel.dat
    d es:8b58 l8  /* should display 8B C4 0B C0 FF B1 20 D3 */
    e es:8b5a 31
    w
    q

now rename kernel.dat to kernel.exe
run setup from this copy it should work.  It does on mine.
-------------

-- 
Tim Tyhurst				tim at apteryx.looking.on.ca

Good luck!
-- 
Jean-Jacques P. Drolet         |    Snail: 2631 boul. Liegeois, Sainte-Foy
National Optics Institute      |           Quebec, Canada, G1W 1Z5
Phone:         +1 418 657 7006 | Internet: drolet at drolet.CAM.ORG
Home phone:    +1 418 651 3796 |     UUCP: uunet!drolet!drolet



More information about the Comp.unix.sysv386 mailing list