flat assembler
Message board for the users of flat assembler.
Index
> Main > Using doubles (64 bit math) |
Author |
|
roticv 14 Aug 2004, 04:27
Try bitrake's snipplet
http://www.bitrake.com/phpBB2/topic.php?t=62 I think using fpu for 64bit integer maths is a bad idea |
|||
14 Aug 2004, 04:27 |
|
tom tobias 14 Aug 2004, 07:14
you may wish to employ some of the newer registers, sorry, I have no experience with them, but I believe they are 128 bits wide. Regards, tom
|
|||
14 Aug 2004, 07:14 |
|
vid 20 Aug 2004, 20:05
tom: yes, they are, but they are purposed to work with multiple number at the same time, not on one big. MMX is for integers (whole numbers), SSE for floats. FPU works with single floating point numbers.
crc: chapter 8 (maybe 9) of my tuts will be about this, but you probably wouldn't want to wait for it (few month maybe). Anyway, check "adc" and "sbb" instructions about adding and substracting. |
|||
20 Aug 2004, 20:05 |
|
crc 21 Aug 2004, 00:32
Quote: chapter 8 (maybe 9) of my tuts will be about this, but you probably wouldn't want to wait for it (few month maybe). Anyway, check "adc" and "sbb" instructions about adding and substracting. Thank you for the pointers. I'm (slowly) starting to make sense of 64 bit numbers. Vid, I'll watch for chapters 8 & 9 of your tutorial; this is one aspect of assembly programming that I'm finding quite confusing :-/ |
|||
21 Aug 2004, 00:32 |
|
crc 22 Aug 2004, 06:04
I *think* I have addition and subtraction working now, but I have no idea how to display the result The value is in EDX:EAX Does anyone know how to display this in a console (Linux, FreeBSD, Windows, or BeOS?)
|
|||
22 Aug 2004, 06:04 |
|
vid 22 Aug 2004, 11:19
if you want display it decimal, you need division and modulo operations.
by the way, there is something about combining two number into one in my tutorial, maybe it would help. |
|||
22 Aug 2004, 11:19 |
|
f0dder 23 Aug 2004, 13:13
http://srcvault.scali.eu.org/cgi-bin/Syntax/Syntax.cgi?PrintRadix.asm
Have a look around the source vault, there's a number of useful routines there. |
|||
23 Aug 2004, 13:13 |
|
Mac2004 09 Sep 2004, 11:57
Hi!
Take a look at Randall Hyde's Art of Assembly book. Randall's teaching how to do 64bit and 128bit math. That could help you. Regards Mac2004 |
|||
09 Sep 2004, 11:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.