#pragma option f0 /* remove page breaks from listing file */ /* * COP8C Code Development System * Tutorial Example * VAR3.C * This code may be adapted for any purpose * when used with the COP8C Code Development * System. No warranty is implied or given * as to their usability for any purpose. * * (c) Copyright 2000 Byte Craft Limited * 421 King St.N., Waterloo, ON, Canada, N2J 4E4 * VOICE: 1 (519) 888 6911 * FAX : 1 (519) 746 6751 * email: support@bytecraft.com * * REVISION HISTORY * v1.00 AL 01/2000 Initial Version. */ #include #include /* figure_e */ int global_variable; void __INT(void) { SaveContext(); int var_in_interrupt; var_in_interrupt++; RestoreContext(); } /* figure_e */ /* figure_d */ void function1(void) { int a,b,c; } void function2(void) { int a,b,c; function1(); } void function3(void) { int a,b,c; } /* figure_d */ void function4(char a,b,c) { } void main(void) { int a,b,c; function1(); function2(); function3(); /* figure_f */ function4(1,2,3); /* figure_f */ while(1); }