-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInfoNES_System.h
84 lines (63 loc) · 2.66 KB
/
InfoNES_System.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*===================================================================*/
/* */
/* InfoNES_System.h : The function which depends on a system */
/* */
/* 2000/05/29 InfoNES Project ( based on pNesX ) */
/* */
/*===================================================================*/
#ifndef InfoNES_SYSTEM_H_INCLUDED
#define InfoNES_SYSTEM_H_INCLUDED
/*-------------------------------------------------------------------*/
/* Include files */
/*-------------------------------------------------------------------*/
#include "InfoNES_Types.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*-------------------------------------------------------------------*/
/* Palette data */
/*-------------------------------------------------------------------*/
extern PIXEL NesPalette[];
/*-------------------------------------------------------------------*/
/* Function prototypes */
/*-------------------------------------------------------------------*/
/* Menu screen */
int InfoNES_Menu();
/* Read ROM image file */
//int InfoNES_ReadRom( const char *pszFileName );
int InfoNES_ReadRom(char *buf,int length);
int LoadRomImage(const char *pszFileName);
/* Release a memory for ROM */
void InfoNES_ReleaseRom();
void App_Main(void);
#if WORKFRAME_DEFINE == WORKFRAME_NONE
/* Transfer the contents of work line on the screen */
void InfoNES_LoadLine(void);
#else
/* Transfer the contents of work frame on the screen */
void InfoNES_LoadFrame(void);
#endif
/* Get a joypad state */
void InfoNES_PadState( DWORD *pdwPad1, DWORD *pdwPad2, DWORD *pdwSystem );
/* memcpy */
void *InfoNES_MemoryCopy( void *dest, const void *src, int count );
/* memset */
void *InfoNES_MemorySet( void *dest, int c, int count );
/* Print debug message */
void InfoNES_DebugPrint( char *pszMsg );
/* Wait */
void InfoNES_Wait();
/* Sound Initialize */
void InfoNES_SoundInit( void );
/* Sound Open */
int InfoNES_SoundOpen( int samples_per_sync, int sample_rate );
/* Sound Close */
void InfoNES_SoundClose( void );
/* Sound Output 5 Waves - 2 Pulse, 1 Triangle, 1 Noise, 1 DPCM */
void InfoNES_SoundOutput(int samples, BYTE *wave1, BYTE *wave2, BYTE *wave3, BYTE *wave4, BYTE *wave5);
/* Print system message */
void InfoNES_MessageBox( char *pszMsg, ... );
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !InfoNES_SYSTEM_H_INCLUDED */