Open FrenkelS opened 10 months ago
Using Upper Memory Blocks requires assembly. Using inline assembly is compiler specific. Let's first decide on the compiler before we start using inline assembly.
Hey, I don't think you HAVE to use inline assembly to do that. I would try to do it with C first.
The way to get upper memory blocks is:
Step 1 and 2 can be done by using int86() with union REGS. Step 3 is the problem, because I don't know how to set AH and DX in C. Digital Mars and CC386 have the variable _EAX to set EAX directly, but I don't think Watcom and GCC have something similar in pure C.
just like in Commander Keen 4