📄 leds.lst
字号:
leds.elf: file format elf32-msp430SYMBOL TABLE:0000f000 l d .text 00000000 00000200 l d .data 00000000 00000c00 l d .bootloader 00000000 00001000 l d .infomem 00000000 00001000 l d .infomemnobits 00000000 00000200 l d .bss 00000000 00000200 l d .noinit 00000000 0000ffe0 l d .vectors 00000000 00000000 l d .stab 00000000 00000000 l d .stabstr 00000000 00000000 l d *ABS* 00000000 00000000 l d *ABS* 00000000 00000000 l d *ABS* 00000000 00000000 l df *ABS* 00000000 config/msp430/libgcc.S00000000 l df *ABS* 00000000 <command line>00000000 l df *ABS* 00000000 <built-in>00000000 l df *ABS* 00000000 config/msp430/libgcc.S00000000 l df *ABS* 00000000 gcrt0.S00000000 l df *ABS* 00000000 gcrt0.S00000000 l df *ABS* 00000000 <command line>00000000 l df *ABS* 00000000 <built-in>00000000 l df *ABS* 00000000 gcrt0.S00000056 l *ABS* 00000000 DCOCTL00000057 l *ABS* 00000000 BCSCTL100000058 l *ABS* 00000000 BCSCTL200000128 l *ABS* 00000000 FCTL10000012a l *ABS* 00000000 FCTL20000012c l *ABS* 00000000 FCTL300000054 l *ABS* 00000000 EPCTL0000012e l *ABS* 00000000 TAIV00000160 l *ABS* 00000000 TACTL00000162 l *ABS* 00000000 TACCTL000000164 l *ABS* 00000000 TACCTL100000166 l *ABS* 00000000 TACCTL200000170 l *ABS* 00000000 TAR00000172 l *ABS* 00000000 TACCR000000174 l *ABS* 00000000 TACCR100000176 l *ABS* 00000000 TACCR200000162 l *ABS* 00000000 CCTL000000164 l *ABS* 00000000 CCTL100000166 l *ABS* 00000000 CCTL200000172 l *ABS* 00000000 CCR000000174 l *ABS* 00000000 CCR100000176 l *ABS* 00000000 CCR200000020 l *ABS* 00000000 P1IN00000021 l *ABS* 00000000 P1OUT00000022 l *ABS* 00000000 P1DIR00000023 l *ABS* 00000000 P1IFG00000024 l *ABS* 00000000 P1IES00000025 l *ABS* 00000000 P1IE00000026 l *ABS* 00000000 P1SEL00000028 l *ABS* 00000000 P2IN00000029 l *ABS* 00000000 P2OUT0000002a l *ABS* 00000000 P2DIR0000002b l *ABS* 00000000 P2IFG0000002c l *ABS* 00000000 P2IES0000002d l *ABS* 00000000 P2IE0000002e l *ABS* 00000000 P2SEL00000059 l *ABS* 00000000 CACTL10000005a l *ABS* 00000000 CACTL20000005b l *ABS* 00000000 CAPD00000120 l *ABS* 00000000 WDTCTL00000000 l *ABS* 00000000 IE100000002 l *ABS* 00000000 IFG100000000 l df *ABS* 00000000 main.c0000f0ca l .text 00000000 Letext00000000 l df *ABS* 00000000 config/msp430/libgcc.S00000000 l df *ABS* 00000000 <command line>00000000 l df *ABS* 00000000 <built-in>00000000 l df *ABS* 00000000 config/msp430/libgcc.S0000f0ce g .text 00000000 _etext0000f0ca w .text 00000000 __stop_progExec__0000f03a g .text 00000000 _unexpected_1_0000f03a w .text 00000000 vector_ffe00000f03a w .text 00000000 vector_ffec0000f03a w .text 00000000 vector_fff00000f03a g .text 00000000 __dtors_end00000200 g .bss 00000000 __bss_end0000f03a w .text 00000000 vector_fffc0000f03a w .text 00000000 vector_ffe40000ffe0 g O .vectors 00000020 InterruptVectors0000f03a w .text 00000000 vector_ffe20000f03a w .text 00000000 vector_ffe80000f03e w .text 00000000 _unexpected_0000f03a w .text 00000000 vector_fffa0000f000 g .text 00000000 _reset_vector__0000f03a g .text 00000000 __ctors_start00000200 g .bss 00000000 __bss_start0000f03a w .text 00000000 vector_ffee0000f03a w .text 00000000 vector_fff40000f052 g F .text 00000078 main0000f03a w .text 00000000 vector_fff80000f03a w .text 00000000 vector_fff200010000 g .vectors 00000000 _vectors_end0000f03a w .text 00000000 vector_ffe60000f040 g F .text 00000012 delay0000f03a g .text 00000000 __dtors_start0000f03a g .text 00000000 __ctors_end00000300 g *ABS* 00000000 __stack00000200 g .data 00000000 _edata00000200 g .noinit 00000000 _end0000f03a w .text 00000000 vector_fff600000200 g .data 00000000 __data_start0000f03a w .text 00000000 vector_ffeaDisassembly of section .text:0000f000 <_reset_vector__>: f000: b2 40 80 5a mov #23168, &0x0120 ;#0x5a80 f004: 20 01 f006: 3f 40 ce f0 mov #-3890, r15 ;#0xf0ce f00a: 3e 40 00 02 mov #512, r14 ;#0x0200 f00e: 3d 40 00 02 mov #512, r13 ;#0x0200 f012: 0d 9e cmp r14, r13 ; f014: 05 24 jz $+12 ;abs 0xf020 f016: fe 4f 00 00 mov.b @r15+, 0(r14) ; f01a: 1e 53 inc r14 ; f01c: 0e 9d cmp r13, r14 ; f01e: fb 2b jnc $-8 ;abs 0xf016 f020: 3f 40 00 02 mov #512, r15 ;#0x0200 f024: 3d 40 00 02 mov #512, r13 ;#0x0200 f028: 0d 9f cmp r15, r13 ; f02a: 05 24 jz $+12 ;abs 0xf036 f02c: cf 43 00 00 mov.b #0, 0(r15) ;r3 As==00 f030: 1f 53 inc r15 ; f032: 0f 9d cmp r13, r15 ; f034: fb 2b jnc $-8 ;abs 0xf02c f036: 30 40 52 f0 br #0xf052 ;0000f03a <__ctors_end>: f03a: 30 40 3e f0 br #0xf03e ;0000f03e <_unexpected_>: f03e: 00 13 reti 0000f040 <delay>:Delay function.
*/
void delay(unsigned int d) {
int i;
for (i = 0; i<d; i++) {
f040: 0e 43 clr r14 ; f042: 0e 9f cmp r15, r14 ; f044: 05 2c jc $+12 ;abs 0xf050 nop();
f046: 03 43 nop nop();
f048: 03 43 nop f04a: 1e 53 inc r14 ; f04c: 0e 9f cmp r15, r14 ; f04e: fb 2b jnc $-8 ;abs 0xf046 }
}
f050: 30 41 ret 0000f052 <main>:
/**
Main function with some blinking leds
*/
int main(void) {
f052: 31 40 00 03 mov #768, r1 ;#0x0300 int i;
int o = 0;
f056: 0a 43 clr r10 ;
WDTCTL = WDTCTL_INIT; //Init watchdog timer
f058: b2 40 80 5a mov #23168, &0x0120 ;#0x5a80 f05c: 20 01
P1OUT = P1OUT_INIT; //Init output data of port1
f05e: c2 43 21 00 mov.b #0, &0x0021 ;r3 As==00 P2OUT = P2OUT_INIT; //Init output data of port2
f062: c2 43 29 00 mov.b #0, &0x0029 ;r3 As==00
P1SEL = P1SEL_INIT; //Select port or module -function on port1
f066: c2 43 26 00 mov.b #0, &0x0026 ;r3 As==00 P2SEL = P2SEL_INIT; //Select port or module -function on port2
f06a: c2 43 2e 00 mov.b #0, &0x002e ;r3 As==00
P1DIR = P1DIR_INIT; //Init port direction register of port1
f06e: f2 43 22 00 mov.b #-1, &0x0022 ;r3 As==11 P2DIR = P2DIR_INIT; //Init port direction register of port2
f072: f2 43 2a 00 mov.b #-1, &0x002a ;r3 As==11
P1IES = P1IES_INIT; //init port interrupts
f076: c2 43 24 00 mov.b #0, &0x0024 ;r3 As==00 P2IES = P2IES_INIT;
f07a: c2 43 2c 00 mov.b #0, &0x002c ;r3 As==00 P1IE = P1IE_INIT;
f07e: c2 43 25 00 mov.b #0, &0x0025 ;r3 As==00 P2IE = P2IE_INIT;
f082: c2 43 2d 00 mov.b #0, &0x002d ;r3 As==00
while (1) { //main loop, never ends...
f086: 18 43 mov #1, r8 ;r3 As==01 f088: 39 40 80 00 mov #128, r9 ;#0x0080 for (i=0; i<8; i++, o++) {
f08c: 0b 43 clr r11 ; P1OUT = (1<<i) | (0x80>>(o&7));
f08e: 0e 4b mov r11, r14 ; f090: 0f 48 mov r8, r15 ; f092: 0e 93 cmp #0, r14 ;r3 As==00 f094: 03 24 jz $+8 ;abs 0xf09c f096: 0f 5f rla r15 ; f098: 1e 83 dec r14 ; f09a: fd 23 jnz $-4 ;abs 0xf096 f09c: 0d 4a mov r10, r13 ; f09e: 3d f0 07 00 and #7, r13 ;#0x0007 f0a2: 0e 49 mov r9, r14 ; f0a4: 0d 93 cmp #0, r13 ;r3 As==00 f0a6: 03 24 jz $+8 ;abs 0xf0ae f0a8: 0e 11 rra r14 ; f0aa: 1d 83 dec r13 ; f0ac: fd 23 jnz $-4 ;abs 0xf0a8 f0ae: 4f de bis.b r14, r15 ; f0b0: c2 4f 21 00 mov.b r15, &0x0021 ; delay(0x4fff);
f0b4: 3f 40 ff 4f mov #20479, r15 ;#0x4fff f0b8: b0 12 40 f0 call #-4032 ;#0xf040 f0bc: 1b 53 inc r11 ; f0be: 1a 53 inc r10 ; f0c0: 3b 92 cmp #8, r11 ;r2 As==11 f0c2: e5 3b jl $-52 ;abs 0xf08e f0c4: e3 3f jmp $-56 ;abs 0xf08c }
}
}
f0c6: 30 40 ca f0 br #0xf0ca ;0000f0ca <__stop_progExec__>: f0ca: 02 df bis r15, r2 ; f0cc: fe 3f jmp $-2 ;abs 0xf0caDisassembly of section .vectors:0000ffe0 <InterruptVectors>: ffe0: 3a f0 3a f0 3a f0 3a f0 3a f0 3a f0 3a f0 3a f0 :.:.:.:.:.:.:.:. fff0: 3a f0 3a f0 3a f0 3a f0 3a f0 3a f0 3a f0 00 f0 :.:.:.:.:.:.:...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -