z80dis
A python disassembler library for Z80
Use
>>> from z80dis import z80
>>> z80.disasm(b'\xCB\xE7', 0)
'set 4,a'
Or, if you'd like access to the instruction internals, like opcode identifier, length, and operands:
>>> decoded = z80.decode(b'\xCB\xE7', 0)
>>> decoded.op
<OP.SET: 58>
>>> decoded.operands[0]
(<OPER_TYPE.IMM: 45>, 4)
>>> decoded.operands[1]
(<OPER_TYPE.REG_A: 1>,)
>>> decoded.len
2
The decoded structure can be supplied to disasm() to make a string:
>>> z80.disasm(decoded)
'set 4,a'
Release files for z80dis 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| z80dis-1.0.6.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| z80dis-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / z80dis-1.0.6.tar.gz
| Download URL | z80dis-1.0.6.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81ef509cded5d22aa53a52c87cf59cb894d28a717430e1b7b378556f469abff5
|
|
BLAKE2b-256 checksum How to use checksums |
f14444acf2a5496872c44ab5eef4e1fee4c8f02e20b2384818e2f629d89ca6b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
|
Release files / z80dis-1.0.6-py3-none-any.whl
| Download URL | z80dis-1.0.6-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c94db5b0f4e69c3f3252bca30ec8ff5f481cb6f23b5974d4d20a7f129132f6fa
|
|
BLAKE2b-256 checksum How to use checksums |
1bbeb501b94b75f34d9802472574bbf4de9a683180927746b7ce87c4ba067ac3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
|