phat code In theory, there is no difference between theory and practice. But, in practice...
Main

Projects

Downloads

Articles

Links

Forum

 

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.
 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.