Answer the question
In order to leave comments, you need to log in
How to put a value from a register into memory if the register contains an address?
.cpp : extern "C" double* __fastcall function(double *x);
.asm :
.386
.MODEL FLAT
.DATA
x DD ?
lnx DQ ?
.CODE
@[email protected] PROC
MOV lnx, [ECX]
FINIT
FLD lnx
MOV EAX, OFFSET lnx
RET
@[email protected] ENDP
END
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question