Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XMS 3.0 vs 2.0 question
#1
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!
Reply
#2
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.
Reply
#3
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?
Reply
#4
TASM or MASM would do. :*)

Just TASM asmfile.asm

Yeah, I liked Resistance. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#5
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?)
Reply
#6
You can use a hex editor. There is plenty of them listed in Google.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#7
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...
Reply
#8
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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)