flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 27 Aug 2020, 13:19
Is it in the Intel manual?
|
|||
![]() |
|
Roman 27 Aug 2020, 13:22
|
|||
![]() |
|
revolution 27 Aug 2020, 13:26
Is it in the Intel manual? Because stackexchange is not a source for Intel instructions.
|
|||
![]() |
|
Roman 27 Aug 2020, 14:52
site godbolt.org
c++ long long fermat() { long long a = 0xff00ff00ff00ff00; return a; } Get x64 msvc 19 wine Code: mov rax, -71777214294589696 ; ff00ff00ff00ff00H mov QWORD PTR a$[rsp], rax mov rax, QWORD PTR a$[rsp] Get gcc compiler Code: movabs rax, -71777214294589696 |
|||
![]() |
|
revolution 27 Aug 2020, 14:54
Is it in the Intel manual? It just looks like an ordinary mov.
|
|||
![]() |
|
Roman 27 Aug 2020, 15:05
I think its some psevdo asm command.
And how i read movabs do usual mov |
|||
![]() |
|
Roman 27 Aug 2020, 15:07
When i see movabs i think do this:
Code: movabs rdx,'01234567' ;this good for compare 8 text symbols ! cmp rdx,[Text] jz .findText Because i think movabs work like mov, but load in rdx 64 bits number |
|||
![]() |
|
revolution 27 Aug 2020, 15:14
And still the unanswered question: Is it in the Intel manual?
![]() |
|||
![]() |
|
Roman 27 Aug 2020, 15:53
I dont know !
I only read about movabs and try to do this in Fasm. |
|||
![]() |
|
Furs 27 Aug 2020, 19:24
movabs is the 64-bit move. Just write:
Code: mov rax, 0xc001c0dedeadbeef |
|||
![]() |
|
revolution 28 Aug 2020, 04:12
Code: movabs equ mov ![]() |
|||
![]() |
|
bitRAKE 28 Aug 2020, 13:21
FYI: https://gcc.godbolt.org/ supports the Intel compiler as well, called ICC in the dropdown. It'll save a lot of head bumping to see the correct instruction mnemonics.
https://gcc.godbolt.org/z/evMGqh |
|||
![]() |
|
MaoKo 28 Aug 2020, 19:10
There is also a specific register to gnu as which is eiz. Eiz is not in the Intel man and it's equivalent to 0.
Code: ; as lea 0x00(%esi,%eiz,0x01),%esi ; fasm eiz equ 0x00 lea esi, dword [esi+eiz*0x01] |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.