Z80 disassembler library
Project description
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 still be made into a string:
>>> z80.disasm(decoded)
'set 4,a'
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
z80dis-1.0.3.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file z80dis-1.0.3.tar.gz.
File metadata
- Download URL: z80dis-1.0.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13b26a484d4e04eeb4a23b42ee8cd7f1b586dca6fbf75b69dc9f982cd6c52921
|
|
| MD5 |
6e3d8be83f80eb64723820b37fe94cac
|
|
| BLAKE2b-256 |
63a4936eb1a44d10bf4b2f617b0c65db2973ac332a756d6ee1365894ea721cbc
|
File details
Details for the file z80dis-1.0.3-py3-none-any.whl.
File metadata
- Download URL: z80dis-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27a0293b993acbc1e7765c5431155ad7c0c0a36a34d273901f611e7689d2f09e
|
|
| MD5 |
4c646eb334cfa6db64b926022d48da18
|
|
| BLAKE2b-256 |
95be50a952abb2148b2626fef6ebc5e5f0aa2d45ee1d9a4ccc5e6eb16a96d2d2
|