Skip to content

lunar-sh/z80emu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

z80emu

  ____  ___  ___  ______  _____  __
 /_  / ( _ )/ _ \/ __/  |/  / / / /
  / /_/ _  / // / _// /|_/ / /_/ / 
 /___/\___/\___/___/_/  /_/\____/  

This repository contains a WIP (work in progress) implementation of a Z80 emulator (written in Typescript), supporting up to 150+ basic opcodes. It is intended to be an educational project to show how one would approach simulating the behaviour of an 8-bit microprocessor.

The simulator interface steps through a compiled binary and dumps the contents of each Z80 register after each fetch, decode, execute instruction cycle to the console.

Note: Z80 assembly programs are intended to be compiled with z80asm

Files:

  • z80.ts - core implementation
  • main.ts - sim interface

Signature

+---------------------------------------+
|     .-.       .-.       .-.           |
|    /   \     /   \     /   \     +    |
|         \   /     \   /     \   /     |
|          "_"       "_"       "_"      |
|                                       |
|  _   _   _ _  _   _   ___   ___ _  _  |
| | | | | | | \| | /_\ | _ \ / __| || | |
| | |_| |_| | .` |/ _ \|   /_\__ \ __ | |
| |____\___/|_|\_/_/ \_\_|_(_)___/_||_| |
|                                       |
|                                       |
| Lunar RF Labs                         |
| Email: root@lunar.sh                  |
|                                       |
| Research Laboratories                 |
| OpenAlias (BTC, XMR): lunar.sh        |
| Copyright (C) 2022-2024               |
+---------------------------------------+

About

Experimental Zilog Z80 emulator core.

Topics

Resources

Stars

Watchers

Forks