|
|
View Message | Back to Messages |
Plasma Mon Nov 13 2006 at 5:18 pm the problem is
assembly is platform-specific while C is not. The only way to use XMS functions in C is exactly the way they are used with assembly: call int 2F, get the XMM address, and then call the XMM with the parameters in the registers. The only way to directly manipulate registers in C is with inline assembly. You may find a third-party XMS library for C that does this for you, but there are no "standard" XMS functions for C.
I guess my question is why are you trying to convert everything to C? This is obviously real-mode DOS code, so it's not even close to being portable as it is.
- MASM611 - Hartmut (Sat Nov 11 2006 at 11:35 am)
|
|