diff java/src/com/aurellem/gb/Gb.java @ 93:4c60ebca1a9d

added function to get all the GB's memory.
author Robert McIntyre <rlm@mit.edu>
date Sun, 11 Mar 2012 20:16:09 -0500
parents 1ff2c546f5ad
children cb487c4ce5c0
line wrap: on
line diff
     1.1 --- a/java/src/com/aurellem/gb/Gb.java	Sun Mar 11 19:07:31 2012 -0500
     1.2 +++ b/java/src/com/aurellem/gb/Gb.java	Sun Mar 11 20:16:09 2012 -0500
     1.3 @@ -93,9 +93,17 @@
     1.4      public static final int WRAM_SIZE = 0x8000;
     1.5  
     1.6      public static final int VRAM_SIZE = 0x4000;
     1.7 +    
     1.8 +    public static final int RAM_SIZE = 0x8000;
     1.9 +    
    1.10 +    public static final int ROM_SIZE = 0x100000;
    1.11  
    1.12      public static final int NUM_REGISTERS = 27;
    1.13  
    1.14 +    public static final int GB_MEMORY = 0x10000;
    1.15 +
    1.16 +    public static native void getMemory(int[] store);
    1.17 +
    1.18      public static native void getRAM(int[] store);
    1.19  
    1.20      public static native void getROM(int[] store);