Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

z80dis-1.0.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for z80dis-1.0.3.tar.gz
Algorithm Hash digest
SHA256 13b26a484d4e04eeb4a23b42ee8cd7f1b586dca6fbf75b69dc9f982cd6c52921
MD5 6e3d8be83f80eb64723820b37fe94cac
BLAKE2b-256 63a4936eb1a44d10bf4b2f617b0c65db2973ac332a756d6ee1365894ea721cbc

See more details on using hashes here.

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

Hashes for z80dis-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 27a0293b993acbc1e7765c5431155ad7c0c0a36a34d273901f611e7689d2f09e
MD5 4c646eb334cfa6db64b926022d48da18
BLAKE2b-256 95be50a952abb2148b2626fef6ebc5e5f0aa2d45ee1d9a4ccc5e6eb16a96d2d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page