Add function prototypes.

This commit is contained in:
carl 2019-03-25 00:14:27 +08:00
parent 82cdc096b0
commit 9979fb37d2
2 changed files with 14 additions and 4 deletions

View file

@ -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);

View file

@ -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))