Mercurial > vba-clojure
annotate java/src/com/aurellem/gb/Gb.java @ 48:75349da4c344
clojure hello world works
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 07 Mar 2012 00:36:53 -0600 |
parents | 9d3769896d66 |
children | e643f55bc886 |
rev | line source |
---|---|
rlm@43 | 1 package com.aurellem.gb; |
rlm@43 | 2 |
rlm@43 | 3 import java.nio.ByteBuffer; |
rlm@43 | 4 |
rlm@43 | 5 |
rlm@43 | 6 public class Gb { |
rlm@43 | 7 |
rlm@43 | 8 |
rlm@43 | 9 public Gb(){} |
rlm@43 | 10 |
rlm@43 | 11 |
rlm@43 | 12 /** |
rlm@43 | 13 * Hello World! This is just to test the native interface. |
rlm@43 | 14 */ |
rlm@48 | 15 public static native void sayHello(); |
rlm@43 | 16 |
rlm@43 | 17 /** |
rlm@43 | 18 * Run the emulator on a given rom |
rlm@43 | 19 * @param rom - the name of the rom. |
rlm@43 | 20 */ |
rlm@48 | 21 public static native void startEmulator(String rom); |
rlm@48 | 22 |
rlm@48 | 23 |
rlm@48 | 24 public static void loadVBA(){ |
rlm@48 | 25 System.loadLibrary("vba"); |
rlm@48 | 26 } |
rlm@43 | 27 |
rlm@43 | 28 } |