?? zu.asm
字號:
; Archelon URCC C 3.20 2004/05/20
; MSP430 CIF 2004/04/22
; Compiled "D:\AQ430_4K\test_R\zu.c" Sat Nov 04 14:16:58 2006
;
.dbgseg dbg_syms
.align 0x2
.long 0x6c69662e
.long 0x65
.long 0x1
.long 0x0
.long 0x167fffe
.long 0x0
.long DBG5
.long 0x0
.long 0x0
.long 0x0
; __builtin__ unsigned short _BIS_SR(unsigned short);
; __builtin__ unsigned short _BIC_SR(unsigned short);
; __builtin__ unsigned short _BIS_SR_IRQ(unsigned short);
; __builtin__ unsigned short _BIC_SR_IRQ(unsigned short);
; __builtin__ void _DINT(void);
; __builtin__ void _EINT(void);
; __builtin__ void _NOP(void);
; __builtin__ void _OPC(const unsigned short op);
; __builtin__ short _SWPB(short);
; __builtin__ long _SWPB_LONG(long);
; __builtin__ float _SWPB_FLOAT(float);
; sfrb IE1 = (0x0000) ;
; sfrb IFG1 = (0x0002) ;
; sfrb IE2 = (0x0001) ;
; sfrb IFG2 = (0x0003) ;
; sfrw WDTCTL = (0x0120) ;
; const sfrb P1IN = (0x0020) ;
; sfrb P1OUT = (0x0021) ;
; sfrb P1DIR = (0x0022) ;
; sfrb P1IFG = (0x0023) ;
; sfrb P1IES = (0x0024) ;
; sfrb P1IE = (0x0025) ;
; sfrb P1SEL = (0x0026) ;
; const sfrb P2IN = (0x0028) ;
; sfrb P2OUT = (0x0029) ;
; sfrb P2DIR = (0x002A) ;
; sfrb P2IFG = (0x002B) ;
; sfrb P2IES = (0x002C) ;
; sfrb P2IE = (0x002D) ;
; sfrb P2SEL = (0x002E) ;
; const sfrb P3IN = (0x0018) ;
; sfrb P3OUT = (0x0019) ;
; sfrb P3DIR = (0x001A) ;
; sfrb P3SEL = (0x001B) ;
; const sfrb P4IN = (0x001C) ;
; sfrb P4OUT = (0x001D) ;
; sfrb P4DIR = (0x001E) ;
; sfrb P4SEL = (0x001F) ;
; const sfrb P5IN = (0x0030) ;
; sfrb P5OUT = (0x0031) ;
; sfrb P5DIR = (0x0032) ;
; sfrb P5SEL = (0x0033) ;
; const sfrb P6IN = (0x0034) ;
; sfrb P6OUT = (0x0035) ;
; sfrb P6DIR = (0x0036) ;
; sfrb P6SEL = (0x0037) ;
; sfrb BTCTL = (0x0040) ;
; sfrb BTCNT1 = (0x0046) ;
; sfrb BTCNT2 = (0x0047) ;
; sfrb SCFI0 = (0x0050) ;
; sfrb SCFI1 = (0x0051) ;
; sfrb SCFQCTL = (0x0052) ;
; sfrb FLL_CTL0 = (0x0053) ;
; sfrb FLL_CTL1 = (0x0054) ;
; sfrb SVSCTL = (0x0056) ;
; sfrb LCDCTL = (0x0090) ;
; sfrb LCDM1 = (0x0091) ;
; sfrb LCDM2 = (0x0092) ;
; sfrb LCDM3 = (0x0093) ;
; sfrb LCDM4 = (0x0094) ;
; sfrb LCDM5 = (0x0095) ;
; sfrb LCDM6 = (0x0096) ;
; sfrb LCDM7 = (0x0097) ;
; sfrb LCDM8 = (0x0098) ;
; sfrb LCDM9 = (0x0099) ;
; sfrb LCDM10 = (0x009A) ;
; sfrb LCDM11 = (0x009B) ;
; sfrb LCDM12 = (0x009C) ;
; sfrb LCDM13 = (0x009D) ;
; sfrb LCDM14 = (0x009E) ;
; sfrb LCDM15 = (0x009F) ;
; sfrb LCDM16 = (0x00A0) ;
; sfrb LCDM17 = (0x00A1) ;
; sfrb LCDM18 = (0x00A2) ;
; sfrb LCDM19 = (0x00A3) ;
; sfrb LCDM20 = (0x00A4) ;
; const sfrw TA0IV = (0x012E) ;
; sfrw TA0CTL = (0x0160) ;
; sfrw TA0CCTL0 = (0x0162) ;
; sfrw TA0CCTL1 = (0x0164) ;
; sfrw TA0CCTL2 = (0x0166) ;
; sfrw TA0R = (0x0170) ;
; sfrw TA0CCR0 = (0x0172) ;
; sfrw TA0CCR1 = (0x0174) ;
; sfrw TA0CCR2 = (0x0176) ;
; const sfrw TA1IV = (0x011E) ;
; sfrw TA1CTL = (0x0180) ;
; sfrw TA1CCTL0 = (0x0182) ;
; sfrw TA1CCTL1 = (0x0184) ;
; sfrw TA1CCTL2 = (0x0186) ;
; sfrw TA1CCTL3 = (0x0188) ;
; sfrw TA1CCTL4 = (0x018A) ;
; sfrw TA1R = (0x0190) ;
; sfrw TA1CCR0 = (0x0192) ;
; sfrw TA1CCR1 = (0x0194) ;
; sfrw TA1CCR2 = (0x0196) ;
; sfrw TA1CCR3 = (0x0198) ;
; sfrw TA1CCR4 = (0x019A) ;
; sfrw FCTL1 = (0x0128) ;
; sfrw FCTL2 = (0x012A) ;
; sfrw FCTL3 = (0x012C) ;
; sfrb CACTL1 = (0x0059) ;
; sfrb CACTL2 = (0x005A) ;
; sfrb CAPD = (0x005B) ;
; sfrw SIFDEBUG = (0x01B0) ;
; sfrw SIFCNT = (0x01B2) ;
; sfrw SIFPSMV = (0x01B4) ;
; sfrw SIFCTL1 = (0x01B6) ;
; sfrw SIFCTL2 = (0x01B8) ;
; sfrw SIFCTL3 = (0x01BA) ;
; sfrw SIFCTL4 = (0x01BC) ;
; sfrw SIFCTL5 = (0x01BE) ;
; sfrw SIFDACR0 = (0x01C0) ;
; sfrw SIFDACR1 = (0x01C2) ;
; sfrw SIFDACR2 = (0x01C4) ;
; sfrw SIFDACR3 = (0x01C6) ;
; sfrw SIFDACR4 = (0x01C8) ;
; sfrw SIFDACR5 = (0x01CA) ;
; sfrw SIFDACR6 = (0x01CC) ;
; sfrw SIFDACR7 = (0x01CE) ;
; sfrw SIFTSM0 = (0x01D0) ;
; sfrw SIFTSM1 = (0x01D2) ;
; sfrw SIFTSM2 = (0x01D4) ;
; sfrw SIFTSM3 = (0x01D6) ;
; sfrw SIFTSM4 = (0x01D8) ;
; sfrw SIFTSM5 = (0x01DA) ;
; sfrw SIFTSM6 = (0x01DC) ;
; sfrw SIFTSM7 = (0x01DE) ;
; sfrw SIFTSM8 = (0x01E0) ;
; sfrw SIFTSM9 = (0x01E2) ;
; sfrw SIFTSM10 = (0x01E4) ;
; sfrw SIFTSM11 = (0x01E6) ;
; sfrw SIFTSM12 = (0x01E8) ;
; sfrw SIFTSM13 = (0x01EA) ;
; sfrw SIFTSM14 = (0x01EC) ;
; sfrw SIFTSM15 = (0x01EE) ;
; sfrw SIFTSM16 = (0x01F0) ;
; sfrw SIFTSM17 = (0x01F2) ;
; sfrw SIFTSM18 = (0x01F4) ;
; sfrw SIFTSM19 = (0x01F6) ;
; sfrw SIFTSM20 = (0x01F8) ;
; sfrw SIFTSM21 = (0x01FA) ;
; sfrw SIFTSM22 = (0x01FC) ;
; sfrw SIFTSM23 = (0x01FE) ;
; void CompInit(void);
; void CompOpen(unsigned char doit);
; void InitBhTimerA(void);
; void GoBhTimerA(unsigned char doit);
; unsigned char GetTime(unsigned int *buhuo);
; void ClearBuHuo(void);
; float MeasureR(void);
; void DelayMs(void)
DBG3:
.long 0x616c6544
.long 0x734d79
.long _DelayMs
.long 0x40
.long 0x1020001
.long DBG1
.long DBG7-DBG8
.long DBG9
.long DBG6
.long 0x0
.pseg zu_code
DBG8:
.dbgseg dbg_syms
DBG1:
.long 0x66622e
.long 0x0
.long DBG8
.long 0x0
.long 0x1650001
.long 0x0
.long 0x16
.long 0x0
.long DBG10
.long 0x0
.dbgseg dbg_line
.align 0x2
DBG9:
.long DBG3
.long 0x0
.long _DelayMs
.long 0x1
.long DBG12
.long 0x2
.long DBG13
.long 0x4
.long DBG16
.long 0x5
.pseg zu_code
.global _DelayMs
_DelayMs:
; ENTRY
DBG11:
; k in reg size 2
; {
DBG12:
; unsigned int k;
; for (k=0;k<10000;k++){};
DBG13:
mov #0x0,r12
DelayMs_L1:
DBG14:
DBG15:
add #0x1,r12
cmp #0x2710,r12
jnc DelayMs_L1
DBG17:
DBG16:
; EXIT
ret
.dbgseg dbg_syms
.long 0x0
.long DBG18
.long 0x0
.long 0x0
.long 0x10002
.long 0x0
.long DBG19
.long 0x2
.long 0x0
.long 0x10002
DBG2:
.long 0x62622e
.long 0x0
.long DBG14
.long 0x0
.long 0x1640001
.long 0x0
.long 0x4
.long 0x0
.long DBG20
.long 0x0
.long 0x6b
.long 0x0
.long 0xc0102
.long 0xe
.long 0x4ffff
.long 0x62652e
.long 0x0
.long DBG16
.long 0x0
.long 0x1640001
.long 0x0
.long 0x5
.long 0x0
.long 0x0
.long 0x0
.long 0x66652e
.long 0x0
.long DBG17
.long 0x0
.long 0x1650001
.long 0x0
.long 0x1a
.long 0x0
.long 0x0
.long 0x0
.pseg zu_code
DBG7:
.dbgseg dbg_syms
.long 0x616c6544
.long 0x734d79
.long DBG7
.long 0x0
.long 0xff0001
; }
; float MeasureR()
DBG6:
.long 0x7361654d
.long 0x52657275
.long _MeasureR
.long 0x46
.long 0x1020001
.long DBG10
.long DBG22-DBG23
.long DBG24
.long DBG21
.long 0x0
.pseg zu_code
DBG23:
.dbgseg dbg_syms
DBG10:
.long 0x66622e
.long 0x0
.long DBG23
.long 0x0
.long 0x1650001
.long 0x0
.long 0x20
.long 0x0
.long DBG25
.long 0x0
.dbgseg dbg_line
DBG24:
.long DBG6
.long 0x0
.long _MeasureR
.long 0x1
.long DBG27
.long 0x2
.long DBG28
.long 0x8
.long DBG29
.long 0x9
.long DBG30
.long 0xa
.long DBG31
.long 0xd
.long DBG32
.long 0xe
.long DBG33
.long 0xf
.long DBG34
.long 0x10
.long DBG35
.long 0x11
.long DBG36
.long 0x15
.long DBG37
.long 0x16
.long DBG38
.long 0x17
.long DBG39
.long 0x1a
.long DBG40
.long 0x1b
.long DBG41
.long 0x1c
.long DBG42
.long 0x1d
.long DBG43
.long 0x1e
.long DBG44
.long 0x20
.long DBG45
.long 0x21
.long DBG46
.long 0x23
.long DBG47
.long 0x26
.long DBG48
.long 0x27
.long DBG49
.long 0x28
.long DBG50
.long 0x29
.pseg zu_code
.global _MeasureR
_MeasureR:
push r4
push r5
push r6
sub #0x4,sp
DBG28:
DBG27:
DBG26:
; ENTRY
; time_ref0 in reg size 2
; time_ref1 at stkloc 0 (0x0) size 2
; time_rsen0 in reg size 2
; time_rsen1 at stkloc 2 (0x2) size 2
; iq0 in reg size 2
; iq1 in reg size 2
; fr in reg size 4
; {
; unsigned int time_ref0,time_ref1,time_rsen0,time_rsen1,iq0,iq1;
; float fr;
; P3DIR |= (0x0008) ;
bis.b #0x8,&0x1a
DBG29:
; P3OUT |= (0x0008) ;
bis.b #0x8,&0x19
DBG30:
; DelayMs();
call #_DelayMs
DBG31:
; ClearBuHuo();
call #_ClearBuHuo
DBG32:
; time_ref0= TA0R ;
mov &0x170,r4
DBG33:
; P3OUT &= ~ (0x0008) ;
and.b #0xf7,&0x19
DBG34:
; while(GetTime(&time_ref1) ==0);
MeasureR_L1:
mov sp,r12
call #_GetTime
cmp.b #0x0,r12
jeq MeasureR_L1
MeasureR_L2:
; iq1=time_ref1-time_ref0;
DBG35:
mov 0x0(sp),r5
sub r4,r5
DBG36:
; P3DIR |= (0x0008) ;
bis.b #0x8,&0x1a
DBG37:
; P3OUT |= (0x0008) ;
bis.b #0x8,&0x19
DBG38:
; DelayMs();
call #_DelayMs
DBG39:
; ClearBuHuo();
call #_ClearBuHuo
DBG40:
; time_rsen0= TA0R ;
mov &0x170,r4
DBG41:
; P3DIR &= ~ (0x0008) ;
and.b #0xf7,&0x1a
DBG42:
; P3OUT &= ~ (0x0010) ;
and.b #0xef,&0x19
DBG43:
; P3DIR |= (0x0010) ;
bis.b #0x10,&0x1a
DBG44:
; while(GetTime(&time_rsen1) ==0);
MeasureR_L3:
mov sp,r12
add #0x2,r12
call #_GetTime
cmp.b #0x0,r12
jeq MeasureR_L3
MeasureR_L4:
; iq0=time_rsen1-time_rsen0;
DBG45:
mov 0x2(sp),r13
sub r4,r13
DBG46:
; P3DIR &= ~ (0x0010) ;
and.b #0xef,&0x1a
DBG47:
; fr=(float) 0.986 *iq0;
mov #0x0,r12
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -