📄 jxy_io.lst
字号:
* for the entry. C:\MCC18\src\traditional\startup\c018i.c
*/ C:\MCC18\src\traditional\startup\c018i.c
000082 cff6 MOVFF 0xff6,0x87 data_ptr = TBLPTR; C:\MCC18\src\traditional\startup\c018i.c
000084 f087
000086 cff7 MOVFF 0xff7,0x88
000088 f088
00008a cff8 MOVFF 0xff8,0x89
00008c f089
C:\MCC18\src\traditional\startup\c018i.c
/* now assign the source address to the table pointer */ C:\MCC18\src\traditional\startup\c018i.c
00008e c080 MOVFF 0x80,0xff6 TBLPTR = prom; C:\MCC18\src\traditional\startup\c018i.c
000090 fff6
000092 c081 MOVFF 0x81,0xff7
000094 fff7
000096 c082 MOVFF 0x82,0xff8
000098 fff8
C:\MCC18\src\traditional\startup\c018i.c
/* do the copy loop */ C:\MCC18\src\traditional\startup\c018i.c
_asm C:\MCC18\src\traditional\startup\c018i.c
// determine if we have any more bytes to copy C:\MCC18\src\traditional\startup\c018i.c
00009a 0100 MOVLB 0x0 movlb curr_byte C:\MCC18\src\traditional\startup\c018i.c
00009c 5383 MOVF 0x83,0x1,0x1 movf curr_byte, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
copy_loop: C:\MCC18\src\traditional\startup\c018i.c
00009e e102 BNZ 0xa4 bnz 2 // copy_one_byte C:\MCC18\src\traditional\startup\c018i.c
0000a0 5384 MOVF 0x84,0x1,0x1 movf curr_byte + 1, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
0000a2 e007 BZ 0xb2 bz 7 // done_copying C:\MCC18\src\traditional\startup\c018i.c
C:\MCC18\src\traditional\startup\c018i.c
copy_one_byte: C:\MCC18\src\traditional\startup\c018i.c
0000a4 0009 TBLRDPOSTINC tblrdpostinc C:\MCC18\src\traditional\startup\c018i.c
0000a6 50f5 MOVF 0xf5,0x0,0x0 movf TABLAT, 0, 0 C:\MCC18\src\traditional\startup\c018i.c
0000a8 6eee MOVWF 0xee,0x0 movwf POSTINC0, 0 C:\MCC18\src\traditional\startup\c018i.c
C:\MCC18\src\traditional\startup\c018i.c
// decrement byte counter C:\MCC18\src\traditional\startup\c018i.c
0000aa 0783 DECF 0x83,0x1,0x1 decf curr_byte, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
0000ac e2f8 BC 0x9e bc -8 // copy_loop C:\MCC18\src\traditional\startup\c018i.c
0000ae 0784 DECF 0x84,0x1,0x1 decf curr_byte + 1, 1, 1 C:\MCC18\src\traditional\startup\c018i.c
0000b0 d7f9 BRA 0xa4 bra -7 // copy_one_byte C:\MCC18\src\traditional\startup\c018i.c
C:\MCC18\src\traditional\startup\c018i.c
done_copying: C:\MCC18\src\traditional\startup\c018i.c
C:\MCC18\src\traditional\startup\c018i.c
_endasm C:\MCC18\src\traditional\startup\c018i.c
/* restore the table pointer for the next entry */ C:\MCC18\src\traditional\startup\c018i.c
0000b2 c087 MOVFF 0x87,0xff6 TBLPTR = data_ptr; C:\MCC18\src\traditional\startup\c018i.c
0000b4 fff6
0000b6 c088 MOVFF 0x88,0xff7
0000b8 fff7
0000ba c089 MOVFF 0x89,0xff8
0000bc fff8
/* next entry... */ C:\MCC18\src\traditional\startup\c018i.c
0000be 0100 MOVLB 0x0 curr_entry--; C:\MCC18\src\traditional\startup\c018i.c
0000c0 0785 DECF 0x85,0x1,0x1
0000c2 0e00 MOVLW 0x0
0000c4 5b86 SUBWFB 0x86,0x1,0x1
0000c6 d7bf BRA 0x46 goto test; C:\MCC18\src\traditional\startup\c018i.c
done: C:\MCC18\src\traditional\startup\c018i.c
; C:\MCC18\src\traditional\startup\c018i.c
0000c8 0012 RETURN 0x0 } C:\MCC18\src\traditional\startup\c018i.c
#include<p18f4620.h> E:\2420\LAB\JXY\IO\IO.C
#define LED1 LATDbits.LATD6 E:\2420\LAB\JXY\IO\IO.C
#define LED2 LATDbits.LATD7 E:\2420\LAB\JXY\IO\IO.C
#define KEY1 PORTDbits.RD0 E:\2420\LAB\JXY\IO\IO.C
#define KEY2 PORTDbits.RD1 E:\2420\LAB\JXY\IO\IO.C
E:\2420\LAB\JXY\IO\IO.C
#define IO_INIT()\ E:\2420\LAB\JXY\IO\IO.C
{\ E:\2420\LAB\JXY\IO\IO.C
TRISDbits.TRISD0=1;\ E:\2420\LAB\JXY\IO\IO.C
TRISDbits.TRISD1=1;\ E:\2420\LAB\JXY\IO\IO.C
TRISDbits.TRISD6=0;\ E:\2420\LAB\JXY\IO\IO.C
TRISDbits.TRISD7=0;\ E:\2420\LAB\JXY\IO\IO.C
} E:\2420\LAB\JXY\IO\IO.C
#define LED_INIT()\ E:\2420\LAB\JXY\IO\IO.C
{\ E:\2420\LAB\JXY\IO\IO.C
LED1=0;\ E:\2420\LAB\JXY\IO\IO.C
LED2=0;\ E:\2420\LAB\JXY\IO\IO.C
} E:\2420\LAB\JXY\IO\IO.C
E:\2420\LAB\JXY\IO\IO.C
0000ca cfd9 MOVFF 0xfd9,0xfe6 void wait() E:\2420\LAB\JXY\IO\IO.C
0000cc ffe6
0000ce cfe1 MOVFF 0xfe1,0xfd9
0000d0 ffd9
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -