Copy of https://libz80.sourceforge.net