flat assembler
Message board for the users of flat assembler.
Index
> Windows > 64 bit cmp big immediate size error ?! |
Author |
|
Roman 13 May 2020, 15:32
Fasm 1.73
cmp work with dword in 64 bits ? |
|||
13 May 2020, 15:32 |
|
pabloreda 13 May 2020, 15:38
I guess, you need a register, mov is the only instruction for load a 64 bits literal.
|
|||
13 May 2020, 15:38 |
|
Roman 13 May 2020, 15:58
Like this:
cmp qword [rsi],rax |
|||
13 May 2020, 15:58 |
|
CandyMan 13 May 2020, 17:22
possible is negative value
Code: cmp qword [rsi],0xFFFFFFFFF2345678 _________________ smaller is better |
|||
13 May 2020, 17:22 |
|
Tomasz Grysztar 13 May 2020, 21:06
Ali.Z wrote: that because intel architecture is not fully 64-bit, i believe last year or last two years intel expanded their bus from 48-bits to 54-bits. |
|||
13 May 2020, 21:06 |
|
bitRAKE 13 May 2020, 21:29
ALU is 64-bit, address space is canonical to the implemented bus lines.
https://stackoverflow.com/questions/25852367/x86-64-canonical-address _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
13 May 2020, 21:29 |
|
Ali.Z 13 May 2020, 22:04
_________________ Asm For Wise Humans |
|||
13 May 2020, 22:04 |
|
revolution 14 May 2020, 03:27
Internally the x86-64 architecture is fully 64-bit.
But the instruction encoding doesn't have allowance for 64-bit constants except for MOV REG,IMM64. The external address bus is not related to the internal bitness in any way. The address bus can be narrower or wider than the internal bitness. 32-bit CPUs have had a 24-bit, 32-bit, 36-bit or 40-bit external address bus. Also the external data bus doesn't necessarily match the internal bitness either. 32-bit CPUs have had 16-bit, 32-bit or 64-bit external data buses. And 16-bit CPUs have had 8-bit or 16-bit data buses. The latest batch of 64-bit CPUs can have narrower or wider data buses also. Note the the existence of XMM, YMM, etc. with the wide registers doesn't mean the CPU is 128-bit or 256-bit etc. It is still a 64-bit architecture. |
|||
14 May 2020, 03:27 |
|
bitRAKE 15 May 2020, 08:13
It turns out that I have a 128-bit compare macro in my support algorithms. Not that it's difficult to code - just being complete in response to the thread. Using a similar method one can create a macro to perform all kinds of extended operations with immediate data. fasmg makes this incredibly easy.
I like the graphic in the wiki article. |
|||
15 May 2020, 08:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.