blob: 85dcb2c47cb1cfe59a37e140041cd815da5884b7 (
plain)
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
|
#include "screen.h"
#include "mem.h"
#include "vcpu.h"
int main(int argc, char *argv[])
{
// Initialize
MemInit();
MemLoadROM("../roms/logo_chip8.ch8");
ScreenInit(800,400);
VCPUInit();
// MemDump();
int i=0;
while (!WindowShouldClose()){
VCPUFetch();
VCPUDecode();
VCPUExecute();
ScreenUpdate();
}
ScreenClose();
return 0;
}
|