📄 main.s51
字号:
//////////////////////////////////////////////////////////////////////////////
// /
// IAR 8051 C/C++ Compiler V7.20H/W32 11/Dec/2008 13:41:48 /
// Copyright 2004-2006 IAR Systems. All rights reserved. /
// /
// Core = plain /
// Code model = near /
// Data model = large /
// Calling convention = xdata reentrant /
// Constant location = data /
// Dptr setup = 1,16 /
// Source file = D:\zigbee\演示程序\简化协议的无线收发演示\demo_p /
// ro\src\main.c /
// Command line = -lC D:\zigbee\演示程序\简化协议的无线收发演示\de /
// mo_pro\Debug\List\ -lA D:\zigbee\演示程序\简化协 /
// 议的无线收发演示\demo_pro\Debug\List\ -o /
// D:\zigbee\演示程序\简化协议的无线收发演示\demo_p /
// ro\Debug\Obj\ -e -z2 --no_cse --no_unroll /
// --no_inline --no_code_motion --no_tbaa --debug /
// --core=plain --dptr=16,1 --data_model=large /
// --code_model=near --calling_convention=xdata_ree /
// ntrant --place_constants=data --nr_virtual_regs /
// 8 -I "C:\Program Files\IAR Systems\Embedded /
// Workbench 4.05 Evaluation version\8051\INC\" -I /
// "C:\Program Files\IAR Systems\Embedded /
// Workbench 4.05 Evaluation /
// version\8051\INC\CLIB\" /
// D:\zigbee\演示程序\简化协议的无线收发演示\demo_p /
// ro\src\main.c /
// List file = D:\zigbee\演示程序\简化协议的无线收发演示\demo_p /
// ro\Debug\List\main.s51 /
// /
// /
//////////////////////////////////////////////////////////////////////////////
NAME main
RTMODEL "__calling_convention", "xdata_reentrant"
RTMODEL "__code_model", "near"
RTMODEL "__core", "plain"
RTMODEL "__data_model", "large"
RTMODEL "__dptr_size", "16"
RTMODEL "__extended_stack", "disabled"
RTMODEL "__location_for_constants", "data"
RTMODEL "__number_of_dptrs", "1"
RTMODEL "__rt_version", "1"
RSEG DOVERLAY:DATA:NOROOT(0)
RSEG IOVERLAY:IDATA:NOROOT(0)
RSEG ISTACK:IDATA:NOROOT(0)
RSEG PSTACK:XDATA:NOROOT(0)
RSEG XSTACK:XDATA:NOROOT(0)
PUBWEAK _A_IEN0
PUBLIC main
FUNCTION main,021a03H
CFI Names cfiNames0
CFI StackFrame CFA_SP SP DATA
CFI StackFrame CFA_PSP16 PSP16 XDATA
CFI StackFrame CFA_XSP16 XSP16 XDATA
CFI StaticOverlayFrame CFA_IOVERLAY IOVERLAY
CFI StaticOverlayFrame CFA_DOVERLAY DOVERLAY
CFI Resource `PSW.CY`:1, `B.BR0`:1, `B.BR1`:1, `B.BR2`:1, `B.BR3`:1
CFI Resource `B.BR4`:1, `B.BR5`:1, `B.BR6`:1, `B.BR7`:1, `VB.BR8`:1
CFI Resource `VB.BR9`:1, `VB.BR10`:1, `VB.BR11`:1, `VB.BR12`:1
CFI Resource `VB.BR13`:1, `VB.BR14`:1, `VB.BR15`:1, VB:8, B:8, A:8
CFI Resource PSW:8, DPL0:8, DPH0:8, R0:8, R1:8, R2:8, R3:8, R4:8, R5:8
CFI Resource R6:8, R7:8, V0:8, V1:8, V2:8, V3:8, V4:8, V5:8, V6:8, V7:8
CFI Resource SP:8, PSPH:8, PSPL:8, PSP16:16, XSPH:8, XSPL:8, XSP16:16
CFI VirtualResource ?RET:16, ?RET_HIGH:8, ?RET_LOW:8
CFI ResourceParts PSP16 PSPH, PSPL
CFI ResourceParts XSP16 XSPH, XSPL
CFI ResourceParts ?RET ?RET_HIGH, ?RET_LOW
CFI EndNames cfiNames0
CFI Common cfiCommon0 Using cfiNames0
CFI CodeAlign 1
CFI DataAlign -1
CFI ReturnAddress ?RET CODE
CFI CFA_DOVERLAY Used
CFI CFA_IOVERLAY Used
CFI CFA_SP SP+-2
CFI CFA_PSP16 PSP16+0
CFI CFA_XSP16 XSP16+0
CFI `PSW.CY` SameValue
CFI `B.BR0` SameValue
CFI `B.BR1` SameValue
CFI `B.BR2` SameValue
CFI `B.BR3` SameValue
CFI `B.BR4` SameValue
CFI `B.BR5` SameValue
CFI `B.BR6` SameValue
CFI `B.BR7` SameValue
CFI `VB.BR8` SameValue
CFI `VB.BR9` SameValue
CFI `VB.BR10` SameValue
CFI `VB.BR11` SameValue
CFI `VB.BR12` SameValue
CFI `VB.BR13` SameValue
CFI `VB.BR14` SameValue
CFI `VB.BR15` SameValue
CFI VB SameValue
CFI B Undefined
CFI A Undefined
CFI PSW SameValue
CFI DPL0 SameValue
CFI DPH0 SameValue
CFI R0 Undefined
CFI R1 Undefined
CFI R2 Undefined
CFI R3 Undefined
CFI R4 Undefined
CFI R5 Undefined
CFI R6 SameValue
CFI R7 SameValue
CFI V0 SameValue
CFI V1 SameValue
CFI V2 SameValue
CFI V3 SameValue
CFI V4 SameValue
CFI V5 SameValue
CFI V6 SameValue
CFI V7 SameValue
CFI PSPH Undefined
CFI PSPL Undefined
CFI XSPH Undefined
CFI XSPL Undefined
CFI ?RET Concat
CFI ?RET_HIGH Frame(CFA_SP, 2)
CFI ?RET_LOW Frame(CFA_SP, 1)
CFI EndCommon cfiCommon0
EXTERN halInit
FUNCTION halInit,0202H
EXTERN evbInit
FUNCTION evbInit,0202H
EXTERN conPrintROMString_func
FUNCTION conPrintROMString_func,0202H
EXTERN phyInit
FUNCTION phyInit,0202H
EXTERN macInit
FUNCTION macInit,0202H
EXTERN conPrintConfig
FUNCTION conPrintConfig,0202H
EXTERN evbLedSet
FUNCTION evbLedSet,0202H
EXTERN macInitRadio
FUNCTION macInitRadio,0202H
EXTERN macSetPANID
FUNCTION macSetPANID,0202H
EXTERN macSetChannel
FUNCTION macSetChannel,0202H
EXTERN macSetShortAddr
FUNCTION macSetShortAddr,0202H
EXTERN MainLoop
FUNCTION MainLoop,0202H
EXTERN debug_level
// D:\zigbee\演示程序\简化协议的无线收发演示\demo_pro\src\main.c
// 1
// 2
// 3 #include "msstate_lrwpan.h"
// 4 #include "wllocate.h"
// 5
// 6
// 7 //;#pragma segment="MYSEGMENTA"
RSEG NEAR_CODE:CODE:NOROOT(0)
// 8 void main (void)
main:
CFI Block cfiBlock0 Using cfiCommon0
CFI Function main
// 9 {
FUNCALL main, halInit
FUNCALL main, evbInit
FUNCALL main, conPrintROMString_func
FUNCALL main, phyInit
FUNCALL main, macInit
FUNCALL main, conPrintConfig
FUNCALL main, evbLedSet
FUNCALL main, evbLedSet
FUNCALL main, macInitRadio
FUNCALL main, macSetPANID
FUNCALL main, macSetChannel
FUNCALL main, macSetShortAddr
FUNCALL main, conPrintROMString_func
FUNCALL main, MainLoop
; Auto size: 0
// 10 halInit();
; Setup parameters for call to function halInit
LCALL halInit
// 11 evbInit();
; Setup parameters for call to function evbInit
LCALL evbInit
// 12 conPrintROMString("Startup...\n");
; Setup parameters for call to function conPrintROMString_func
MOV R2,#(??xxxxromstr & 0xff)
MOV R3,#((??xxxxromstr >> 8) & 0xff)
LCALL conPrintROMString_func
// 13
// 14 debug_level = 10;
MOV A,#0xa
MOV DPTR,#debug_level
MOVX @DPTR,A
// 15 phyInit();
; Setup parameters for call to function phyInit
LCALL phyInit
// 16 macInit();
; Setup parameters for call to function macInit
LCALL macInit
// 17
// 18 conPrintConfig();
; Setup parameters for call to function conPrintConfig
LCALL conPrintConfig
// 19 ENABLE_GLOBAL_INTERRUPT(); //enable interrupts
SETB 0xa8.7
// 20
// 21 EVB_LED1_OFF();
; Setup parameters for call to function evbLedSet
MOV R2,#0x0
MOV R1,#0x1
LCALL evbLedSet
// 22 EVB_LED2_OFF();
; Setup parameters for call to function evbLedSet
MOV R2,#0x0
MOV R1,#0x2
LCALL evbLedSet
// 23
// 24 macInitRadio();
; Setup parameters for call to function macInitRadio
LCALL macInitRadio
// 25 macSetPANID(LRWPAN_DEFAULT_PANID);
; Setup parameters for call to function macSetPANID
MOV R2,#0x47
MOV R3,#0x13
LCALL macSetPANID
// 26 macSetChannel(LRWPAN_DEFAULT_START_CHANNEL);
; Setup parameters for call to function macSetChannel
MOV R1,#0xb
LCALL macSetChannel
// 27 macSetShortAddr(0);
; Setup parameters for call to function macSetShortAddr
MOV R2,#0x0
MOV R3,#0x0
LCALL macSetShortAddr
// 28
// 29
// 30 conPrintROMString("Main loop ...\n");
; Setup parameters for call to function conPrintROMString_func
MOV R2,#(??xxxxromstr_1 & 0xff)
MOV R3,#((??xxxxromstr_1 >> 8) & 0xff)
LCALL conPrintROMString_func
// 31
// 32 #if 1
// 33 MainLoop();
; Setup parameters for call to function MainLoop
LCALL MainLoop
// 34 #else
// 35 while (1)
// 36 {
// 37 macFSM();
// 38 }
// 39 #endif
// 40 }
RET
CFI EndBlock cfiBlock0
RSEG CODE_C:CODE:REORDER:NOROOT(0)
??xxxxromstr:
DB "Startup...\012"
RSEG CODE_C:CODE:REORDER:NOROOT(0)
??xxxxromstr_1:
DB "Main loop ...\012"
ASEGN SFR_AN:DATA:NOROOT,0a8H
// union <unnamed> volatile __sfr _A_IEN0
_A_IEN0:
DS 1
END
// 41
//
// 27 bytes in segment CODE_C
// 77 bytes in segment NEAR_CODE
// 1 byte in segment SFR_AN
//
// 104 bytes of CODE memory
// 0 bytes of DATA memory (+ 1 byte shared)
//
//Errors: none
//Warnings: none
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -