Skip to content

dmah42/z80cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5a956e5 · May 22, 2020

History

13 Commits
May 22, 2020
May 28, 2018
Jun 29, 2017
May 22, 2020
Jul 11, 2017
May 25, 2018
May 22, 2020
Jul 11, 2017

Repository files navigation

z80cpp

z80 code in c++.

all z80 compilers are C (or you can use assemblers). I want to use C++.

strategy: write some C++ that optimizes beautifully (thanks, https://gcc.godbolt.org!), compile to x86, convert to z80.

it's that or write a compiler backend for z80 for llvm/clang.

Instructions

$ make

Will compile game.cc to x86 assembly (on x86 platforms), compile the x86z80 tool, and run it against the assembly. This will generate game.z80 which can (in the future) be assembled into an executable for ZX spectrum.

$ make test

This will run the x86z80 translator against the test.asm file. It does not attempt to verify the output.

About

z80 code in c++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published