https://github.com/gmorales08/asmalign
A program written in ANSI C that structure and align Assembly programs for better visualization
https://github.com/gmorales08/asmalign
assembly c z80
Last synced: about 2 months ago
JSON representation
A program written in ANSI C that structure and align Assembly programs for better visualization
- Host: GitHub
- URL: https://github.com/gmorales08/asmalign
- Owner: gmorales08
- License: gpl-3.0
- Created: 2023-09-26T12:06:14.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T10:40:15.000Z (over 2 years ago)
- Last Synced: 2025-01-11T11:17:04.774Z (over 1 year ago)
- Topics: assembly, c, z80
- Language: C
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AsmAlign
AsmAlign is a command line tool for format files written in asembly language. AsmAlign align the instructions and the arguments in the same column for better visualization.
## Usage
```
asmAlign [options]
```
## Options
- **-i\** Specifies the lenght of the instructions. It must be a value between 1 and 9. If doesnt specify, the default value is 4.
- **-s\** Specifies the separation between the instruction and the arguments. It must be a value between 1 and 9. If doesnt specify, the default value is 1.
- **-u** Change all instructions to upper case.
- **-t** Trim white spaces between arguments.
- **--usage** Show the usage information.
### Prebuilt options by architecture
- **--z80** For Z80 asembler. Equals -i4 -s1.
### Visual information
```
./asmAlign -i4 -s1
```

```
./asmAlign -i5 -s2
```

## Example
Using AsmAlign with the file test.asm
The program align the file and generates a backup file with the old content.
```
./asmAlign test.asm
```

Example with `-u` and `-t` options
```
./asmAlign test.asm -u -t
```
