I've decided on building the turing alarm clock, found here:
http://www.cheaphack.net/2008/01/turing-alarm-clock.html
Source code: http://nicholas.paul.johnson.googlepages.com/turing-alarm.tar.bz2
I'm starting the editing of a program for a microprocessor, I have a PIC16F728A microchip which I'm trying to program, but am getting numerous errors. The only edit I made to an original source code was the change of my name in place of "eric", and the required processor header change from "LIST p=p16f716" to "LIST p=p16f728". The name change was accomplished by simply changing:
WriteGoodMorningNick:
MOVLW 'G'
CALL PutChar
CALL WriteO
CALL WriteO
MOVLW 'd'
CALL PutChar
CALL WriteSpace
MOVLW 'm'
CALL PutChar
CALL WriteO
MOVLW 'r'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'i'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'g'
CALL PutChar
CALL WriteSpace
MOVLW 'E'
CALL PutChar
MOVLW 'r'
CALL PutChar
MOVLW 'i'
CALL PutChar
MOVLW 'k'
CALL PutChar
CALL WriteBang
to:
WriteGoodMorningNick:
MOVLW 'G'
CALL PutChar
CALL WriteO
CALL WriteO
MOVLW 'd'
CALL PutChar
CALL WriteSpace
MOVLW 'm'
CALL PutChar
CALL WriteO
MOVLW 'r'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'i'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'g'
CALL PutChar
CALL WriteSpace
MOVLW 'D'
CALL PutChar
MOVLW 'a'
CALL PutChar
MOVLW 'm'
CALL PutChar
MOVLW 'a'
CALL PutChar
MOVLW 'n'
CALL PutChar
CALL WriteBang
However even without the changes, I get MAIN.ASM 709 : Illegal digit (- in decimal) error when trying to build. And on 709 line it reads "D-25" written in red. I'm using MPLAB to convert this asm file into HEX.
My questionsare, Where am I going wrong? and is the orginal source code flawed?
Any Help is appriciated. If you can somehow get this running on your system, please let me know, i'm willing to pay for the converted HEX file so I can load it on as soon as possible.
http://www.cheaphack.net/2008/01/turing-alarm-clock.html
Source code: http://nicholas.paul.johnson.googlepages.com/turing-alarm.tar.bz2
I'm starting the editing of a program for a microprocessor, I have a PIC16F728A microchip which I'm trying to program, but am getting numerous errors. The only edit I made to an original source code was the change of my name in place of "eric", and the required processor header change from "LIST p=p16f716" to "LIST p=p16f728". The name change was accomplished by simply changing:
WriteGoodMorningNick:
MOVLW 'G'
CALL PutChar
CALL WriteO
CALL WriteO
MOVLW 'd'
CALL PutChar
CALL WriteSpace
MOVLW 'm'
CALL PutChar
CALL WriteO
MOVLW 'r'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'i'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'g'
CALL PutChar
CALL WriteSpace
MOVLW 'E'
CALL PutChar
MOVLW 'r'
CALL PutChar
MOVLW 'i'
CALL PutChar
MOVLW 'k'
CALL PutChar
CALL WriteBang
to:
WriteGoodMorningNick:
MOVLW 'G'
CALL PutChar
CALL WriteO
CALL WriteO
MOVLW 'd'
CALL PutChar
CALL WriteSpace
MOVLW 'm'
CALL PutChar
CALL WriteO
MOVLW 'r'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'i'
CALL PutChar
MOVLW 'n'
CALL PutChar
MOVLW 'g'
CALL PutChar
CALL WriteSpace
MOVLW 'D'
CALL PutChar
MOVLW 'a'
CALL PutChar
MOVLW 'm'
CALL PutChar
MOVLW 'a'
CALL PutChar
MOVLW 'n'
CALL PutChar
CALL WriteBang
However even without the changes, I get MAIN.ASM 709 : Illegal digit (- in decimal) error when trying to build. And on 709 line it reads "D-25" written in red. I'm using MPLAB to convert this asm file into HEX.
My questionsare, Where am I going wrong? and is the orginal source code flawed?
Any Help is appriciated. If you can somehow get this running on your system, please let me know, i'm willing to pay for the converted HEX file so I can load it on as soon as possible.