📄 gprs.lst
字号:
_asm C:\mcc18\src\traditional\startup\c018i.c
// determine if we have any more bytes to copy C:\mcc18\src\traditional\startup\c018i.c
002db8 0103 MOVLB 0x3 movlb curr_byte C:\mcc18\src\traditional\startup\c018i.c
002dba 53f8 MOVF 0xf8,0x1,0x1 movf curr_byte, 1, 1 C:\mcc18\src\traditional\startup\c018i.c
copy_loop: C:\mcc18\src\traditional\startup\c018i.c
002dbc e102 BNZ 0x2dc2 bnz 2 // copy_one_byte C:\mcc18\src\traditional\startup\c018i.c
002dbe 53f9 MOVF 0xf9,0x1,0x1 movf curr_byte + 1, 1, 1 C:\mcc18\src\traditional\startup\c018i.c
002dc0 e007 BZ 0x2dd0 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
002dc2 0009 TBLRDPOSTINC tblrdpostinc C:\mcc18\src\traditional\startup\c018i.c
002dc4 50f5 MOVF 0xf5,0x0,0x0 movf TABLAT, 0, 0 C:\mcc18\src\traditional\startup\c018i.c
002dc6 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
002dc8 07f8 DECF 0xf8,0x1,0x1 decf curr_byte, 1, 1 C:\mcc18\src\traditional\startup\c018i.c
002dca e2f8 BC 0x2dbc bc -8 // copy_loop C:\mcc18\src\traditional\startup\c018i.c
002dcc 07f9 DECF 0xf9,0x1,0x1 decf curr_byte + 1, 1, 1 C:\mcc18\src\traditional\startup\c018i.c
002dce d7f9 BRA 0x2dc2 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
002dd0 c3fc MOVFF 0x3fc,0xff6 TBLPTR = data_ptr; C:\mcc18\src\traditional\startup\c018i.c
002dd2 fff6
002dd4 c3fd MOVFF 0x3fd,0xff7
002dd6 fff7
002dd8 c3fe MOVFF 0x3fe,0xff8
002dda fff8
/* next entry... */ C:\mcc18\src\traditional\startup\c018i.c
002ddc 0103 MOVLB 0x3 curr_entry--; C:\mcc18\src\traditional\startup\c018i.c
002dde 07fa DECF 0xfa,0x1,0x1
002de0 0e00 MOVLW 0x0
002de2 5bfb SUBWFB 0xfb,0x1,0x1
002de4 d7bf BRA 0x2d64 goto test; C:\mcc18\src\traditional\startup\c018i.c
done: C:\mcc18\src\traditional\startup\c018i.c
; C:\mcc18\src\traditional\startup\c018i.c
002de6 0012 RETURN 0x0 } C:\mcc18\src\traditional\startup\c018i.c
//for simcom300 Modle E:\pic_c18\gprs\GPRS.C
#include "p18f6520.h" E:\pic_c18\gprs\GPRS.C
#include "delays.h" E:\pic_c18\gprs\GPRS.C
#include "portb.h" E:\pic_c18\gprs\GPRS.C
#include "GPRS.h" E:\pic_c18\gprs\GPRS.C
#include "gprspg.h" E:\pic_c18\gprs\GPRS.C
E:\pic_c18\gprs\GPRS.C
E:\pic_c18\gprs\GPRS.C
E:\pic_c18\gprs\GPRS.C
/********************************************************** E:\pic_c18\gprs\GPRS.C
高低中断入口 E:\pic_c18\gprs\GPRS.C
**********************************************************/ E:\pic_c18\gprs\GPRS.C
#pragma interrupt High_isr save = PROD,PCLATH,PCLATU,TBLPTR,TABLAT//,section(".tmpdata")//,section("MATH_DATA") E:\pic_c18\gprs\GPRS.C
E:\pic_c18\gprs\GPRS.C
#pragma code Highisrcode=0x0008 // Locate ISR handler code at interrupt vector E:\pic_c18\gprs\GPRS.C
void Highisrhandler(void) // This function directs execution to the E:\pic_c18\gprs\GPRS.C
{ // actual interrupt code E:\pic_c18\gprs\GPRS.C
_asm E:\pic_c18\gprs\GPRS.C
000008 ef16 GOTO 0x2c goto High_isr E:\pic_c18\gprs\GPRS.C
00000a f000
_endasm E:\pic_c18\gprs\GPRS.C
00000c 0012 RETURN 0x0 } E:\pic_c18\gprs\GPRS.C
#pragma code E:\pic_c18\gprs\GPRS.C
E:\pic_c18\gprs\GPRS.C
/* E:\pic_c18\gprs\GPRS.C
#pragma interrupt Low_isr save = PROD//,PCLATH,PCLATU,TBLPTR,TABLAT,section("MATH_DATA"),section(".tmpdata") E:\pic_c18\gprs\GPRS.C
E:\pic_c18\gprs\GPRS.C
E:\pic_c18\gprs\GPRS.C
#pragma code Lowisrcode=0x0018 E:\pic_c18\gprs\GPRS.C
void Lowisrhandler(void) E:\pic_c18\gprs\GPRS.C
{ E:\pic_c18\gprs\GPRS.C
_asm E:\pic_c18\gprs\GPRS.C
goto Low_isr E:\pic_c18\gprs\GPRS.C
_endasm E:\pic_c18\gprs\GPRS.C
} E:\pic_c18\gprs\GPRS.C
#pragma code E:\pic_c18\gprs\GPRS.C
*/ E:\pic_c18\gprs\GPRS.C
E:\pic_c18\gprs\GPRS.C
/********************************************************** E:\pic_c18\gprs\GPRS.C
高优先级中断处理子程序 E:\pic_c18\gprs\GPRS.C
**********************************************************/ E:\pic_c18\gprs\GPRS.C
00002c cfda MOVFF 0xfda,0xfe4 void High_isr(void) E:\pic_c18\gprs\GPRS.C
00002e ffe4
000030 cfe2 MOVFF 0xfe2,0xfda
000032 ffda
000034 cfe9 MOVFF 0xfe9,0xfe4
000036 ffe4
000038 cfea MOVFF 0xfea,0xfe4
00003a ffe4
00003c cff3 MOVFF 0xff3,0xfe4
00003e ffe4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -