summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-08-26 07:55:11 +0930
committerDaniel Jones <admin@danieljon.es>2020-08-26 07:55:11 +0930
commit72a80b66f979cce2318e0b4c1df1fae7175b4d2c (patch)
tree0f72fa5156edc5b1daed676839ef528d586dff48 /main.c
parentf23b667da411baa8de95032bde97025fc427ad94 (diff)
downloadchip8-72a80b66f979cce2318e0b4c1df1fae7175b4d2c.tar.gz
chip8-72a80b66f979cce2318e0b4c1df1fae7175b4d2c.zip
added roms and changed readme
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 0d5e381..0b7eb83 100644
--- a/main.c
+++ b/main.c
@@ -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;