I’ve been quiet for a while. Reason is that I’ve been cooking zboy-game, a toolchain/framework that builds DMG ROMs from Zig code. GBC support should be easy to add later.
Standing on the shoulders of zig-sm83, llvm-z80 and gbdk-2020.
Discussion
I’ve been quiet for a while. Reason is that I’ve been cooking zboy-game, a toolchain/framework that builds DMG ROMs from Zig code. GBC support should be easy to add later.
Standing on the shoulders of zig-sm83, llvm-z80 and gbdk-2020.
@bbbbbr Thanks!
So, zig emits LLVM IR, llvm-z80's llc lowers it to sdas-syntax SM83 asm, then lcc assembles with sdasgb, links with sdldgb and makebin writes the .gb.
And yes, it links GBDK's crt0 and libs: the engine calls GBDK functions directly, with small C shims for the OLDCALL ones.
I am not familiar with gbtoolsid, but I’ll have a look at it.
@fahien This is cool! If it's using llvm-z80, what is the gbdk part of the toolchain providing?
Is it using the gbdk library and crt?
Also curious if there's anything reliably finger-printable gbtoolsid could use to identify roms made with this (https://github.com/bbbbbr/gbtoolsid).
GitHub - bbbbbr/gbtoolsid: A command line app for identifying tools used to build Game Boy ROMs