flat assembler
Message board for the users of flat assembler.

flat assembler > Main > All instructions of FASM -- NEW in assembly programation

Author
Thread Post new topic Reply to topic
demerzel



Joined: 03 Dec 2018
Posts: 3
Hello,

I'm learning assembly programing with fasm and i read many differents tutos pdf and see videos.

these days i'm on suject of conditionnal jump and i see many jump on tuto for fasm but looking on another pdf ( of 64 assembly programation but not on flat assembler) i see another instruction of conditionnal jump like ( jnae jnb je jne jnbe etc...)

My two questions are:
This instruction exist on fasm ?
And where i can find all existing fasm instruction ? ( i look on official documentation but impossible to find this list)

Thanks you by advance.
BR
Post 03 Dec 2018, 18:43
View user's profile Send private message Reply with quote
demerzel



Joined: 03 Dec 2018
Posts: 3
when I talk about instruction I should maybe say mnemonic instead
Post 03 Dec 2018, 18:51
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 211
Location: Russian Federation, Sochi
This instruction exist on fasm ? - all of existed instruction mnemonics (for x86? x86-64) are realized in fasm, so no one of them you havent to do via data definition directives, like it could be in other assemblers.

All existed fasm instructions - are same as all existed intel(AMD) instructions. Fasm has no specifiic processor instructions.
But everithing what not existed in fasm could be realized via macros - but macros are not instructions. macros could represent one instruction and be synonim of instruction. Or they could have numerous of instructions or even no one.
Post 03 Dec 2018, 20:21
View user's profile Send private message Send e-mail Reply with quote
demerzel



Joined: 03 Dec 2018
Posts: 3
Thanks you ProMiNick, this helps me lot Smile
i found the mnemonics for x86 here : https://fr.wikipedia.org/wiki/Jeu_d%27instructions_x86
Post 03 Dec 2018, 20:35
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2672
Location: dank orb
In the Intel manuals they are grouped in Jcc.
http://www.felixcloutier.com/x86/Jcc.html

Other's have had the same problem locating them.
https://stackoverflow.com/questions/39567942/what-is-the-jcc-instruction-in-x86
Post 04 Dec 2018, 01:04
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7001
Location: Kraków, Poland
The cc conditions for Jcc are also listed in the fasm's manual: https://flatassembler.net/docs.php?article=manual#_2.1

In general, however, the Intel manuals should be the first source of information. Refer to fasm's manual only to find out if it uses syntax variants different from the Intel standard.
Post 04 Dec 2018, 07:56
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 93


Description:
Filesize: 149.84 KB
Viewed: 289 Time(s)

opcodes.png


Post 04 Dec 2018, 12:00
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1258
Location: In a West End town
Is there something similar for arm architecture?
Post 05 Dec 2018, 09:12
View user's profile Send private message Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 93
Hi!


Description:
Filesize: 29.07 KB
Viewed: 172 Time(s)

схема1.png


Post 06 Dec 2018, 05:29
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7001
Location: Kraków, Poland
Mikl___: thank you! This schematic is kind of beautiful when you know what's going on.
Post 06 Dec 2018, 09:43
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 93
To make it clearer, consider the command code jns == 79h
Code:
        |opcode|condition code
--------+------+-+-+-+-----
mnemonic| jcc  |a|b|c|invert
--------+------+-+-+-+-----
  jns   | 0111 |1|0|0|  1    
Post 06 Dec 2018, 12:11
View user's profile Send private message Visit poster's website 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-2018, Tomasz Grysztar.

Powered by rwasa.