-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgb.h
42 lines (39 loc) · 1.21 KB
/
gb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef GB_H
#define GB_H
/*-------------------------------------------------------------------*/
/* Type definition */
/*-------------------------------------------------------------------*/
#ifndef DWORD
typedef unsigned long DWORD;
#endif /* !DWORD */
#ifndef WORD
typedef unsigned short WORD;
#endif /* !WORD */
#ifndef BYTE
typedef unsigned char BYTE;
#endif /* !BYTE */
/*-------------------------------------------------------------------*/
/* NULL definition */
/*-------------------------------------------------------------------*/
#ifndef NULL
#define NULL 0
#endif /* !NULL */
extern uint16_t *audio_stream;
extern int sample_size;
extern uint8_t *GBaddress; // pointer to the GB ROM file
#ifdef __cplusplus
extern "C" {
#endif
#if ENABLE_SOUND
#include "minigb_apu.h"
#endif
int startemulation(uint8_t *rom, char *romname, const char *savedir, char *errormessage);
void stopemulation(char *romname, const char *savedir);
void emu_init_lcd(void (*lcd_draw_line)(const uint_fast8_t line));
void emu_run_frame();
void emu_set_gamepad(uint8_t joypad);
WORD *dvi_getlinebuffer();
#ifdef __cplusplus
}
#endif
#endif // GB_H