blob: a25ac8fa290d90fde57ee0f394723541d6c2f982 (
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
28
29
30
31
32
33
|
#include "screen.h"
#include "mem.h"
#include "vcpu.h"
#include <stdio.h>
int main(int argc, char *argv[])
{
/* unsigned char byte=137; */
/* unsigned char u,t,h; */
/* VCPUDoubleDabble(byte,&u,&t,&h); */
/* printf("%d: %01d%01d%01d\n",byte,h,t,u); */
/* return 0; */
// Initialize
MemInit();
MemLoadROM("../roms/chiptest.ch8");
ScreenInit(800,400);
VCPUInit();
// MemDump();
int i=0;
while (!WindowShouldClose()){
VCPUFetch();
VCPUDecode();
VCPUExecute();
ScreenUpdate();
}
ScreenClose();
return 0;
}
|