/***********************************************************

      SEEPARAM.C
      Z-World, 2000

 This program demonstrates use of the Dynamic C program 
 parameters. The prog_param structure has the following
 entries:
	
 prog_param

 ADDR24 
 	RCB,RCE,    // root code 		(Begin and End)
	XCB,XCE,    // extended code 	(Begin and End)
	RDB,RDE,    // root data 		(Begin and End)
	XDB,XDE;    // extended data	(RAM) (Begin and End)

 unsigned int
   auxStkB,    // aux stack Begin (currently not used for Rabbit)
   auxStkE,    // end				 (currently not used for Rabbit) 
	stkB,       // stack begin
	stkE,       // end
	freeB,  		// free begin		 (currently not used for Rabbit)
	freeE,  		// end				 (currently not used for Rabbit)	
	heapB,  		// heap begin		 (currently not used for Rabbit)	
	heapE;  		// end				 (currently not used for Rabbit)	

	Where ADDR24 has the following entries.
						
	union ADDR24
		unsigned long l;        	// long for increment/decrement
  	   struct aaa
			struct a
				unsigned int addr;   // address
				unsigned char base;  // base  (XPC,DATASEG, or STACKSEG)
			   char flags;				// flags (currently not used for Rabbit)

************************************************************/

main()
{

	printf("root code begins at %02x:%04x, ends at %02x:%04x\n",
		prog_param.RCB.aaa.a.base,prog_param.RCB.aaa.a.addr, 
		prog_param.RCE.aaa.a.base,prog_param.RCE.aaa.a.addr);

	printf("root data begins at %02x:%04x, ends at %02x:%04x\n",
		prog_param.RDB.aaa.a.base,prog_param.RDB.aaa.a.addr, 
		prog_param.RDE.aaa.a.base,prog_param.RDE.aaa.a.addr);

	printf("xmem code begins at %02x:%04x, ends at %02x:%04x\n",
		prog_param.XCB.aaa.a.base,prog_param.XCB.aaa.a.addr, 
		prog_param.XCE.aaa.a.base,prog_param.XCE.aaa.a.addr);

	printf("stack begins at %x, ends at %x\n",
		prog_param.stkB, prog_param.stkE);

}
