Mercurial > vba-clojure
diff java/src/com/aurellem/gb/Gb.java @ 59:3ce48d803e74
added functions to get rom/ram sizes
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 07 Mar 2012 17:40:00 -0600 |
parents | 431ee7ee12de |
children | ef59aee6d715 |
line wrap: on
line diff
1.1 --- a/java/src/com/aurellem/gb/Gb.java Wed Mar 07 15:17:19 2012 -0600 1.2 +++ b/java/src/com/aurellem/gb/Gb.java Wed Mar 07 17:40:00 2012 -0600 1.3 @@ -51,4 +51,15 @@ 1.4 loadState(saveState, SAVE_SIZE); 1.5 } 1.6 1.7 + public static native int getROMSize(); 1.8 + public static native int getRAMSize(); 1.9 + 1.10 + 1.11 + public static final int WRAM_SIZE = 0x8000; 1.12 + 1.13 + public static final int VRAM_SIZE = 0x4000; 1.14 + 1.15 + 1.16 + 1.17 + 1.18 }