From 371856f6c7a33c7e885c77b6e824c7ef44b21382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Tue, 31 Jan 2017 23:30:49 +0100 Subject: [PATCH] Make emul_bbr/bbs/smb/rmb functions static. Since they are only called by wrappers within the same file. --- src/emulation.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/emulation.c b/src/emulation.c index 622774f..da18679 100644 --- a/src/emulation.c +++ b/src/emulation.c @@ -4,10 +4,10 @@ #include "emulation.h" /* RMB, SMB, BBR, BBS are handled by these */ -void emul_rmb(rk65c02emu_t *, void *, instruction_t *, uint8_t); -void emul_smb(rk65c02emu_t *, void *, instruction_t *, uint8_t); -void emul_bbr(rk65c02emu_t *, void *, instruction_t *, uint8_t); -void emul_bbs(rk65c02emu_t *, void *, instruction_t *, uint8_t); +static void emul_rmb(rk65c02emu_t *, void *, instruction_t *, uint8_t); +static void emul_smb(rk65c02emu_t *, void *, instruction_t *, uint8_t); +static void emul_bbr(rk65c02emu_t *, void *, instruction_t *, uint8_t); +static void emul_bbs(rk65c02emu_t *, void *, instruction_t *, uint8_t); /* Implementation of emulation of instructions follows below */ @@ -76,7 +76,7 @@ emul_asl(rk65c02emu_t *e, void *id, instruction_t *i) } /* BBRx - branch on bit reset (handles BBR0-7) */ -void +static void emul_bbr(rk65c02emu_t *e, void *id, instruction_t *i, uint8_t bit) { /* is bit is clear then branch */ @@ -128,7 +128,7 @@ emul_bbr7(rk65c02emu_t *e, void *id, instruction_t *i) } /* BBSx - branch on bit set (handles BBS0-7) */ -void +static void emul_bbs(rk65c02emu_t *e, void *id, instruction_t *i, uint8_t bit) { /* is bit is set then branch */ @@ -667,7 +667,7 @@ emul_rts(rk65c02emu_t *e, void *id, instruction_t *i) } /* RMBx - reset memory bit (handles RMB0-RMB7) */ -void +static void emul_rmb(rk65c02emu_t *e, void *id, instruction_t *i, uint8_t bit) { uint8_t val; @@ -805,7 +805,7 @@ emul_sei(rk65c02emu_t *e, void *id, instruction_t *i) } /* SMBx - set memory bit (handles SMB0-SMB7) */ -void +static void emul_smb(rk65c02emu_t *e, void *id, instruction_t *i, uint8_t bit) { uint8_t val;