summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-12-25 16:21:38 +0100
committerLoic Guegan <loic.guegan@mailbox.org>2023-12-25 16:21:38 +0100
commit7652bcb6c725ac6e5b9cc6d6b458d1a282e6d0ca (patch)
tree9cadb4a0208a67580647a853be6f087305ec445f /src
parent07c7e35bff70991fc6c8bc34419da439f86fac4d (diff)
Minor changes
Diffstat (limited to 'src')
-rw-r--r--src/screen.c2
-rw-r--r--src/vcpu.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index c6d5510..fa4a9c4 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -15,7 +15,7 @@ void ScreenInit(int width, int height){
SetTraceLogLevel(LOG_ERROR); // Disable anoying raylib logs
InitWindow(width, height, "Chip-8 Emulator");
- SetTargetFPS(30); // Set game to run at 60 frames-per-second
+ SetTargetFPS(200); // Set game to run at 60 frames-per-second
}
void ScreenClear() {
diff --git a/src/vcpu.c b/src/vcpu.c
index bd255ef..4140556 100644
--- a/src/vcpu.c
+++ b/src/vcpu.c
@@ -248,10 +248,12 @@ void VCPUExecute(){
case 0x55:
MemStore(State.V,16,State.I);
+ State.I=State.I + State.X + 1;
break;
case 0x65:
MemLoad(State.V,16,State.I);
+ State.I=State.I + State.X + 1;
break;
}