Table of Contents

hp vChess

5254.jpg

This is an attempt to turn the hp20b into a chess machine!

Instructions

The moves are entered as numbers, where A=1,B=2, … G=8. For example, the classic opening E2-E4 is coded as 5254.

The calculator will response by appending its reply. for example 4745 (D7-D5). Castle by entering the king move.

Just keep entering moves until one side wins!

Code

Notes

Problems

Code Snippets

How to disable the watchdog

board_lowlevel.c, LowLevelInit

can only write to WDTC_WDMR once, comment out original code and set to disabled, like this:

    // clobber watchdog!!! i hate dogs anyway :-)
     AT91C_BASE_WDTC->WDTC_WDMR = AT91C_WDTC_WDDIS;