From dac3d0b10c2b9ef9394524b691704dc85e4cdae8 Mon Sep 17 00:00:00 2001 From: carl Date: Mon, 25 Mar 2019 00:10:10 +0800 Subject: [PATCH] Add function prototypes. --- mach/6500/as/mach1.c | 3 +++ mach/6500/as/mach5.c | 8 ++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mach/6500/as/mach1.c b/mach/6500/as/mach1.c index 2243d1f8e..cef0ab8d2 100644 --- a/mach/6500/as/mach1.c +++ b/mach/6500/as/mach1.c @@ -9,3 +9,6 @@ */ #define fits_zeropage(x) (lowb(x) == (int)(x)) + +void branch(register int opc, expr_t exp); +void code(expr_t exp, register int opc1, register int opc2); diff --git a/mach/6500/as/mach5.c b/mach/6500/as/mach5.c index 2e073d709..53e121214 100644 --- a/mach/6500/as/mach5.c +++ b/mach/6500/as/mach5.c @@ -8,9 +8,7 @@ * Mostek 6500 special routines. */ -branch(opc, exp) -register int opc; -expr_t exp; +void branch(register int opc, expr_t exp) { register int dist; @@ -29,9 +27,7 @@ expr_t exp; } } -code(exp, opc1, opc2) -expr_t exp; -register int opc1, opc2; +void code(expr_t exp, register int opc1, register int opc2) { if (small((exp.typ & S_TYP) == S_ABS && fits_zeropage(exp.val), 1)) { emit1(opc1); emit1(exp.val);