From 9979fb37d2f3e327cf66c29bc25e512ef7c013c0 Mon Sep 17 00:00:00 2001 From: carl Date: Mon, 25 Mar 2019 00:14:27 +0800 Subject: [PATCH] Add function prototypes. --- mach/z80/as/mach1.c | 7 +++++++ mach/z80/as/mach5.c | 11 +++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/mach/z80/as/mach1.c b/mach/z80/as/mach1.c index 3d02072ee..c201dca2c 100644 --- a/mach/z80/as/mach1.c +++ b/mach/z80/as/mach1.c @@ -34,3 +34,10 @@ extern expr_t exp_ind; #ifndef ASLD extern int rel_ind; #endif + +/* + * Zilog Z80 special routines + */ +void xyreg(int r,int byte); +void xymem(int r,int byte); +void branch(register int opc,expr_t exp); diff --git a/mach/z80/as/mach5.c b/mach/z80/as/mach5.c index 0808665c0..64da16087 100644 --- a/mach/z80/as/mach5.c +++ b/mach/z80/as/mach5.c @@ -8,7 +8,8 @@ * Zilog Z80 special routines */ -xyreg(r,byte) { +void xyreg(int r,int byte) +{ if (r==IX) emit1(0335); @@ -19,7 +20,8 @@ xyreg(r,byte) { emit1(byte); } -xymem(r,byte) { +void xymem(int r,int byte) +{ xyreg(r,byte); if (r != HL) { @@ -31,8 +33,9 @@ xymem(r,byte) { } } -branch(opc,exp) register opc; expr_t exp; { - register sm,dist; +void branch(register int opc,expr_t exp) +{ + register int sm,dist; dist = exp.val - (DOTVAL + 2); if (pass == PASS_2 && dist > 0 && !(exp.typ & S_DOT))