flat assembler
Message board for the users of flat assembler.
Index
> Main > FASM Equivilant to =,<>,<=,>=? |
Author |
|
RedGhost 21 Jan 2006, 23:51
Killswitch wrote: I'm currently on the way to producing a expression to FASM program, I've managed to get +,-,*,/ operators producing some nice FASM code, but I don't know how to convert the following operators: =,<>.<= and >=. Could someone explain this to me, preferably with a floats example to! =, equal <>, not equal (less than or greater than, pascal syntax i think) <=, less than or equal >=, greater than or equal _________________ redghost.ca |
|||
21 Jan 2006, 23:51 |
|
Killswitch 21 Jan 2006, 23:59
Lol, sorry I wasn't clear! I meant the FASM equivilant of those operators. For exampe + is:
Add a,b What's the instruction for those operators? |
|||
21 Jan 2006, 23:59 |
|
RedGhost 22 Jan 2006, 00:02
cmp x, y
=, je <>, jne <=, jle >=, jge _________________ redghost.ca |
|||
22 Jan 2006, 00:02 |
|
Killswitch 22 Jan 2006, 00:05
Sorry to be a pain, but can you give me a specific example on how to use this - I get an error when I try to use any of those commands, the operators are invalid apperantly. Aren't they jump instructuons?
|
|||
22 Jan 2006, 00:05 |
|
silkodyssey 22 Jan 2006, 02:37
I think you will find this tutorial helpful. It uses nasm but nasm's syntax is similar to fasm's.
http://www.drpaulcarter.com/pcasm/ _________________ silkodyssey |
|||
22 Jan 2006, 02:37 |
|
Killswitch 22 Jan 2006, 12:03
Thanks!
|
|||
22 Jan 2006, 12:03 |
|
El_Choni 23 Jan 2006, 14:36
Code: cmp dword [v_variable], eax ; compare v_variable with the value in eax. And, then, jump to the adequate label: Code: je .equal_to ; Jump if v_variable is equal to eax, etc. jne .unequal_to jg .greater_than ; for signed numbers jl .less_than ; for signed numbers ja .above ; for unsigned numbers jb .below ; for unsigned numbers jge .greater_than_or_equal_to ; for signed numbers jle .less_than_or_equal_to ; for signed numbers jae .above_or_equal ; for unsigned numbers jbe .below_or_equal ; for unsigned numbers |
|||
23 Jan 2006, 14:36 |
|
Tomasz Grysztar 23 Jan 2006, 14:45
You may also find the table 2.1 useful.
|
|||
23 Jan 2006, 14:45 |
|
lilljocke 01 Feb 2006, 16:46
How do i compile an exe to my Pocket PC with Windows Mobile 2003 ? is it possible with this tool or is there any other compilers?
|
|||
01 Feb 2006, 16:46 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.