flat assembler
Message board for the users of flat assembler.

Index > Main > asm 64bits (registers)

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji
Code:
r8     r9b     r10b   r13b   
r9     r9d     r10d   r13d   
r10    r9l     r10l   r13l   
r11    r9w     r10w   r13w   
r12    rax     r11b   r14b   
r13    rbp     r11d   r14d   
r14    rbx     r11l   r14l   
r15    rcx     r11w   r14w   
r8b    rdi     r12b   r15b   
r8d    rdx     r12d   r15d   
r8l    rip     r12l   r15l   
r8w    rsi     r12w   r15w   
       rsp                   
    

I do not know assembler 64 bit (very little).
Of all possible registers in 64 bits, which are those that can be used in "addressing mode".
For example, with 32 bits asm, "al, ah, bl, bh ..." are not allowed ... with 64 bits asm which are allowed ?

thank you.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 09 Sep 2010, 19:46
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7725
Location: Kraków, Poland
Tomasz Grysztar
In fasm's TABLES.INC you can find "address_registers" table. It contains all the register names than can be allowed in addressing.
Post 09 Sep 2010, 21:21
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji

fantastic, thank you.
it's just what I need.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 09 Sep 2010, 22:38
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17287
Location: In your JS exploiting you and your system
revolution
If you use the TABLES.INC structures for the register and instruction detection then Wink can also work with fasmwarm without modification.
Post 10 Sep 2010, 04:41
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji

no, i do not use the TABLES.INC structures.
It was just to know all the register names than can be allowed in 64bits addressing.
I don't use anything from fasmw, the Wink_parser is 100% "Wink".
I work only on the lines that "PREPROCE.INC" sends to "proc fasm_syntax.
Wink intercepts the lines at this level!
Having say that, it's more complex that only this sentence ! Smile
(the compiler is also modified to accept multiline comments.)

well, back on topic,
When a jump_opcode is used, then i would like to accept only the words allowed in addressing.
Once a word not allowed in the addressing is used, the highlighting stops.
like this,


Image

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 10 Sep 2010, 09:11
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.