Hello All,

I am a newbie to windows programming. I am writing a 16-bit code. I would like a function to return a dword and takes dword (memory address) as a parameter. This is what I did and the output of this returns only 16 bit. Can anyone give any suggestions?

val read_mem(address) -> calling function

_read_mem proc far
push bp;
push bp, sp;
push esi;
mov esi, ;
xor eax, eax;
mov eax, fs:;
pop esi;
pop bp;

I am expecting a 32-bit value, but this gives me only val[15:0]

Posted on 2004-06-25 16:47:58 by Pablo A Castillo
Well, HLA is a 32-bit only assembler for Windows and Linux, so I suspect you want to ask the question elsewhere....

As you're using MASM, perhaps a post to the "MAIN" sub-forum would be a better choice.

Randy Hyde
Posted on 2004-06-28 12:51:02 by rhyde