summaryrefslogtreecommitdiff
path: root/src/main.c
blob: 995f4ed54209fd65f824dc949fbdcad83b573adb (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
#include "screen.h"
#include "mem.h"
#include "vcpu.h"

int main(int argc, char *argv[])
{

  // Initialize
  MemInit();
  MemLoadROM("../roms/2-ibm-logo.ch8");
  ScreenInit(800,400);
  VCPUInit();

  
  ScreenSetPixel(0,1,1);
  
  while (!WindowShouldClose()){
    ScreenUpdate();
  }
  
  ScreenClose();
  
  return 0;
}