summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-12-25 09:11:45 +0100
committerLoic Guegan <loic.guegan@mailbox.org>2023-12-25 09:11:45 +0100
commit16f7128a0c81a508940ee1a8e8d1b8fe36f83259 (patch)
tree690523d91c2b66d804e9db98143ff716ef1bba89 /src/main.c
parent14e9dd9258eaf62dba3867bb6edc9cd8687125c4 (diff)
Minor changes
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 995f4ed..2263245 100644
--- a/src/main.c
+++ b/src/main.c
@@ -8,13 +8,16 @@ int main(int argc, char *argv[])
// Initialize
MemInit();
MemLoadROM("../roms/2-ibm-logo.ch8");
+
ScreenInit(800,400);
VCPUInit();
-
-
- ScreenSetPixel(0,1,1);
+ // MemDump();
+ int i=0;
while (!WindowShouldClose()){
+ VCPUFetch();
+ VCPUDecode();
+ VCPUExecute();
ScreenUpdate();
}