ALCOM
Comments aligner for assembler
Code factor
Platforms
Packet info
Installation
From PyPi
py -m pip install alcom
pip3 install alcom
Usage
CLI Options
| short | long | description | help |
|---|---|---|---|
| -f | --file | Sets filename for aligning | If not setted it will align all files in directory recursively |
| -nbc | --align_no_blank_comments | Lave no blank comments | If not setted no splitters would be placed after codeline |
Running
alcom
alcom -f asmfile.asm
alcom -f asmfile.asm -nbc
Example
Before
.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
After
.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 ;
Tips
VS Code
To add auto aligning after save:
- Add
Run on Saveextension - Press
ctrl+Pand search forPreferences: Open Workspace Settings (JSON) - Add code below into the opened file and save
{
"emeraldwalk.runonsave": {
"commands": [
{
"match": ".asm",
"cmd": "alcom -nbc"
}
]
}
}
- You are done!
TODO
- [❌] Add marging options
- [❌] Issue that comments separator cam be placed in strings
Metadata
Release files for alcom 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alcom-1.3.0.tar.gz | 5.7 kB | Without provenance | Details for alcom-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alcom-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for alcom-1.3.0-py3-none-any.whl |
Total release size: 12.2 kB
Release files / alcom-1.3.0.tar.gz
| Download URL | alcom-1.3.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8aadf8277bbdbd3c4155061c0947a5e82b9823cd2e178996c1a1d63611320f3e
|
|
BLAKE2b-256 checksum How to use checksums |
027e5c7024d1e2176363470a4c027a869f473b2ccf12f1f4196825431925556d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
|
Release files / alcom-1.3.0-py3-none-any.whl
| Download URL | alcom-1.3.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7782c9367b2b34f5f8571d9d507f7375444e8c644f3431b7b8ddacf819e4cf88
|
|
BLAKE2b-256 checksum How to use checksums |
3b846a1b1095231bc01ce4cb87d5ddb21fb421d8b22fc7705da21aaf031117d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
|
Security for alcom 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.