254
HTTP/1.1 200 OK
Date: Sat, 18 Jun 2005 20:09:50 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_perl/1.26 mod_ssl/2.8.9 OpenSSL/0.9.6g PHP/4.1.2
Last-Modified: Wed, 08 Jan 2003 19:44:02 GMT
ETag: "cac4a5-254-3e1c7f82"
Accept-Ranges: bytes
Content-Length: 596
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/x-csrc

// ********simple.C**********************/

// Jonathan W. Valvano 12/17/02

#include "HC12.H"

short function(short a, short b, short c){ short d;

  d = a+b+c;

  return d;

}

short e;

void main(void){ short i;

  COPCTL = 0x00;     //
0

 disable COP 

  DDRT = 0xFF;       // Port T is output

  e = function(1,2,3);

  while(1){ 

    i++;

    if(i>0) 

       PORTT|=0x40;  // LED is on

    else

       PORTT&=~0x40; // LED is off

  }

}



extern void _start();	/* entry point in crt12.s */

#pragma abs_address:0xfffe

void (*reset_vector[])() = { _start };

#pragma end_abs_address



