Aligner of comment separator in asm files
bash
cargo install salign
bash
git clone https://github.com/clowzed/salign.git
cd salign.git
cargo build --release
sudo mv ./target/release/salign /usr/bin
bash
salign main.asm
asm
.model tiny ;set memory model
.dosseg
.data
msg db "hello, world!", 0dh, 0ah, '$'; message
.code
.startup
mov ah, 09h ; moves 09h into ah
mov dx, offset msg
int 21h ;run int 21h
mov ah, 4ch
int 21h ;exit
end
With -e flag ```asm .model tiny ; set memory model .dosseg ; .data ; msg db "hello, world!", 0dh, 0ah, '$' ; message .code ; .startup ; mov ah, 09h ; moves 09h into ah mov dx, offset msg ; int 21h ; run int 21h mov ah, 4ch ; int 21h ; exit end ;
```
Without -e flag
asm
.model tiny ; set memory model
.dosseg
.data
msg db "hello, world!", 0dh, 0ah, '$' ; message
.code
.startup
mov ah, 09h ; moves 09h into ah
mov dx, offset msg
int 21h ; run int 21h
mov ah, 4ch
int 21h ; exit
end
| Short | Long | What |
|-------|--------------------------------|-----------------------------------------------------------------|
| -h | --help | Prints help information |
| -V | --version | Prints version information |
| -e | --place-separator-on-each-line | If setted we will place the separator on each line |
| -l | --lmargin