From 143da61d136bd5af412958f513e52cbcf6acd5ce Mon Sep 17 00:00:00 2001 From: carl Date: Mon, 25 Mar 2019 00:10:20 +0800 Subject: [PATCH] Add function prototypes. --- mach/6800/as/mach1.c | 3 +++ mach/6800/as/mach5.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mach/6800/as/mach1.c b/mach/6800/as/mach1.c index b23265cf2..90e90b031 100644 --- a/mach/6800/as/mach1.c +++ b/mach/6800/as/mach1.c @@ -7,3 +7,6 @@ /* * Motorola 6800 C declarations */ + +void branch(register int opc, expr_t exp); + diff --git a/mach/6800/as/mach5.c b/mach/6800/as/mach5.c index 50a8b2233..e14f7d098 100644 --- a/mach/6800/as/mach5.c +++ b/mach/6800/as/mach5.c @@ -8,8 +8,9 @@ * Motorola 6800 special routines */ -branch(opc,exp) register opc; expr_t exp; { - register sm, dist; +void branch(register int opc,expr_t exp) +{ + register int sm, dist; int saving; dist = exp.val - (DOTVAL + 2);