Generate NASM code
GPL-3.0 License
gen_nasm is tool for creating nasm project skeleton.
Developed in python code.
The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.
Table of Contents
Used next development environment
Currently there are four ways to install framework
Python is located at pypi.org.
You can install by using pip
#python3
pip3 install gen_nasm
Navigate to release page download and extract release archive.
To install gen-nasm run
tar xvzf gen-nasm-x.y.z.tar.gz
cd gen-nasm-x.y.z
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build -s --no-isolation --wheel
pip3 install dist/gen-nasm-x.y.z-py3-none-any.whl
rm -f get-pip.py
Navigate to release page download and extract release archive.
To install gen_nasm type the following
tar xvzf gen_nasm-x.y.z.tar.gz
cd gen_nasm-x.y.z/
# python3
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_data
python3 setup.py install_egg_info
You can use Dockerfile to create image/container.
gen_nasm requires next modules and libraries
gen_nasm is based on OOP
Generator structure
gen_nasm/
├── conf/
│ ├── gen_nasm.cfg
│ ├── gen_nasm.logo
│ ├── gen_nasm_util.cfg
│ ├── project.yaml
│ └── template/
│ ├── asmflags.template
│ ├── ldflags.template
│ ├── main.template
│ ├── makefile.template
│ ├── objects.template
│ └── sources.template
├── __init__.py
├── log/
│ └── gen_nasm.log
├── pro/
│ ├── __init__.py
│ ├── read_template.py
│ └── write_template.py
├── py.typed
└── run/
└── gen_nasm_run.py
Name | Stmts | Miss | Cover |
---|---|---|---|
gen_nasm/__init__.py |
71 | 12 | 83% |
gen_nasm/pro/__init__.py |
59 | 2 | 97% |
gen_nasm/pro/read_template.py |
53 | 2 | 96% |
gen_nasm/pro/write_template.py |
60 | 3 | 95% |
Total | 243 | 19 | 92% |
More documentation and info at
Copyright (C) 2024 by vroncevic.github.io/gen_nasm
gen_nasm is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 3.x or, at your option, any later version of Python 3 you may have available.
Lets help and support PSF.