Reorganize src/ directory

This commit is contained in:
Fabien Freling 2019-05-08 12:11:17 +02:00
parent 8aa8b9b69a
commit 3c0c2cff6f
19 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,3 @@
(executable
(library
(name oboy)
(libraries threads))

View file

@ -13,10 +13,10 @@ open Printf
@see http://imrannazar.com/GameBoy-Emulation-in-JavaScript:-Memory *)
(** Common addresses *)
let gDIV = 0xFF04 (** divider register *)
let gTIMA = 0xFF05 (** timer counter *)
let gTMA = 0xFF06 (** timer modulo *)
let gTAC = 0xFF07 (** timer control *)
let gDIV = 0xFF04 (* divider register *)
let gTIMA = 0xFF05 (* timer counter *)
let gTMA = 0xFF06 (* timer modulo *)
let gTAC = 0xFF07 (* timer control *)
type map = {
rom_bank_00 : bytes; (* cartridge, 16KB *)

View file

@ -0,0 +1,7 @@
open Ctypes
open PosixTypes
open Foreign
(* typedef void (RETRO_CALLCONV *retro_video_refresh_t)(const void *data, unsigned width,
unsigned height, size_t pitch); *)
let retro_video_refresh_t = ptr void @-> int @-> int @-> returning void