Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions pages/linux/fasm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# fasm

> Flat Assembler — fast and lightweight assembler for x86 architecture.
> Generates ELF executables or flat binaries from assembly source code.
> More information: <https://flatassembler.net>.
- Assemble an x86 or x86-64 assembly file into a binary (default output is `a.out` or specified name):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Assemble an x86 or x86-64 assembly file into a binary (default output is `a.out` or specified name):
- Assemble an x86 or x86-64 assembly file into a binary (default output is `a.out`):


`fasm {{path/to/source.asm}}`

- Assemble and specify the output file name:

`fasm {{path/to/source.asm}} {{path/to/output}}`

- Assemble a 64-bit ELF Linux executable:

`fasm {{hello.asm}}`

Comment on lines +15 to +18
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Assemble a 64-bit ELF Linux executable:
`fasm {{hello.asm}}`

Redundant with the first example

- Show FASM version:

`fasm -v`

- Display help:

`fasm`
Comment on lines +19 to +25
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Show FASM version:
`fasm -v`
- Display help:
`fasm`
- Display help:
`fasm`
- Display version:
`fasm -v`

As per style guide