📄 exercise1.lst
字号:
001340 0100 MOVLB 0x0 movlb curr_byte C:\mcc18\src\startup\c018i.c
001342 53a1 MOVF 0xa1,0x1,0x1 movf curr_byte, 1, 1 C:\mcc18\src\startup\c018i.c
copy_loop: C:\mcc18\src\startup\c018i.c
001344 e102 BNZ 0x134a bnz 2 // copy_one_byte C:\mcc18\src\startup\c018i.c
001346 53a2 MOVF 0xa2,0x1,0x1 movf curr_byte + 1, 1, 1 C:\mcc18\src\startup\c018i.c
001348 e007 BZ 0x1358 bz 7 // done_copying C:\mcc18\src\startup\c018i.c
C:\mcc18\src\startup\c018i.c
copy_one_byte: C:\mcc18\src\startup\c018i.c
00134a 0009 TBLRDPOSTINC tblrdpostinc C:\mcc18\src\startup\c018i.c
00134c 50f5 MOVF 0xf5,0x0,0x0 movf TABLAT, 0, 0 C:\mcc18\src\startup\c018i.c
00134e 6eee MOVWF 0xee,0x0 movwf POSTINC0, 0 C:\mcc18\src\startup\c018i.c
C:\mcc18\src\startup\c018i.c
// decrement byte counter C:\mcc18\src\startup\c018i.c
001350 07a1 DECF 0xa1,0x1,0x1 decf curr_byte, 1, 1 C:\mcc18\src\startup\c018i.c
001352 e2f8 BC 0x1344 bc -8 // copy_loop C:\mcc18\src\startup\c018i.c
001354 07a2 DECF 0xa2,0x1,0x1 decf curr_byte + 1, 1, 1 C:\mcc18\src\startup\c018i.c
001356 d7f9 BRA 0x134a bra -7 // copy_one_byte C:\mcc18\src\startup\c018i.c
C:\mcc18\src\startup\c018i.c
done_copying: C:\mcc18\src\startup\c018i.c
C:\mcc18\src\startup\c018i.c
_endasm C:\mcc18\src\startup\c018i.c
/* restore the table pointer for the next entry */ C:\mcc18\src\startup\c018i.c
001358 c0a5 MOVFF 0xa5,0xff6 TBLPTR = data_ptr; C:\mcc18\src\startup\c018i.c
00135a fff6
00135c c0a6 MOVFF 0xa6,0xff7
00135e fff7
001360 c0a7 MOVFF 0xa7,0xff8
001362 fff8
/* next entry... */ C:\mcc18\src\startup\c018i.c
001364 0100 MOVLB 0x0 curr_entry--; C:\mcc18\src\startup\c018i.c
001366 07a3 DECF 0xa3,0x1,0x1
001368 0e00 MOVLW 0x0
00136a 5ba4 SUBWFB 0xa4,0x1,0x1
00136c d7bf BRA 0x12ec goto test; C:\mcc18\src\startup\c018i.c
done: C:\mcc18\src\startup\c018i.c
; C:\mcc18\src\startup\c018i.c
00136e 0012 RETURN 0x0 } C:\mcc18\src\startup\c018i.c
/********************************************************************* C:\CAN202A\can18xx8.c
* C:\CAN202A\can18xx8.c
* PIC18CXX8 CAN C Library Source Code C:\CAN202A\can18xx8.c
* C:\CAN202A\can18xx8.c
********************************************************************* C:\CAN202A\can18xx8.c
* FileName: CAN18CXX8.C C:\CAN202A\can18xx8.c
* Dependencies: CAN18CXX8.h C:\CAN202A\can18xx8.c
* Date: 09/06/00 C:\CAN202A\can18xx8.c
* Processor: PIC18CXX8 C:\CAN202A\can18xx8.c
* Complier: MPLAB 5.11.00 C:\CAN202A\can18xx8.c
* Company: Microchip Technology, Inc. C:\CAN202A\can18xx8.c
* C:\CAN202A\can18xx8.c
* Software License Agreement C:\CAN202A\can18xx8.c
* C:\CAN202A\can18xx8.c
* The software supplied herewith by Microchip Technology Incorporated C:\CAN202A\can18xx8.c
* (the 揅ompany? for its PICmicro?Microcontroller is intended and C:\CAN202A\can18xx8.c
* supplied to you, the Company抯 customer, for use solely and C:\CAN202A\can18xx8.c
* exclusively on Microchip PICmicro Microcontroller products. The C:\CAN202A\can18xx8.c
* software is owned by the Company and/or its supplier, and is C:\CAN202A\can18xx8.c
* protected under applicable copyright laws. All rights are reserved. C:\CAN202A\can18xx8.c
* Any use in violation of the foregoing restrictions may subject the C:\CAN202A\can18xx8.c
* user to criminal sanctions under applicable laws, as well as to C:\CAN202A\can18xx8.c
* civil liability for the breach of the terms and conditions of this C:\CAN202A\can18xx8.c
* license. C:\CAN202A\can18xx8.c
* C:\CAN202A\can18xx8.c
* THIS SOFTWARE IS PROVIDED IN AN 揂S IS?CONDITION. NO WARRANTIES, C:\CAN202A\can18xx8.c
* WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED C:\CAN202A\can18xx8.c
* TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A C:\CAN202A\can18xx8.c
* PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, C:\CAN202A\can18xx8.c
* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR C:\CAN202A\can18xx8.c
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. C:\CAN202A\can18xx8.c
* C:\CAN202A\can18xx8.c
* Author Date Comment C:\CAN202A\can18xx8.c
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\CAN202A\can18xx8.c
* Nilesh Rajbharti 9/6/00 Original (Rev 1.0) C:\CAN202A\can18xx8.c
* Nilesh Rajbharti 12/1/00 Fixed bugs. C:\CAN202A\can18xx8.c
* (CANRegsToID, CANReceiveMessage, C:\CAN202A\can18xx8.c
* CANSetMask + Added C:\CAN202A\can18xx8.c
* CAN_CONFIG_DBL_BUFFER_ON/OFF option) C:\CAN202A\can18xx8.c
* Nilesh Rajbharti 6/8/01 Renamed CAN_CONFIG_DBL_BUFFERED to C:\CAN202A\can18xx8.c
* CAN_RX_DBL_BUFFERED C:\CAN202A\can18xx8.c
* Nilesh Rajbharti 10/11/01 Added support for HITECH compiler C:\CAN202A\can18xx8.c
* Modified CAN_MESSAGE_ID def to be C:\CAN202A\can18xx8.c
* compatible with HITECH Compiler C:\CAN202A\can18xx8.c
* (Rev 1.1) C:\CAN202A\can18xx8.c
* Nilesh Rajbharti 6/5/02 Modified RXB0DLC_RTR def to fix compiler C:\CAN202A\can18xx8.c
* missing def problem. C:\CAN202A\can18xx8.c
* Fixed CANIDToRegs() where "static" C:\CAN202A\can18xx8.c
* mode would not compile. (Rev 1.2) C:\CAN202A\can18xx8.c
* C:\CAN202A\can18xx8.c
********************************************************************/ C:\CAN202A\can18xx8.c
#include "can18xx8.h" C:\CAN202A\can18xx8.c
C:\CAN202A\can18xx8.c
#if defined(MCHP_C18) C:\CAN202A\can18xx8.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -