chiark / gitweb /
Debugging messages to serial port are slightly nicer.
authorian <ian>
Sun, 3 Jul 2005 21:29:22 +0000 (21:29 +0000)
committerian <ian>
Sun, 3 Jul 2005 21:29:22 +0000 (21:29 +0000)
cebpic/i2c-test-reply.asm

index 97f80c84b913d202eaf1865a171aabb180881f99..2d2083523dcbe3cce0b153d6a86160f26cc48292 100644 (file)
@@ -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