Add function prototypes.

This commit is contained in:
carl 2019-03-25 00:10:10 +08:00
parent a915b76300
commit dac3d0b10c
2 changed files with 5 additions and 6 deletions

View file

@ -9,3 +9,6 @@
*/ */
#define fits_zeropage(x) (lowb(x) == (int)(x)) #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);

View file

@ -8,9 +8,7 @@
* Mostek 6500 special routines. * Mostek 6500 special routines.
*/ */
branch(opc, exp) void branch(register int opc, expr_t exp)
register int opc;
expr_t exp;
{ {
register int dist; register int dist;
@ -29,9 +27,7 @@ expr_t exp;
} }
} }
code(exp, opc1, opc2) void code(expr_t exp, register int opc1, register int opc2)
expr_t exp;
register int opc1, opc2;
{ {
if (small((exp.typ & S_TYP) == S_ABS && fits_zeropage(exp.val), 1)) { if (small((exp.typ & S_TYP) == S_ABS && fits_zeropage(exp.val), 1)) {
emit1(opc1); emit1(exp.val); emit1(opc1); emit1(exp.val);