An open API service indexing awesome lists of open source software.

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

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
```

![example1](doc/example1.png)

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

![example1](doc/example2.png)

## 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
```
![example1](doc/asmAlign.png)

Example with `-u` and `-t` options

```
./asmAlign test.asm -u -t
```
![example1](doc/asmAlign-u-t.png)