From 20c78432745c2532bc5ee435929f7711451c9ccf Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 3 Jul 2005 21:29:22 +0000 Subject: [PATCH] Debugging messages to serial port are slightly nicer. --- cebpic/i2c-test-reply.asm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cebpic/i2c-test-reply.asm b/cebpic/i2c-test-reply.asm index 97f80c8..2d20835 100644 --- a/cebpic/i2c-test-reply.asm +++ b/cebpic/i2c-test-reply.asm @@ -216,6 +216,8 @@ vector_reset call serial_setup + debug 10 + debug 13 debug 'a' call copy_per_pic_data @@ -610,6 +612,8 @@ copy_per_pic_data ; copies PIC-dependent info out of flash memory to RAM ; see README.protocol + debug 'P' + movlw (F_PIC_NO >> 16) & 0xff ; set table pointer to point to movwf TBLPTRU ; PIC number in flash movlw (F_PIC_NO >> 8) & 0xff @@ -624,8 +628,7 @@ copy_per_pic_data movf TABLAT,0,0 ; move pic number into normal memory movwf PIC_NO,1 - iorlw '0' - call polling_serial_transmit + debughf TABLAT tblrd * ; read i2c @@ -634,8 +637,7 @@ copy_per_pic_data ; now have: PIC number in 400h, i2c control byte in 401h - see ; RAM variables re i2c specific stuff, above - iorlw '0' - call polling_serial_transmit + debughf TABLAT return -- 2.30.2