https://github.com/atiep/pyasm
An assembler made using Python without using any external modules
https://github.com/atiep/pyasm
assembler intel pyasm python repl x16 x86
Last synced: 3 months ago
JSON representation
An assembler made using Python without using any external modules
- Host: GitHub
- URL: https://github.com/atiep/pyasm
- Owner: AtieP
- Created: 2020-03-22T20:09:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-23T14:12:27.000Z (over 6 years ago)
- Last Synced: 2025-05-14T17:12:42.048Z (about 1 year ago)
- Topics: assembler, intel, pyasm, python, repl, x16, x86
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pyasm
An assembler made using Python. It exports to binary.
# How to use it
Download Python 3. Then, to run the file, use `python pyasm.py [output file]`. Done!
# Valid instructions
`mov r8, imm8`
`mov r16, imm16`
`cli`
`hlt`
`int3`
`into`
`int xx`
`db byte`
`jmp `
`fill `
`fillu `
`inc r8`
`inc r16`
`dec r8`
`dec r16`
**Note that all numbers are in hexadecimal, except for fill and fillu.**
**Example of a label: `label:`**
# Valid preprocessor directives
`#incbin "binary file"`
# I want to help to the development!
Open an issue or send a pull request.