Code Monkey home page Code Monkey logo

z80-emulator's Introduction

z80-emulator

A Z80 emulator written in Go. Under slow development :)

Goal: To be able to run and develop my z80-monitor as a console application on my own computer

Here are some thoughts on the project so far:

Features that are implemented

  • Loading of binary code
  • Control flow operations such as CALL, JP and RET, including conditional jumps
  • Operations for loading registers with values
  • Single stepping or bulk stepping through the instructions

Features that still need to be implementated

  • Loading of Intel HEX files
  • All arithmetic operations, including correct manipulation of the flag bits
  • Block I/O instructions
  • Prefixed instructions such as for using IX/IY, IX+d/IY+d and so on
  • Interrupts
  • SIO console
  • Interactive mode and its triggers
  • More CP/M BDOS functions

Interactive Mode

Setting special triggers will enter so called interactive mode. Without specifying any triggers, the program will just execute and the console will be used as SIO input and output. Here is a list of considered triggers (that should be specifiable on the command line):

  • Directly
  • After N clock cycles/instructions
  • Upon execution of specific OP-code?
  • When PC reaches a specific address
  • When any register contains a specific value
  • Halt was executed? (maybe not since execution should continue once and interrupt is recieved)

Upon entering interactive mode:

  • Display current register values in console
  • Allow certain commands to be executed, for example:
    • Continue execution
    • Single stepping of instructions
    • Examine and change memory contents
    • (Set register contents)
    • Set up / remove breakpoints, either register or PC value
    • Quit

z80-emulator's People

Contributors

antbern 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.