summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-08-21 07:42:26 +0930
committerDaniel Jones <admin@danieljon.es>2020-08-21 07:42:26 +0930
commit200bd42550a94487d6c0434c3ad8781b18a7a104 (patch)
treeeb0bdb39dcacedf028415daf84c2e909c16b857a /main.c
parent02326aab063553d9b32f19ea59502fe745456178 (diff)
downloadchip8-200bd42550a94487d6c0434c3ad8781b18a7a104.tar.gz
chip8-200bd42550a94487d6c0434c3ad8781b18a7a104.zip
more instructions implemented
a good few roms work now, many glitches and such though. some roms wont work
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 3b8183e..ae6f34d 100644
--- a/main.c
+++ b/main.c
@@ -14,7 +14,7 @@
*/
#define VIDEO_SCALE 5
-#define STEPPING 1 // set to 1 to step manually through program
+#define STEPPING 0 // set to 1 to step manually through program
SDL_Window *window;
SDL_Renderer *renderer;
@@ -205,13 +205,14 @@ int main(int argc, char *argv[])
init_video();
- const int fps = 1;
+ const int fps = 500;
const int frame_delay = 1000/fps;
uint32_t frame_start;
uint32_t frame_time;
int do_quit = 0;
+ /*
chip8_draw_sprite(0, 0, 0xD*5, 0x5);
chip8_draw_sprite(5, 0, 0xE*5, 0x5);
chip8_draw_sprite(10, 0, 0xA*5, 0x5);
@@ -230,7 +231,6 @@ int main(int argc, char *argv[])
chip8_draw_sprite(30, 9, 0xE*5, 0x5);
chip8_draw_sprite(35, 9, 0xf*5, 0x5);
- /*
chip8_draw_sprite(0, 20, 0x200, 0x6);
chip8_draw_sprite(8, 20, 0x200, 0x6);
chip8_draw_sprite(16, 20, 0x200, 0x6);