So now my code will place the memory map in memory at a segment offset by 500. But instead of doing this i want to make a structure in C, and fill the structure with the values generated by the memory map function I am running in .asm. I am new to structures so this is difficult for me. I am trying to define the structure in C like this:
Code:
struct map {
int baseaddress;
int length;
DWORD type;
} my_map;
struct map *p = &my_map;
and in assembly i am changing the di = 500h to this:
Code:
mov di, &my_map ;500h ;point this to structure
than i want to increase the pointer to the next entry as needed to fill the struct properly.
clearly what i have does not work. can you provide any suggestions?