AS1130 First attempt - working

I've already got some code that may be useful to you. I wrote it for the CCS C compiler.

What chip are you going to use and which compiler?