Crates.io | asmfmt |
lib.rs | asmfmt |
version | |
source | src |
created_at | 2024-02-26 12:07:18.357127+00 |
updated_at | 2025-03-20 16:22:12.198796+00 |
description | A formatter designed for programs in assembly language with AT&T syntax |
homepage | |
repository | https://gitlab.com/mateolafalce/asmfmt |
max_upload_size | |
id | 1153487 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A formatter designed for programs in assembly language with AT&T syntax.
asmfmt <file.asm>
cargo install asmfmt
asmfmt update
global _start
section .rodata
nl: db 10
nl_len: equ $ - nl
section .text
_start:
call new_line
call exit
new_line:
mov rax, 1 ; write(
mov rdi, 1 ; STDOUT_FILENO,
mov rsi, nl ; text,
mov rdx, 1 ; sizeof(text)
syscall ; );
ret
exit:
mov rax, 60 ; exit(
mov rdi, 0 ; EXIT_SUCCESS
syscall ; );
global _start
section .rodata
nl: db 10
section .text
_start:
call new_line
call exit
new_line:
mov rax, 1 ; write(
mov rdi, 1 ; STDOUT_FILENO,
mov rsi, nl ; text,
mov rdx, 1 ; sizeof(text)
syscall ; );
ret
exit:
mov rax, 60 ; exit(
mov rdi, 0 ; EXIT_SUCCESS
syscall ; );