Add function prototypes.
This commit is contained in:
		
							parent
							
								
									a915b76300
								
							
						
					
					
						commit
						dac3d0b10c
					
				
					 2 changed files with 5 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue