/* test program for lab 12 assignment, CSC 116 The program calls int stree(*node) function To be coded in assembly language - file stree.s and prints the result Lin Jensen April 4, 2003 -- April fool! */ typedef struct node_s { int value; int* left; /* this should be node*, but compiler objects, no matter */ int* right; } node; node node1 = {2,0,0}; node node2 = {2,0,0}; node root = {10,&node1,&node2}; /* has to come after subtree defs */ /* so we get a warning here, but asm code doesn't care */ int main () { printf ("Sum is %d\n", stree(&root)); return 0; }