Mail Archives: djgpp/1994/09/25/19:41:58
'lo there.
I've got to do two things with es:di. First I have to get it to point
to a function I want called by a real-mode function, and second I have to
get it to point to an array of data.
I have a feeling that there will be a different approach for the two
problems. I'm thinking I'll need some kind of real-mode function that
will call my protected-mode one for the first problem and I'll need a
function that allocates lower 640k memory and copies to it for the second
one. For both problems, I'll need to figure out how to load es:di with a
segment and offset.
Also, I need to make sure that the registers will be preserved when my
function is called and somehow need to access them - should I use the
inline assembler or is there a C function to load the registers into a
struct?
Thanksalot for any help.
Kim
- Raw text -