diff options
author | Daniel Jones <admin@danieljon.es> | 2020-08-26 07:55:11 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-08-26 07:55:11 +0930 |
commit | 72a80b66f979cce2318e0b4c1df1fae7175b4d2c (patch) | |
tree | 0f72fa5156edc5b1daed676839ef528d586dff48 /main.c | |
parent | f23b667da411baa8de95032bde97025fc427ad94 (diff) | |
download | chip8-72a80b66f979cce2318e0b4c1df1fae7175b4d2c.tar.gz chip8-72a80b66f979cce2318e0b4c1df1fae7175b4d2c.zip |
added roms and changed readme
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,7 +63,7 @@ extern uint16_t stack[STACK_SIZE]; void usage(char *program) { - printf("usage: %s [speed] [scale] [romfile]\nspeed - how many cycles per second should be run (60-1000 or so, depends on the game)\nscale - pixel scaling (~5 recommended)", program); + printf("usage: %s [scale] [speed] [romfile]\nscale - pixel scaling (~5 recommended)\nspeed - how many cycles per second should be run (60-1000 or so, depends on the game)\n", program); } void @@ -224,7 +224,7 @@ int main(int argc, char *argv[]) init_video(); const int fps = atoi(argv[2]); - const int frame_delay = 1000/fps; + const uint32_t frame_delay = 1000/fps; uint32_t frame_start; uint32_t frame_time; |