From 362372a04258577fc80a5bae3ae3d5a12de974e2 Mon Sep 17 00:00:00 2001 From: ceb Date: Mon, 7 Feb 2005 00:04:54 +0000 Subject: [PATCH] i2c-test formatting to match corrected tblrd_test --- cebpic/i2c-test.asm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cebpic/i2c-test.asm b/cebpic/i2c-test.asm index 28df43b..1b7f7ce 100644 --- a/cebpic/i2c-test.asm +++ b/cebpic/i2c-test.asm @@ -139,12 +139,14 @@ initialise tblrd *+ ; read then increment pointer ; (now points to i2c control byte) - movlb I2C_BUFF_PAGE ; ser BSR=i2c BSR (4) - movff TABLAT, PIC_NO ; move pic number into normal memory + movlb I2C_BUFF_PAGE ; ser BSR=i2c BSR (4) + movf TABLAT,0,0 ; move pic number into normal memory + movwf PIC_NO,1 - tblrd * ; read i2c + tblrd * ; read i2c - movff TABLAT, I2C_CTRL ; move i2c_ctrl byte into normal memory + movf TABLAT,0,0 ; move i2c_ctrl byte into normal memory + movwf I2C_CTRL,1 ; now have: PIC number in 400h, i2c control byte in 401h -- 2.30.2