Mercurial > vba-clojure
comparison clojure/com/aurellem/gb_driver.clj @ 60:ef59aee6d715
added function to retrieve main RAM
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 07 Mar 2012 19:29:51 -0600 |
parents | 75349da4c344 |
children | dc8b383ecefa |
comparison
equal
deleted
inserted
replaced
59:3ce48d803e74 | 60:ef59aee6d715 |
---|---|
1 (ns com.aurellem.gb-driver) | 1 (ns com.aurellem.gb-driver |
2 (:import com.aurellem.gb.Gb) | |
3 (:import (java.nio IntBuffer ByteOrder))) | |
2 | 4 |
3 | 5 |
6 (defn init-vba [] | |
7 (Gb/loadVBA) | |
8 (future | |
9 (Gb/startEmulator "/home/r/proj/pokemon-escape/roms/yellow.gbc"))) | |
10 | |
11 | |
12 (defn get-ram [] | |
13 (let [ram-store (int-array (Gb/getRAMSize))] | |
14 (Gb/getRAM ram-store) | |
15 ram-store)) | |
16 |