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

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

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.