Posts: 36
Threads: 12
Joined: Feb 2003
While working on a new project, based on the RT Engine of Enhanced Creations, I face the XP compatibility problem once again.
All WinNT-based operating systems don't support XMS 3.0. However, they support version 2.0 as well.
When I compile my program, it is set to use XMS 3.0. My question is: how can I set this program to use XMS 2.0?
Is there anybody who can help me, or refer to a tutorial?
Thanks!
Posts: 1,752
Threads: 21
Joined: Jun 2002
Just remove the check for XMS 3.0. (RTE only uses XMS 2.0 functions, yet they still check for 3.0. I have no idea why...)
In rte.asm, change this:
Code:
CALL [XMSfunc] ; Gets XMM version number
.IF AH < 3
MOV AX,2 ; Error 2: Old XMM version not supported
RET
.ENDIF
to:
Code:
CALL [XMSfunc] ; Gets XMM version number
.IF AH < 2
MOV AX,2 ; Error 2: Old XMM version not supported
RET
.ENDIF
If you don't want to reassemble rte.asm, you can modify the obj directly by changing the byte at offset 1115 (45Bh) from 03 to 02.
Posts: 36
Threads: 12
Joined: Feb 2003
I opened RTE.ASM in notepad and found the code.
I suppose I need a version of assembler to assemble this file. Is there a adress where I can download it?
Or else, is there a way to modify the compiled executable, like you did with Resistance?
Posts: 3,288
Threads: 167
Joined: Nov 2001
TASM or MASM would do. :*)
Just TASM asmfile.asm
Yeah, I liked Resistance. :*)
Posts: 36
Threads: 12
Joined: Feb 2003
Well, everytime I try to assemble rte.asm TASM gives around 2500 errors saying "unrecognized instruction".
(I used TASM 3.2)
Quote:If you don't want to reassemble rte.asm, you can modify the obj directly by changing the byte at offset 1115 (45Bh) from 03 to 02.
What is the most easy way to modify the rte.obj (I mean, do I have to code a small prog in basic which opens the file and changes the byte?)
Posts: 6,419
Threads: 74
Joined: Mar 2002
You can use a hex editor. There is plenty of them listed in Google.
Posts: 36
Threads: 12
Joined: Feb 2003
Thanks for the advice.
I am making progress. After modifying the .obj I created the .lib and .qlb
However, using this new library, the engine crashes :???:
I keep trying...
Posts: 36
Threads: 12
Joined: Feb 2003
Yes, I've got the rte engine working. I succeed to create the library's and it's working on winXP.
Once again, thanks for the useful tips!