/*
 * VectorAdd_C.c
 *
 *  Created: 6/18/2013 12:49:46 PM
 *  Author:  Josh Weaver, Dr. Schwartz
 *  Purpose: A modification to the original Assembly Vector Addition Example in C.
 *			 Using a mix of C and Assembly to perform the desired vector addition.
 *			 This file is the primary C file within the project.
 *
 *			 Calls a subroutine, VADD, that adds two contiguous N-element vectors to
 *			 form the resulting vector, VC = VA + VB.  The subroutine inputs and
 *			 outputs are below. 
 *  Inputs:  Z = address of the first vector (VA) 
 *			 R18 = N, the number of elements Z+N is address of the 2nd vector (VB)
 *  Outputs: X = address of resulting vector sum
 *           R18=0 if successful, else non-zero
 */ 
#include <avr/io.h>

/*********************************INITIALIZATIONS***********************************/
extern void MAIN_ASM(); // C Prototype that defines an externally defined function

// Main function required in primary C file of project
int main(void)
{	
	MAIN_ASM();		// Single call to Vector Add Function
	
	// DONE while loop once main program is complete
	while(1)
    {
    }
}