No project description provided
Project description
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 Save
extension - Press
ctrl
+P
and 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alcom-1.3.0.tar.gz
(5.7 kB
view details)
Built Distribution
alcom-1.3.0-py3-none-any.whl
(6.5 kB
view details)
File details
Details for the file alcom-1.3.0.tar.gz
.
File metadata
- Download URL: alcom-1.3.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aadf8277bbdbd3c4155061c0947a5e82b9823cd2e178996c1a1d63611320f3e |
|
MD5 | e0b44bed4737973b014f25215df18da3 |
|
BLAKE2b-256 | 027e5c7024d1e2176363470a4c027a869f473b2ccf12f1f4196825431925556d |
File details
Details for the file alcom-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: alcom-1.3.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7782c9367b2b34f5f8571d9d507f7375444e8c644f3431b7b8ddacf819e4cf88 |
|
MD5 | 1a6eafe56a43173aa22a8bfc93e330bc |
|
BLAKE2b-256 | 3b846a1b1095231bc01ce4cb87d5ddb21fb421d8b22fc7705da21aaf031117d2 |