Giter Site home page Giter Site logo

ez80-disassembler's Introduction

ez80 Disassembler

This is a quickly made (and pretty blursed) ez80 disassembler.
It takes in hexadecimal ascii coded bincode (whitespace authorized), and it spits out the corresponding assembly.
It assumes adl mode is on, which means it only handles 8 bit and 24 bit wide constants.

One of its quirks is that it puts the suffix before the instruction. For example: push.s hl becomes 52 e5 to which the decompiler gives .s push hl.

Build instructions

There no are dependencies beyond a C compiler:

$ gcc main.c -o ez80dump

Usage

Feed it bincode through stdin.

$ cat file | ./ez80dump

Content of file:

e1 d1 c1
c5 d5 e5
21 00 00 00
19 09
c9

Output:

pop  hl
pop  de
pop  bc
push bc
push de
push hl
ld hl, 0x000000
add hl, de
add hl, bc
ret

Sources:

Official ez80 CPU User Manual (pages 61-384)

Full ez80 Opcode List

ez80-disassembler's People

Contributors

davawen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.