rlm@43: package com.aurellem.gb; rlm@43: rlm@43: import java.nio.ByteBuffer; rlm@43: rlm@43: rlm@43: public class Gb { rlm@43: rlm@43: rlm@43: public Gb(){} rlm@43: rlm@43: rlm@43: /** rlm@43: * Hello World! This is just to test the native interface. rlm@43: */ rlm@48: public static native void sayHello(); rlm@43: rlm@43: /** rlm@43: * Run the emulator on a given rom rlm@43: * @param rom - the name of the rom. rlm@43: */ rlm@48: public static native void startEmulator(String rom); rlm@48: rlm@48: rlm@48: public static void loadVBA(){ rlm@48: System.loadLibrary("vba"); rlm@48: } rlm@43: rlm@50: rlm@53: public static native void step(); rlm@53: rlm@53: public static native void shutdown(); rlm@50: rlm@43: }