flat assembler
Message board for the users of flat assembler.

Index > Main > Please help me!

Author
Thread Post new topic Reply to topic
bteddy1



Joined: 11 Mar 2019
Posts: 9
bteddy1
Hello,
Newbie here. Everything I type in returns an error "illegal instruction".
The documents states that FASM is based on Intel Syntax with a few changes.
I am not getting it. I need a [b][u]FASM specific cheat sheet[/u][/b].

Something that list all;
directives - (both common assembly and FASM specific)
instructions
preprocessor
macroinstructions
symbolic constants
AS they are formatted for FASM.

Also they should be one each for dos, windows, and Linux.
Not mixed/combined.

FASM has been in development over 20 years, there should be something like this someware!?!?

attached:cheat sheet example[/u]


Description: Intel syntax Cheatsheet
Download
Filename: Programming - x86 Instructions 1.pdf
Filesize: 47.64 KB
Downloaded: 110 Time(s)

Post 15 Jan 2022, 16:16
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 481
Location: Russia
macomics
bteddy1 wrote:
Everything I type in returns an error "illegal instruction".
It would be better to give an example of the text in which you have an error. I'm afraid that having such a certificate will not help you. Moreover, the fasm documentation is written succinctly and clearly here.
Post 15 Jan 2022, 16:44
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 18472
Location: In your JS exploiting you and your system
revolution
There are examples programs in the fasm zip download file.

Look for the "examples" folder.

Once you have set the "include" environment variable it should all assemble without errors.
Post 15 Jan 2022, 17:01
View user's profile Send private message Visit poster's website Reply with quote
bteddy1



Joined: 11 Mar 2019
Posts: 9
bteddy1
The examples do not have all the instructions, directives, preprocessor,
macroinstructions, symbolic constants.


To;macomics,

I am looking for all (not just one) of the Intel syntax that is not standard.
Just the syntax that was modified for FASM with out all the additional dialog in the manuals, and yes, I downloaded everything I could from the website and some extra from the forum and youtube. How could you say that basic un cluttered information would not help anyone. Not everyone is starting from a position of experience with multiple languages and systems.

Your "succinctly and clearly" is cluttered and obfuscated to me.
I am looking for "instruction" "three spaces" "destination" "comma" "source" "semicolon" "comments"
Post 16 Jan 2022, 16:16
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 481
Location: Russia
macomics
Intel SDM with all instructions. For more detailed information on commands and directives, it is worth buying and reading one of the many books on assembler for the Intel architecture.
Post 16 Jan 2022, 16:21
View user's profile Send private message Reply with quote
al_Fazline



Joined: 24 Oct 2018
Posts: 19
al_Fazline
bteddy1, why not to read FASM manual? It's actually what I use as reference for intel instructons, even when actually writing with NASM
Post 18 Jan 2022, 02:24
View user's profile Send private message Reply with quote
bteddy1



Joined: 11 Mar 2019
Posts: 9
bteddy1
[quote] bteddy1, why not to read FASM manual? It's actually what I use as reference for intel instructons, even when actually writing with NASM[/quote]

What makes you think I haven't? You think "well, it makes sense to me" "I use it all the time" Well I have read the manual multiple times and it dosen't make sense to me. It doesn't flow, It doesn't click. Something is missing. The examples will compile if I open them and compile. But if I type it in my self and compile I get "illegal instruction"
Post 18 Jan 2022, 19:47
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 18472
Location: In your JS exploiting you and your system
revolution
Show the code that gives the error.

We can help you fix it.
Post 18 Jan 2022, 19:56
View user's profile Send private message Visit poster's website Reply with quote
FlierMate



Joined: 21 Jan 2021
Posts: 214
Location: Malaysia
FlierMate
It reminds me of saving the .asm source file as UTF-8 encoding with Notepad for Windows and keep getting "illegal instruction" error message from flat assembler.

Make sure you save the source file as plain text or ANSI. Well, this is just one of a few reason you would get "illegal instruction".
Post 18 Jan 2022, 20:24
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 481
Location: Russia
macomics
FlierMate wrote:
It reminds me of saving the .asm source file as UTF-8 encoding with Notepad for Windows and keep getting "illegal instruction" error message from flat assembler.
How did you do it. fasm1 normally compiles UTF-8 sources. Maybe Notepad inserts a BOM for UTF-8 at the beginning.
Post 18 Jan 2022, 20:51
View user's profile Send private message Reply with quote
FlierMate



Joined: 21 Jan 2021
Posts: 214
Location: Malaysia
FlierMate
macomics wrote:
FlierMate wrote:
It reminds me of saving the .asm source file as UTF-8 encoding with Notepad for Windows and keep getting "illegal instruction" error message from flat assembler.
How did you do it. fasm1 normally compiles UTF-8 sources. Maybe Notepad inserts a BOM for UTF-8 at the beginning.


Yes, people have been complaining about Notepad for Windows with its BOM marker, and suggest alternative text editor like Notepad++.
My previous issue with Unicode is here.
Post 18 Jan 2022, 21:24
View user's profile Send private message 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 GitHub, YouTube, Twitter.

Website powered by rwasa.