//These high-level functions are implemented in chipcon.c. //! Erase a chipcon chip. void cc_chip_erase(); //! Write the configuration byte. void cc_wr_config(unsigned char config); //! Read the configuration byte. unsigned char cc_rd_config(); //! Read the status register. unsigned char cc_read_status(); //! Read the CHIP ID bytes. unsigned short cc_get_chip_id(); //! Get the PC unsigned short cc_get_pc(); //! Set a hardware breakpoint. void cc_set_hw_brkpnt(unsigned short); //! Debug an instruction, for remote use. void cc_debug_instr(unsigned char); //!Read a byte of code memory. unsigned char peekcodebyte(unsigned long adr); //!Read a byte of data memory. unsigned char peekdatabyte(unsigned int adr); //! Set a byte of data memory. unsigned char pokedatabyte(unsigned int adr, unsigned char val); //! Debug an instruction, for local use. unsigned char cc_debug(unsigned char len, unsigned char a, unsigned char b, unsigned char c); //! Halt the CPU. void cc_halt(); //! Resume the CPU. void cc_resume(); //! Step an instruction void cc_step_instr();