From 0c63342ad7713d77a9bb9fa7d09cf9a0b24efccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Fri, 27 Jan 2017 10:13:32 +0100 Subject: [PATCH] Add comments explaing what these functions do. --- src/rk65c02.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/rk65c02.c b/src/rk65c02.c index f52a0ae..c429c0d 100644 --- a/src/rk65c02.c +++ b/src/rk65c02.c @@ -12,6 +12,9 @@ void rk65c02_exec(rk65c02emu_t *); +/* + * Prepare the emulator for use, set initial CPU state. + */ rk65c02emu_t rk65c02_init(bus_t *b) { @@ -24,6 +27,9 @@ rk65c02_init(bus_t *b) return e; } +/* + * Execute a single instruction within emulator. + */ void rk65c02_exec(rk65c02emu_t *e) { @@ -50,6 +56,9 @@ rk65c02_exec(rk65c02emu_t *e) } } +/* + * Start the emulator. + */ void rk65c02_start(rk65c02emu_t *e) { @@ -59,6 +68,9 @@ rk65c02_start(rk65c02emu_t *e) { } } +/* + * Execute as many instructions as specified in steps argument. + */ void rk65c02_step(rk65c02emu_t *e, uint16_t steps) {