Skip to content

OceanOSdev/j2z80

 
 

Repository files navigation

Description

It is a maven plugin developed for academical purposes, the plugin allows to translate compiled JVM byte codes into Z80 instructions. It works as a pattern compiler with minimal optimization. Warning! It is not a JVM interpreter because it generates low-level native code for Z80. It doesn't contain any GC!

Screenshot

package com.igormaznitsa.test.helloworld;

import static com.igormaznitsa.test.helloworld.ZXScreen.*;

public class main {
    public static final void mainz(){
        setTextColor(COLOR_RED, COLOR_WHITE);
        clearWholeScreen();
        System.out.println("Hello world!");
        setTextColor(COLOR_YELLOW, COLOR_BLUE);
        clearServiceScreen();
        System.err.println("Written in Java!!!");
        setBorderColor(COLOR_RED);
    }
}

As the input it uses JAR files It takes a JAR file and translate all found classes into solid Z80 binary block which can be started on real device or under emulator.

It is not fully compatible with Java and has a lot of restrictions but it allows to use Java tool-chain and IDEs for Z80 developments.

License

The Sources published under GNU GPL 3

Donation

If you like the software you can make some donation to the author
https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif

About

Maven plugin to translate JVM bytecodes into Z80 commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.8%
  • Assembly 0.2%