// // memtest.c - Copyright 1998 (c) Kevin W Ross, all rights reserved // // This program implements a set of test functions for the sermem routines // You need to compile this and set the address of the interrupt_vectors segment // to be up in the interrupt area. On the Imagecraft compiler, the command line // argument // // -binterrupt_vectors=0xffd0 // // will do the trick! #define _SCI #include #include #include "sermem.h" void main(); void _HC12Setup(void) { COPCTL &=0xF8; /* disable COP */ } int MemCompare(unsigned char *src, unsigned char *data, int count, int address) { int i; for(i=0;i