flat assembler
Message board for the users of flat assembler.
Index
> Main > qword size in comparison |
Author |
|
Tomasz Grysztar 19 Jan 2006, 07:52
With "use16"/"use32" it won't work, because there's not such instruction.
And with "use64" it won't work too, because AMD64 allows only signed 32-bit immediates to be used in 64-bit instructions. |
|||
19 Jan 2006, 07:52 |
|
Madis731 19 Jan 2006, 09:48
You can do this:
Code: cmp dword[buf], '1234' Jcc labelXXXX cmp dword[buf+4], '5678' Jcc labelXXXX ; same condition Although it may get frustrating if you want some math done on that. Then you must choose the order in which you compare very carefully. For equality this should do the trick. Or use MMX (64bit) or SSE (128bit) instructions. BUT you must remember that 128bit comparison is NOT possible even in this case (read: possible with tricks involved). |
|||
19 Jan 2006, 09:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.