Pairing 2 32Bit registers to make a 64Bit register 
Author Message
 Pairing 2 32Bit registers to make a 64Bit register

To fellow programmers,
how would i go about reading in a 64 bit floating point value and then
stroring it in two registers?? Any help would be greatfully appreciated.
thanks in advance.

-kYZer soZay-



Sun, 07 Apr 2002 03:00:00 GMT  
 Pairing 2 32Bit registers to make a 64Bit register

Quote:
>To fellow programmers,
>how would i go about reading in a 64 bit floating point value and then
>stroring it in two registers?? Any help would be greatfully appreciated.
>thanks in advance.

What about this algorithm?

- Allocate an 8 byte variable in memory
- Read the 64 bit value to this variable
- Move lower 32 bits of this variable to register #1
- Move higher 32 bits of this variable to register #2

And here is the code:

temp dw ? dup(1)

fstp qword ptr temp
fwait
mov eax,dword ptr temp
mov ebx,dword ptr temp[+2]




Sun, 07 Apr 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Error: Clock skew plus hold time of destination register exceeds register-to-register delay

2. Error: Clock skew plus hold time of destination register exceeds register-to-register delay

3. Using FP registers as additional GP registers

4. Status Register/Control Register

5. Why are registers still 32bit?

6. 32bit register access under debug.exe?

7. minimum delay for Register-to-Register path in DC

8. 32bit Registers

9. Borland C++ and 32bit registers in asm modules

10. 32bit register in Win16

11. 16bit...32bit...64bit...

12. 64bit MMX Memory copy vs 32bit nonMMX copy

 

 
Powered by phpBB® Forum Software