a.d = 3
FLD qword [v_a] ;st0 but will be st1 after the instruction FLDPI
FLDPI ;st0
FADDP st1,st0
FSTP qword [v_a] ;store and pop st0 in a emptying the FPU stack
Debug a
Last edited by jack on Fri Apr 10, 2009 8:42 pm, edited 1 time in total.
If you're going to take ASM programming seriously then you need to know what instructions are available and what they do.
Get the manuals from intel, they're free downloads: http://www.intel.com/products/processor/manuals/
Volumes 2A and 2B are the ones you need most of the time as they describe all the opcodes in detail but the other volumes are also of use.
Once installed, you place a !INT 3 opcode just ahead of the code which is of interest and the debugger will start and allow you to single step while showing you the stack and all registers and a lot more.