-
Notifications
You must be signed in to change notification settings - Fork 2
/
api.h
48 lines (38 loc) · 1.21 KB
/
api.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
#ifndef R40_API_H_
#define R40_API_H_
#include "ficl/ficl.h"
//Screen dimension constants
#define R40_WIDTH 256
#define R40_HEIGHT 192
#define SCREEN_SCALE 3
#define SCREEN_WIDTH R40_WIDTH * SCREEN_SCALE
#define SCREEN_HEIGHT R40_HEIGHT * SCREEN_SCALE
#define SCREEN_FPS 60
#define SCREEN_TICKS_PER_FRAME (1000 / SCREEN_FPS)
// the video ram
extern unsigned char *gVRAM;
extern unsigned char *gSRAM;
extern unsigned char *gMRAM;
extern unsigned char *gMRAM2;
extern unsigned char *gPRAM;
extern unsigned char *gFONT;
extern char *gScriptFilename;
extern Uint8 keybuffer[];
extern long gMouseX;
extern long gMouseY;
extern long gMouseButtons;
extern long currentPalette;
extern int outputAvailable;
extern void R40TextOut(ficlCallback *callback, char *text);
extern void R40Time(ficlVm *vm);
extern void R40Pset(ficlVm *vm);
extern void R40Pget(ficlVm *vm);
extern void R40SPset(ficlVm *vm);
extern void R40SPget(ficlVm *vm);
extern void R40Spr(ficlVm *vm);
extern void R40ImportSprite(ficlVm *vm);
extern void R40DefineSfx(ficlVm *vm);
extern void R40Sfx(ficlVm *vm);
extern void R40Cls(ficlVm *vm);
extern void initMachineForth(ficlSystem *system, ficlVm *vm, unsigned char *keys, unsigned char *lastkeys);
#endif // R40_API_H_