;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.0.0 #6037 (Oct 31 2010) (Linux) ; This file was generated Sat May 26 23:00:44 2012 ;-------------------------------------------------------- .module debugintRx .optsdcc -mmcs51 --model-medium ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _main .globl _sendReportIfNeeded .globl _updateLeds .globl _report .globl _rxpkt .globl _reportBytesSent .globl _reportLength .globl _putchar ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- .area RSEG (ABS,DATA) .org 0x0000 FdebugintRx$P0$0$0 == 0x0080 _P0 = 0x0080 FdebugintRx$SP$0$0 == 0x0081 _SP = 0x0081 FdebugintRx$DPL0$0$0 == 0x0082 _DPL0 = 0x0082 FdebugintRx$DPH0$0$0 == 0x0083 _DPH0 = 0x0083 FdebugintRx$DPL1$0$0 == 0x0084 _DPL1 = 0x0084 FdebugintRx$DPH1$0$0 == 0x0085 _DPH1 = 0x0085 FdebugintRx$U0CSR$0$0 == 0x0086 _U0CSR = 0x0086 FdebugintRx$PCON$0$0 == 0x0087 _PCON = 0x0087 FdebugintRx$TCON$0$0 == 0x0088 _TCON = 0x0088 FdebugintRx$P0IFG$0$0 == 0x0089 _P0IFG = 0x0089 FdebugintRx$P1IFG$0$0 == 0x008a _P1IFG = 0x008a FdebugintRx$P2IFG$0$0 == 0x008b _P2IFG = 0x008b FdebugintRx$PICTL$0$0 == 0x008c _PICTL = 0x008c FdebugintRx$P1IEN$0$0 == 0x008d _P1IEN = 0x008d FdebugintRx$P0INP$0$0 == 0x008f _P0INP = 0x008f FdebugintRx$P1$0$0 == 0x0090 _P1 = 0x0090 FdebugintRx$RFIM$0$0 == 0x0091 _RFIM = 0x0091 FdebugintRx$DPS$0$0 == 0x0092 _DPS = 0x0092 FdebugintRx$MPAGE$0$0 == 0x0093 _MPAGE = 0x0093 FdebugintRx$ENDIAN$0$0 == 0x0095 _ENDIAN = 0x0095 FdebugintRx$S0CON$0$0 == 0x0098 _S0CON = 0x0098 FdebugintRx$IEN2$0$0 == 0x009a _IEN2 = 0x009a FdebugintRx$S1CON$0$0 == 0x009b _S1CON = 0x009b FdebugintRx$T2CT$0$0 == 0x009c _T2CT = 0x009c FdebugintRx$T2PR$0$0 == 0x009d _T2PR = 0x009d FdebugintRx$T2CTL$0$0 == 0x009e _T2CTL = 0x009e FdebugintRx$P2$0$0 == 0x00a0 _P2 = 0x00a0 FdebugintRx$WORIRQ$0$0 == 0x00a1 _WORIRQ = 0x00a1 FdebugintRx$WORCTRL$0$0 == 0x00a2 _WORCTRL = 0x00a2 FdebugintRx$WOREVT0$0$0 == 0x00a3 _WOREVT0 = 0x00a3 FdebugintRx$WOREVT1$0$0 == 0x00a4 _WOREVT1 = 0x00a4 FdebugintRx$WORTIME0$0$0 == 0x00a5 _WORTIME0 = 0x00a5 FdebugintRx$WORTIME1$0$0 == 0x00a6 _WORTIME1 = 0x00a6 FdebugintRx$IEN0$0$0 == 0x00a8 _IEN0 = 0x00a8 FdebugintRx$IP0$0$0 == 0x00a9 _IP0 = 0x00a9 FdebugintRx$FWT$0$0 == 0x00ab _FWT = 0x00ab FdebugintRx$FADDRL$0$0 == 0x00ac _FADDRL = 0x00ac FdebugintRx$FADDRH$0$0 == 0x00ad _FADDRH = 0x00ad FdebugintRx$FCTL$0$0 == 0x00ae _FCTL = 0x00ae FdebugintRx$FWDATA$0$0 == 0x00af _FWDATA = 0x00af FdebugintRx$ENCDI$0$0 == 0x00b1 _ENCDI = 0x00b1 FdebugintRx$ENCDO$0$0 == 0x00b2 _ENCDO = 0x00b2 FdebugintRx$ENCCS$0$0 == 0x00b3 _ENCCS = 0x00b3 FdebugintRx$ADCCON1$0$0 == 0x00b4 _ADCCON1 = 0x00b4 FdebugintRx$ADCCON2$0$0 == 0x00b5 _ADCCON2 = 0x00b5 FdebugintRx$ADCCON3$0$0 == 0x00b6 _ADCCON3 = 0x00b6 FdebugintRx$IEN1$0$0 == 0x00b8 _IEN1 = 0x00b8 FdebugintRx$IP1$0$0 == 0x00b9 _IP1 = 0x00b9 FdebugintRx$ADCL$0$0 == 0x00ba _ADCL = 0x00ba FdebugintRx$ADCH$0$0 == 0x00bb _ADCH = 0x00bb FdebugintRx$RNDL$0$0 == 0x00bc _RNDL = 0x00bc FdebugintRx$RNDH$0$0 == 0x00bd _RNDH = 0x00bd FdebugintRx$SLEEP$0$0 == 0x00be _SLEEP = 0x00be FdebugintRx$IRCON$0$0 == 0x00c0 _IRCON = 0x00c0 FdebugintRx$U0DBUF$0$0 == 0x00c1 _U0DBUF = 0x00c1 FdebugintRx$U0BAUD$0$0 == 0x00c2 _U0BAUD = 0x00c2 FdebugintRx$U0UCR$0$0 == 0x00c4 _U0UCR = 0x00c4 FdebugintRx$U0GCR$0$0 == 0x00c5 _U0GCR = 0x00c5 FdebugintRx$CLKCON$0$0 == 0x00c6 _CLKCON = 0x00c6 FdebugintRx$MEMCTR$0$0 == 0x00c7 _MEMCTR = 0x00c7 FdebugintRx$WDCTL$0$0 == 0x00c9 _WDCTL = 0x00c9 FdebugintRx$T3CNT$0$0 == 0x00ca _T3CNT = 0x00ca FdebugintRx$T3CTL$0$0 == 0x00cb _T3CTL = 0x00cb FdebugintRx$T3CCTL0$0$0 == 0x00cc _T3CCTL0 = 0x00cc FdebugintRx$T3CC0$0$0 == 0x00cd _T3CC0 = 0x00cd FdebugintRx$T3CCTL1$0$0 == 0x00ce _T3CCTL1 = 0x00ce FdebugintRx$T3CC1$0$0 == 0x00cf _T3CC1 = 0x00cf FdebugintRx$PSW$0$0 == 0x00d0 _PSW = 0x00d0 FdebugintRx$DMAIRQ$0$0 == 0x00d1 _DMAIRQ = 0x00d1 FdebugintRx$DMA1CFGL$0$0 == 0x00d2 _DMA1CFGL = 0x00d2 FdebugintRx$DMA1CFGH$0$0 == 0x00d3 _DMA1CFGH = 0x00d3 FdebugintRx$DMA0CFGL$0$0 == 0x00d4 _DMA0CFGL = 0x00d4 FdebugintRx$DMA0CFGH$0$0 == 0x00d5 _DMA0CFGH = 0x00d5 FdebugintRx$DMAARM$0$0 == 0x00d6 _DMAARM = 0x00d6 FdebugintRx$DMAREQ$0$0 == 0x00d7 _DMAREQ = 0x00d7 FdebugintRx$TIMIF$0$0 == 0x00d8 _TIMIF = 0x00d8 FdebugintRx$RFD$0$0 == 0x00d9 _RFD = 0x00d9 FdebugintRx$T1CC0L$0$0 == 0x00da _T1CC0L = 0x00da FdebugintRx$T1CC0H$0$0 == 0x00db _T1CC0H = 0x00db FdebugintRx$T1CC1L$0$0 == 0x00dc _T1CC1L = 0x00dc FdebugintRx$T1CC1H$0$0 == 0x00dd _T1CC1H = 0x00dd FdebugintRx$T1CC2L$0$0 == 0x00de _T1CC2L = 0x00de FdebugintRx$T1CC2H$0$0 == 0x00df _T1CC2H = 0x00df FdebugintRx$ACC$0$0 == 0x00e0 _ACC = 0x00e0 FdebugintRx$RFST$0$0 == 0x00e1 _RFST = 0x00e1 FdebugintRx$T1CNTL$0$0 == 0x00e2 _T1CNTL = 0x00e2 FdebugintRx$T1CNTH$0$0 == 0x00e3 _T1CNTH = 0x00e3 FdebugintRx$T1CTL$0$0 == 0x00e4 _T1CTL = 0x00e4 FdebugintRx$T1CCTL0$0$0 == 0x00e5 _T1CCTL0 = 0x00e5 FdebugintRx$T1CCTL1$0$0 == 0x00e6 _T1CCTL1 = 0x00e6 FdebugintRx$T1CCTL2$0$0 == 0x00e7 _T1CCTL2 = 0x00e7 FdebugintRx$IRCON2$0$0 == 0x00e8 _IRCON2 = 0x00e8 FdebugintRx$RFIF$0$0 == 0x00e9 _RFIF = 0x00e9 FdebugintRx$T4CNT$0$0 == 0x00ea _T4CNT = 0x00ea FdebugintRx$T4CTL$0$0 == 0x00eb _T4CTL = 0x00eb FdebugintRx$T4CCTL0$0$0 == 0x00ec _T4CCTL0 = 0x00ec FdebugintRx$T4CC0$0$0 == 0x00ed _T4CC0 = 0x00ed FdebugintRx$T4CCTL1$0$0 == 0x00ee _T4CCTL1 = 0x00ee FdebugintRx$T4CC1$0$0 == 0x00ef _T4CC1 = 0x00ef FdebugintRx$B$0$0 == 0x00f0 _B = 0x00f0 FdebugintRx$PERCFG$0$0 == 0x00f1 _PERCFG = 0x00f1 FdebugintRx$ADCCFG$0$0 == 0x00f2 _ADCCFG = 0x00f2 FdebugintRx$P0SEL$0$0 == 0x00f3 _P0SEL = 0x00f3 FdebugintRx$P1SEL$0$0 == 0x00f4 _P1SEL = 0x00f4 FdebugintRx$P2SEL$0$0 == 0x00f5 _P2SEL = 0x00f5 FdebugintRx$P1INP$0$0 == 0x00f6 _P1INP = 0x00f6 FdebugintRx$P2INP$0$0 == 0x00f7 _P2INP = 0x00f7 FdebugintRx$U1CSR$0$0 == 0x00f8 _U1CSR = 0x00f8 FdebugintRx$U1DBUF$0$0 == 0x00f9 _U1DBUF = 0x00f9 FdebugintRx$U1BAUD$0$0 == 0x00fa _U1BAUD = 0x00fa FdebugintRx$U1UCR$0$0 == 0x00fb _U1UCR = 0x00fb FdebugintRx$U1GCR$0$0 == 0x00fc _U1GCR = 0x00fc FdebugintRx$P0DIR$0$0 == 0x00fd _P0DIR = 0x00fd FdebugintRx$P1DIR$0$0 == 0x00fe _P1DIR = 0x00fe FdebugintRx$P2DIR$0$0 == 0x00ff _P2DIR = 0x00ff FdebugintRx$DMA0CFG$0$0 == 0xffffd5d4 _DMA0CFG = 0xffffd5d4 FdebugintRx$DMA1CFG$0$0 == 0xffffd3d2 _DMA1CFG = 0xffffd3d2 FdebugintRx$FADDR$0$0 == 0xffffadac _FADDR = 0xffffadac FdebugintRx$ADC$0$0 == 0xffffbbba _ADC = 0xffffbbba FdebugintRx$T1CC0$0$0 == 0xffffdbda _T1CC0 = 0xffffdbda FdebugintRx$T1CC1$0$0 == 0xffffdddc _T1CC1 = 0xffffdddc FdebugintRx$T1CC2$0$0 == 0xffffdfde _T1CC2 = 0xffffdfde ;-------------------------------------------------------- ; special function bits ;-------------------------------------------------------- .area RSEG (ABS,DATA) .org 0x0000 FdebugintRx$P0_0$0$0 == 0x0080 _P0_0 = 0x0080 FdebugintRx$P0_1$0$0 == 0x0081 _P0_1 = 0x0081 FdebugintRx$P0_2$0$0 == 0x0082 _P0_2 = 0x0082 FdebugintRx$P0_3$0$0 == 0x0083 _P0_3 = 0x0083 FdebugintRx$P0_4$0$0 == 0x0084 _P0_4 = 0x0084 FdebugintRx$P0_5$0$0 == 0x0085 _P0_5 = 0x0085 FdebugintRx$P0_6$0$0 == 0x0086 _P0_6 = 0x0086 FdebugintRx$P0_7$0$0 == 0x0087 _P0_7 = 0x0087 FdebugintRx$_TCON_0$0$0 == 0x0088 __TCON_0 = 0x0088 FdebugintRx$RFTXRXIF$0$0 == 0x0089 _RFTXRXIF = 0x0089 FdebugintRx$_TCON_2$0$0 == 0x008a __TCON_2 = 0x008a FdebugintRx$URX0IF$0$0 == 0x008b _URX0IF = 0x008b FdebugintRx$_TCON_4$0$0 == 0x008c __TCON_4 = 0x008c FdebugintRx$ADCIF$0$0 == 0x008d _ADCIF = 0x008d FdebugintRx$_TCON_6$0$0 == 0x008e __TCON_6 = 0x008e FdebugintRx$URX1IF$0$0 == 0x008f _URX1IF = 0x008f FdebugintRx$P1_0$0$0 == 0x0090 _P1_0 = 0x0090 FdebugintRx$P1_1$0$0 == 0x0091 _P1_1 = 0x0091 FdebugintRx$P1_2$0$0 == 0x0092 _P1_2 = 0x0092 FdebugintRx$P1_3$0$0 == 0x0093 _P1_3 = 0x0093 FdebugintRx$P1_4$0$0 == 0x0094 _P1_4 = 0x0094 FdebugintRx$P1_5$0$0 == 0x0095 _P1_5 = 0x0095 FdebugintRx$P1_6$0$0 == 0x0096 _P1_6 = 0x0096 FdebugintRx$P1_7$0$0 == 0x0097 _P1_7 = 0x0097 FdebugintRx$ENCIF_0$0$0 == 0x0098 _ENCIF_0 = 0x0098 FdebugintRx$ENCIF_1$0$0 == 0x0099 _ENCIF_1 = 0x0099 FdebugintRx$_SOCON2$0$0 == 0x009a __SOCON2 = 0x009a FdebugintRx$_SOCON3$0$0 == 0x009b __SOCON3 = 0x009b FdebugintRx$_SOCON4$0$0 == 0x009c __SOCON4 = 0x009c FdebugintRx$_SOCON5$0$0 == 0x009d __SOCON5 = 0x009d FdebugintRx$_SOCON6$0$0 == 0x009e __SOCON6 = 0x009e FdebugintRx$_SOCON7$0$0 == 0x009f __SOCON7 = 0x009f FdebugintRx$P2_0$0$0 == 0x00a0 _P2_0 = 0x00a0 FdebugintRx$P2_1$0$0 == 0x00a1 _P2_1 = 0x00a1 FdebugintRx$P2_2$0$0 == 0x00a2 _P2_2 = 0x00a2 FdebugintRx$P2_3$0$0 == 0x00a3 _P2_3 = 0x00a3 FdebugintRx$P2_4$0$0 == 0x00a4 _P2_4 = 0x00a4 FdebugintRx$P2_5$0$0 == 0x00a5 _P2_5 = 0x00a5 FdebugintRx$P2_6$0$0 == 0x00a6 _P2_6 = 0x00a6 FdebugintRx$P2_7$0$0 == 0x00a7 _P2_7 = 0x00a7 FdebugintRx$RFTXRXIE$0$0 == 0x00a8 _RFTXRXIE = 0x00a8 FdebugintRx$ADCIE$0$0 == 0x00a9 _ADCIE = 0x00a9 FdebugintRx$URX0IE$0$0 == 0x00aa _URX0IE = 0x00aa FdebugintRx$URX1IE$0$0 == 0x00ab _URX1IE = 0x00ab FdebugintRx$ENCIE$0$0 == 0x00ac _ENCIE = 0x00ac FdebugintRx$STIE$0$0 == 0x00ad _STIE = 0x00ad FdebugintRx$_IEN06$0$0 == 0x00ae __IEN06 = 0x00ae FdebugintRx$EA$0$0 == 0x00af _EA = 0x00af FdebugintRx$DMAIE$0$0 == 0x00b8 _DMAIE = 0x00b8 FdebugintRx$T1IE$0$0 == 0x00b9 _T1IE = 0x00b9 FdebugintRx$T2IE$0$0 == 0x00ba _T2IE = 0x00ba FdebugintRx$T3IE$0$0 == 0x00bb _T3IE = 0x00bb FdebugintRx$T4IE$0$0 == 0x00bc _T4IE = 0x00bc FdebugintRx$P0IE$0$0 == 0x00bd _P0IE = 0x00bd FdebugintRx$_IEN16$0$0 == 0x00be __IEN16 = 0x00be FdebugintRx$_IEN17$0$0 == 0x00bf __IEN17 = 0x00bf FdebugintRx$DMAIF$0$0 == 0x00c0 _DMAIF = 0x00c0 FdebugintRx$T1IF$0$0 == 0x00c1 _T1IF = 0x00c1 FdebugintRx$T2IF$0$0 == 0x00c2 _T2IF = 0x00c2 FdebugintRx$T3IF$0$0 == 0x00c3 _T3IF = 0x00c3 FdebugintRx$T4IF$0$0 == 0x00c4 _T4IF = 0x00c4 FdebugintRx$P0IF$0$0 == 0x00c5 _P0IF = 0x00c5 FdebugintRx$_IRCON6$0$0 == 0x00c6 __IRCON6 = 0x00c6 FdebugintRx$STIF$0$0 == 0x00c7 _STIF = 0x00c7 FdebugintRx$P$0$0 == 0x00d0 _P = 0x00d0 FdebugintRx$F1$0$0 == 0x00d1 _F1 = 0x00d1 FdebugintRx$OV$0$0 == 0x00d2 _OV = 0x00d2 FdebugintRx$RS0$0$0 == 0x00d3 _RS0 = 0x00d3 FdebugintRx$RS1$0$0 == 0x00d4 _RS1 = 0x00d4 FdebugintRx$F0$0$0 == 0x00d5 _F0 = 0x00d5 FdebugintRx$AC$0$0 == 0x00d6 _AC = 0x00d6 FdebugintRx$CY$0$0 == 0x00d7 _CY = 0x00d7 FdebugintRx$T3OVFIF$0$0 == 0x00d8 _T3OVFIF = 0x00d8 FdebugintRx$T3CH0IF$0$0 == 0x00d9 _T3CH0IF = 0x00d9 FdebugintRx$T3CH1IF$0$0 == 0x00da _T3CH1IF = 0x00da FdebugintRx$T4OVFIF$0$0 == 0x00db _T4OVFIF = 0x00db FdebugintRx$T4CH0IF$0$0 == 0x00dc _T4CH0IF = 0x00dc FdebugintRx$T4CH1IF$0$0 == 0x00dd _T4CH1IF = 0x00dd FdebugintRx$OVFIM$0$0 == 0x00de _OVFIM = 0x00de FdebugintRx$_TIMIF7$0$0 == 0x00df __TIMIF7 = 0x00df FdebugintRx$ACC_0$0$0 == 0x00e0 _ACC_0 = 0x00e0 FdebugintRx$ACC_1$0$0 == 0x00e1 _ACC_1 = 0x00e1 FdebugintRx$ACC_2$0$0 == 0x00e2 _ACC_2 = 0x00e2 FdebugintRx$ACC_3$0$0 == 0x00e3 _ACC_3 = 0x00e3 FdebugintRx$ACC_4$0$0 == 0x00e4 _ACC_4 = 0x00e4 FdebugintRx$ACC_5$0$0 == 0x00e5 _ACC_5 = 0x00e5 FdebugintRx$ACC_6$0$0 == 0x00e6 _ACC_6 = 0x00e6 FdebugintRx$ACC_7$0$0 == 0x00e7 _ACC_7 = 0x00e7 FdebugintRx$P2IF$0$0 == 0x00e8 _P2IF = 0x00e8 FdebugintRx$UTX0IF$0$0 == 0x00e9 _UTX0IF = 0x00e9 FdebugintRx$UTX1IF$0$0 == 0x00ea _UTX1IF = 0x00ea FdebugintRx$P1IF$0$0 == 0x00eb _P1IF = 0x00eb FdebugintRx$WDTIF$0$0 == 0x00ec _WDTIF = 0x00ec FdebugintRx$_IRCON25$0$0 == 0x00ed __IRCON25 = 0x00ed FdebugintRx$_IRCON26$0$0 == 0x00ee __IRCON26 = 0x00ee FdebugintRx$_IRCON27$0$0 == 0x00ef __IRCON27 = 0x00ef FdebugintRx$B_0$0$0 == 0x00f0 _B_0 = 0x00f0 FdebugintRx$B_1$0$0 == 0x00f1 _B_1 = 0x00f1 FdebugintRx$B_2$0$0 == 0x00f2 _B_2 = 0x00f2 FdebugintRx$B_3$0$0 == 0x00f3 _B_3 = 0x00f3 FdebugintRx$B_4$0$0 == 0x00f4 _B_4 = 0x00f4 FdebugintRx$B_5$0$0 == 0x00f5 _B_5 = 0x00f5 FdebugintRx$B_6$0$0 == 0x00f6 _B_6 = 0x00f6 FdebugintRx$B_7$0$0 == 0x00f7 _B_7 = 0x00f7 FdebugintRx$U1ACTIVE$0$0 == 0x00f8 _U1ACTIVE = 0x00f8 FdebugintRx$U1TX_BYTE$0$0 == 0x00f9 _U1TX_BYTE = 0x00f9 FdebugintRx$U1RX_BYTE$0$0 == 0x00fa _U1RX_BYTE = 0x00fa FdebugintRx$U1ERR$0$0 == 0x00fb _U1ERR = 0x00fb FdebugintRx$U1FE$0$0 == 0x00fc _U1FE = 0x00fc FdebugintRx$U1SLAVE$0$0 == 0x00fd _U1SLAVE = 0x00fd FdebugintRx$U1RE$0$0 == 0x00fe _U1RE = 0x00fe FdebugintRx$U1MODE$0$0 == 0x00ff _U1MODE = 0x00ff ;-------------------------------------------------------- ; overlayable register banks ;-------------------------------------------------------- .area REG_BANK_0 (REL,OVR,DATA) .ds 8 ;-------------------------------------------------------- ; internal ram data ;-------------------------------------------------------- .area DSEG (DATA) G$reportLength$0$0==. _reportLength:: .ds 2 G$reportBytesSent$0$0==. _reportBytesSent:: .ds 2 ;-------------------------------------------------------- ; overlayable items in internal ram ;-------------------------------------------------------- .area OSEG (OVR,DATA) ;-------------------------------------------------------- ; Stack segment in internal ram ;-------------------------------------------------------- .area SSEG (DATA) __start__stack: .ds 1 ;-------------------------------------------------------- ; indirectly addressable internal ram data ;-------------------------------------------------------- .area ISEG (DATA) ;-------------------------------------------------------- ; absolute internal ram data ;-------------------------------------------------------- .area IABS (ABS,DATA) .area IABS (ABS,DATA) ;-------------------------------------------------------- ; bit data ;-------------------------------------------------------- .area BSEG (BIT) ;-------------------------------------------------------- ; paged external ram data ;-------------------------------------------------------- .area PSEG (PAG,XDATA) G$rxpkt$0$0==. _rxpkt:: .ds 2 LsendReportIfNeeded$lastReport$1$1==. _sendReportIfNeeded_lastReport_1_1: .ds 4 ;-------------------------------------------------------- ; external ram data ;-------------------------------------------------------- .area XSEG (XDATA) FdebugintRx$SYNC1$0$0 == 0xdf00 _SYNC1 = 0xdf00 FdebugintRx$SYNC0$0$0 == 0xdf01 _SYNC0 = 0xdf01 FdebugintRx$PKTLEN$0$0 == 0xdf02 _PKTLEN = 0xdf02 FdebugintRx$PKTCTRL1$0$0 == 0xdf03 _PKTCTRL1 = 0xdf03 FdebugintRx$PKTCTRL0$0$0 == 0xdf04 _PKTCTRL0 = 0xdf04 FdebugintRx$ADDR$0$0 == 0xdf05 _ADDR = 0xdf05 FdebugintRx$CHANNR$0$0 == 0xdf06 _CHANNR = 0xdf06 FdebugintRx$FSCTRL1$0$0 == 0xdf07 _FSCTRL1 = 0xdf07 FdebugintRx$FSCTRL0$0$0 == 0xdf08 _FSCTRL0 = 0xdf08 FdebugintRx$FREQ2$0$0 == 0xdf09 _FREQ2 = 0xdf09 FdebugintRx$FREQ1$0$0 == 0xdf0a _FREQ1 = 0xdf0a FdebugintRx$FREQ0$0$0 == 0xdf0b _FREQ0 = 0xdf0b FdebugintRx$MDMCFG4$0$0 == 0xdf0c _MDMCFG4 = 0xdf0c FdebugintRx$MDMCFG3$0$0 == 0xdf0d _MDMCFG3 = 0xdf0d FdebugintRx$MDMCFG2$0$0 == 0xdf0e _MDMCFG2 = 0xdf0e FdebugintRx$MDMCFG1$0$0 == 0xdf0f _MDMCFG1 = 0xdf0f FdebugintRx$MDMCFG0$0$0 == 0xdf10 _MDMCFG0 = 0xdf10 FdebugintRx$DEVIATN$0$0 == 0xdf11 _DEVIATN = 0xdf11 FdebugintRx$MCSM2$0$0 == 0xdf12 _MCSM2 = 0xdf12 FdebugintRx$MCSM1$0$0 == 0xdf13 _MCSM1 = 0xdf13 FdebugintRx$MCSM0$0$0 == 0xdf14 _MCSM0 = 0xdf14 FdebugintRx$FOCCFG$0$0 == 0xdf15 _FOCCFG = 0xdf15 FdebugintRx$BSCFG$0$0 == 0xdf16 _BSCFG = 0xdf16 FdebugintRx$AGCCTRL2$0$0 == 0xdf17 _AGCCTRL2 = 0xdf17 FdebugintRx$AGCCTRL1$0$0 == 0xdf18 _AGCCTRL1 = 0xdf18 FdebugintRx$AGCCTRL0$0$0 == 0xdf19 _AGCCTRL0 = 0xdf19 FdebugintRx$FREND1$0$0 == 0xdf1a _FREND1 = 0xdf1a FdebugintRx$FREND0$0$0 == 0xdf1b _FREND0 = 0xdf1b FdebugintRx$FSCAL3$0$0 == 0xdf1c _FSCAL3 = 0xdf1c FdebugintRx$FSCAL2$0$0 == 0xdf1d _FSCAL2 = 0xdf1d FdebugintRx$FSCAL1$0$0 == 0xdf1e _FSCAL1 = 0xdf1e FdebugintRx$FSCAL0$0$0 == 0xdf1f _FSCAL0 = 0xdf1f FdebugintRx$TEST2$0$0 == 0xdf23 _TEST2 = 0xdf23 FdebugintRx$TEST1$0$0 == 0xdf24 _TEST1 = 0xdf24 FdebugintRx$TEST0$0$0 == 0xdf25 _TEST0 = 0xdf25 FdebugintRx$PA_TABLE0$0$0 == 0xdf2e _PA_TABLE0 = 0xdf2e FdebugintRx$IOCFG2$0$0 == 0xdf2f _IOCFG2 = 0xdf2f FdebugintRx$IOCFG1$0$0 == 0xdf30 _IOCFG1 = 0xdf30 FdebugintRx$IOCFG0$0$0 == 0xdf31 _IOCFG0 = 0xdf31 FdebugintRx$PARTNUM$0$0 == 0xdf36 _PARTNUM = 0xdf36 FdebugintRx$VERSION$0$0 == 0xdf37 _VERSION = 0xdf37 FdebugintRx$FREQEST$0$0 == 0xdf38 _FREQEST = 0xdf38 FdebugintRx$LQI$0$0 == 0xdf39 _LQI = 0xdf39 FdebugintRx$RSSI$0$0 == 0xdf3a _RSSI = 0xdf3a FdebugintRx$MARCSTATE$0$0 == 0xdf3b _MARCSTATE = 0xdf3b FdebugintRx$PKTSTATUS$0$0 == 0xdf3c _PKTSTATUS = 0xdf3c FdebugintRx$VCO_VC_DAC$0$0 == 0xdf3d _VCO_VC_DAC = 0xdf3d FdebugintRx$I2SCFG0$0$0 == 0xdf40 _I2SCFG0 = 0xdf40 FdebugintRx$I2SCFG1$0$0 == 0xdf41 _I2SCFG1 = 0xdf41 FdebugintRx$I2SDATL$0$0 == 0xdf42 _I2SDATL = 0xdf42 FdebugintRx$I2SDATH$0$0 == 0xdf43 _I2SDATH = 0xdf43 FdebugintRx$I2SWCNT$0$0 == 0xdf44 _I2SWCNT = 0xdf44 FdebugintRx$I2SSTAT$0$0 == 0xdf45 _I2SSTAT = 0xdf45 FdebugintRx$I2SCLKF0$0$0 == 0xdf46 _I2SCLKF0 = 0xdf46 FdebugintRx$I2SCLKF1$0$0 == 0xdf47 _I2SCLKF1 = 0xdf47 FdebugintRx$I2SCLKF2$0$0 == 0xdf48 _I2SCLKF2 = 0xdf48 FdebugintRx$USBADDR$0$0 == 0xde00 _USBADDR = 0xde00 FdebugintRx$USBPOW$0$0 == 0xde01 _USBPOW = 0xde01 FdebugintRx$USBIIF$0$0 == 0xde02 _USBIIF = 0xde02 FdebugintRx$USBOIF$0$0 == 0xde04 _USBOIF = 0xde04 FdebugintRx$USBCIF$0$0 == 0xde06 _USBCIF = 0xde06 FdebugintRx$USBIIE$0$0 == 0xde07 _USBIIE = 0xde07 FdebugintRx$USBOIE$0$0 == 0xde09 _USBOIE = 0xde09 FdebugintRx$USBCIE$0$0 == 0xde0b _USBCIE = 0xde0b FdebugintRx$USBFRML$0$0 == 0xde0c _USBFRML = 0xde0c FdebugintRx$USBFRMH$0$0 == 0xde0d _USBFRMH = 0xde0d FdebugintRx$USBINDEX$0$0 == 0xde0e _USBINDEX = 0xde0e FdebugintRx$USBMAXI$0$0 == 0xde10 _USBMAXI = 0xde10 FdebugintRx$USBCSIL$0$0 == 0xde11 _USBCSIL = 0xde11 FdebugintRx$USBCSIH$0$0 == 0xde12 _USBCSIH = 0xde12 FdebugintRx$USBMAXO$0$0 == 0xde13 _USBMAXO = 0xde13 FdebugintRx$USBCSOL$0$0 == 0xde14 _USBCSOL = 0xde14 FdebugintRx$USBCSOH$0$0 == 0xde15 _USBCSOH = 0xde15 FdebugintRx$USBCNTL$0$0 == 0xde16 _USBCNTL = 0xde16 FdebugintRx$USBCNTH$0$0 == 0xde17 _USBCNTH = 0xde17 FdebugintRx$USBF0$0$0 == 0xde20 _USBF0 = 0xde20 FdebugintRx$USBF1$0$0 == 0xde22 _USBF1 = 0xde22 FdebugintRx$USBF2$0$0 == 0xde24 _USBF2 = 0xde24 FdebugintRx$USBF3$0$0 == 0xde26 _USBF3 = 0xde26 FdebugintRx$USBF4$0$0 == 0xde28 _USBF4 = 0xde28 FdebugintRx$USBF5$0$0 == 0xde2a _USBF5 = 0xde2a G$report$0$0==. _report:: .ds 600 ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area XABS (ABS,XDATA) ;-------------------------------------------------------- ; external initialized ram data ;-------------------------------------------------------- .area XISEG (XDATA) .area HOME (CODE) .area GSINIT0 (CODE) .area GSINIT1 (CODE) .area GSINIT2 (CODE) .area GSINIT3 (CODE) .area GSINIT4 (CODE) .area GSINIT5 (CODE) .area GSINIT (CODE) .area GSFINAL (CODE) .area CSEG (CODE) ;-------------------------------------------------------- ; interrupt vector ;-------------------------------------------------------- .area HOME (CODE) __interrupt_vect: ljmp __sdcc_gsinit_startup reti .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 ljmp _ISR_T4 .ds 5 reti .ds 7 reti .ds 7 reti .ds 7 ljmp _ISR_RF ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area HOME (CODE) .area GSINIT (CODE) .area GSFINAL (CODE) .area GSINIT (CODE) .globl __sdcc_gsinit_startup .globl __sdcc_program_startup .globl __start__stack .globl __mcs51_genXINIT .globl __mcs51_genXRAMCLEAR .globl __mcs51_genRAMCLEAR G$main$0$0 ==. C$debugintRx.c$21$1$1 ==. ; apps/debugintRx/debugintRx.c:21: uint16 DATA reportLength = 0; clr a mov _reportLength,a mov (_reportLength + 1),a G$main$0$0 ==. C$debugintRx.c$25$1$1 ==. ; apps/debugintRx/debugintRx.c:25: uint16 DATA reportBytesSent = 0; clr a mov _reportBytesSent,a mov (_reportBytesSent + 1),a G$main$0$0 ==. C$debugintRx.c$27$1$1 ==. ; apps/debugintRx/debugintRx.c:27: uint8 XDATA *rxpkt = 0; mov r0,#_rxpkt clr a movx @r0,a inc r0 movx @r0,a .area GSFINAL (CODE) ljmp __sdcc_program_startup ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area HOME (CODE) .area HOME (CODE) __sdcc_program_startup: lcall _main ; return from main will lock up sjmp . ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area CSEG (CODE) ;------------------------------------------------------------ ;Allocation info for local variables in function 'updateLeds' ;------------------------------------------------------------ ;------------------------------------------------------------ G$updateLeds$0$0 ==. C$debugintRx.c$28$0$0 ==. ; apps/debugintRx/debugintRx.c:28: void updateLeds() ; ----------------------------------------- ; function updateLeds ; ----------------------------------------- _updateLeds: ar2 = 0x02 ar3 = 0x03 ar4 = 0x04 ar5 = 0x05 ar6 = 0x06 ar7 = 0x07 ar0 = 0x00 ar1 = 0x01 C$debugintRx.c$30$1$1 ==. ; apps/debugintRx/debugintRx.c:30: usbShowStatusWithGreenLed(); C$debugintRx.c$33$1$1 ==. XG$updateLeds$0$0 ==. ljmp _usbShowStatusWithGreenLed ;------------------------------------------------------------ ;Allocation info for local variables in function 'putchar' ;------------------------------------------------------------ ;------------------------------------------------------------ G$putchar$0$0 ==. C$debugintRx.c$35$1$1 ==. ; apps/debugintRx/debugintRx.c:35: void putchar(char c) ; ----------------------------------------- ; function putchar ; ----------------------------------------- _putchar: mov r2,dpl C$debugintRx.c$37$1$1 ==. ; apps/debugintRx/debugintRx.c:37: report[reportLength] = c; mov a,_reportLength add a,#_report mov dpl,a mov a,(_reportLength + 1) addc a,#(_report >> 8) mov dph,a mov a,r2 movx @dptr,a C$debugintRx.c$38$1$1 ==. ; apps/debugintRx/debugintRx.c:38: reportLength++; inc _reportLength clr a cjne a,_reportLength,00103$ inc (_reportLength + 1) 00103$: C$debugintRx.c$39$1$1 ==. XG$putchar$0$0 ==. ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'sendReportIfNeeded' ;------------------------------------------------------------ ;------------------------------------------------------------ G$sendReportIfNeeded$0$0 ==. C$debugintRx.c$41$1$1 ==. ; apps/debugintRx/debugintRx.c:41: void sendReportIfNeeded() ; ----------------------------------------- ; function sendReportIfNeeded ; ----------------------------------------- _sendReportIfNeeded: C$debugintRx.c$46$1$1 ==. ; apps/debugintRx/debugintRx.c:46: reportBytesSent = 0; clr a mov _reportBytesSent,a mov (_reportBytesSent + 1),a C$debugintRx.c$47$1$1 ==. ; apps/debugintRx/debugintRx.c:47: if (reportLength > 0) mov a,_reportLength orl a,(_reportLength + 1) jz 00106$ C$debugintRx.c$49$2$2 ==. ; apps/debugintRx/debugintRx.c:49: bytesToSend = usbComTxAvailable(); lcall _usbComTxAvailable mov r2,dpl C$debugintRx.c$50$2$2 ==. ; apps/debugintRx/debugintRx.c:50: if (bytesToSend > reportLength - reportBytesSent) mov a,_reportLength clr c subb a,_reportBytesSent mov r3,a mov a,(_reportLength + 1) subb a,(_reportBytesSent + 1) mov r4,a mov ar5,r2 mov r6,#0x00 clr c mov a,r3 subb a,r5 mov a,r4 subb a,r6 jnc 00102$ C$debugintRx.c$53$3$3 ==. ; apps/debugintRx/debugintRx.c:53: usbComTxSend(report+reportBytesSent, reportLength - reportBytesSent); mov a,_reportBytesSent add a,#_report mov dpl,a mov a,(_reportBytesSent + 1) addc a,#(_report >> 8) mov dph,a mov r3,_reportLength mov r4,_reportBytesSent mov a,r3 clr c subb a,r4 mov r0,#_usbComTxSend_PARM_2 movx @r0,a lcall _usbComTxSend C$debugintRx.c$54$3$3 ==. ; apps/debugintRx/debugintRx.c:54: reportLength = 0; clr a mov _reportLength,a mov (_reportLength + 1),a ret 00102$: C$debugintRx.c$58$3$4 ==. ; apps/debugintRx/debugintRx.c:58: usbComTxSend(report+reportBytesSent, bytesToSend); mov a,_reportBytesSent add a,#_report mov dpl,a mov a,(_reportBytesSent + 1) addc a,#(_report >> 8) mov dph,a mov r0,#_usbComTxSend_PARM_2 mov a,r2 movx @r0,a push ar2 lcall _usbComTxSend pop ar2 C$debugintRx.c$59$3$4 ==. ; apps/debugintRx/debugintRx.c:59: reportBytesSent += bytesToSend; mov r3,#0x00 mov a,r2 add a,_reportBytesSent mov _reportBytesSent,a mov a,r3 addc a,(_reportBytesSent + 1) mov (_reportBytesSent + 1),a 00106$: C$debugintRx.c$65$2$1 ==. XG$sendReportIfNeeded$0$0 ==. ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'main' ;------------------------------------------------------------ ;------------------------------------------------------------ G$main$0$0 ==. C$debugintRx.c$66$2$1 ==. ; apps/debugintRx/debugintRx.c:66: void main(){ ; ----------------------------------------- ; function main ; ----------------------------------------- _main: C$debugintRx.c$71$1$1 ==. ; apps/debugintRx/debugintRx.c:71: systemInit(); lcall _systemInit C$debugintRx.c$72$1$1 ==. ; apps/debugintRx/debugintRx.c:72: usbInit(); lcall _usbInit C$debugintRx.c$74$1$1 ==. ; apps/debugintRx/debugintRx.c:74: radioLinkInit(); lcall _radioLinkInit C$debugintRx.c$75$1$1 ==. ; apps/debugintRx/debugintRx.c:75: while(!radioLinkConnected()){ 00101$: lcall _radioLinkConnected jc 00103$ C$debugintRx.c$76$2$2 ==. ; apps/debugintRx/debugintRx.c:76: boardService(); lcall _boardService C$debugintRx.c$77$2$2 ==. ; apps/debugintRx/debugintRx.c:77: usbComService(); lcall _usbComService C$debugintRx.c$78$3$3 ==. ; apps/debugintRx/debugintRx.c:78: LED_RED(1); orl _P2DIR,#0x02 sjmp 00101$ 00103$: C$debugintRx.c$80$2$4 ==. ; apps/debugintRx/debugintRx.c:80: LED_RED(0); anl _P2DIR,#0xFD C$debugintRx.c$81$1$1 ==. ; apps/debugintRx/debugintRx.c:81: while(1){ 00112$: C$debugintRx.c$83$2$5 ==. ; apps/debugintRx/debugintRx.c:83: usbComService(); lcall _usbComService C$debugintRx.c$84$2$5 ==. ; apps/debugintRx/debugintRx.c:84: boardService(); lcall _boardService C$debugintRx.c$85$2$5 ==. ; apps/debugintRx/debugintRx.c:85: rxpkt = radioLinkRxCurrentPacket(); lcall _radioLinkRxCurrentPacket mov a,dpl mov b,dph mov r0,#_rxpkt movx @r0,a inc r0 mov a,b movx @r0,a C$debugintRx.c$86$2$5 ==. ; apps/debugintRx/debugintRx.c:86: updateLeds(); lcall _updateLeds C$debugintRx.c$90$2$5 ==. ; apps/debugintRx/debugintRx.c:90: if(rxpkt !=0){ mov r0,#_rxpkt movx a,@r0 mov b,a inc r0 movx a,@r0 orl a,b jz 00112$ C$debugintRx.c$91$4$7 ==. ; apps/debugintRx/debugintRx.c:91: LED_RED_TOGGLE(); xrl _P2DIR,#0x02 C$debugintRx.c$92$3$6 ==. ; apps/debugintRx/debugintRx.c:92: pktlen = rxpkt[0]; mov r0,#_rxpkt movx a,@r0 mov dpl,a inc r0 movx a,@r0 mov dph,a movx a,@dptr mov r2,a C$debugintRx.c$93$3$6 ==. ; apps/debugintRx/debugintRx.c:93: pkttype = radioLinkRxCurrentPayloadType(); push ar2 lcall _radioLinkRxCurrentPayloadType mov r3,dpl pop ar2 C$debugintRx.c$94$3$6 ==. ; apps/debugintRx/debugintRx.c:94: if(pkttype == CANMSGTYPE){ cjne r3,#0x02,00107$ C$debugintRx.c$95$4$8 ==. ; apps/debugintRx/debugintRx.c:95: printf("CAN MESSAGE\n"); push ar2 mov a,#__str_0 push acc mov a,#(__str_0 >> 8) push acc mov a,#0x80 push acc lcall _printf dec sp dec sp dec sp pop ar2 C$debugintRx.c$96$1$1 ==. ; apps/debugintRx/debugintRx.c:96: for(i=0;i> 8) push acc mov a,#0x80 push acc lcall _printf mov a,sp add a,#0xfb mov sp,a pop ar4 pop ar2 C$debugintRx.c$96$4$8 ==. ; apps/debugintRx/debugintRx.c:96: for(i=0;i> 8) push acc mov a,#0x80 push acc lcall _printf dec sp dec sp dec sp C$debugintRx.c$102$4$10 ==. ; apps/debugintRx/debugintRx.c:102: printf("accelX is : %d \n",*(short *) (rxpkt+1)); mov r0,#_rxpkt movx a,@r0 add a,#0x01 mov dpl,a inc r0 movx a,@r0 addc a,#0x00 mov dph,a movx a,@dptr mov r2,a inc dptr movx a,@dptr mov r3,a push ar2 push ar3 mov a,#__str_3 push acc mov a,#(__str_3 >> 8) push acc mov a,#0x80 push acc lcall _printf mov a,sp add a,#0xfb mov sp,a C$debugintRx.c$103$4$10 ==. ; apps/debugintRx/debugintRx.c:103: printf("accelY is : %d \n",*(short *) (rxpkt+3)); mov r0,#_rxpkt movx a,@r0 add a,#0x03 mov dpl,a inc r0 movx a,@r0 addc a,#0x00 mov dph,a movx a,@dptr mov r2,a inc dptr movx a,@dptr mov r3,a push ar2 push ar3 mov a,#__str_4 push acc mov a,#(__str_4 >> 8) push acc mov a,#0x80 push acc lcall _printf mov a,sp add a,#0xfb mov sp,a C$debugintRx.c$104$4$10 ==. ; apps/debugintRx/debugintRx.c:104: printf("accelZ is : %d \n",*(short *) (rxpkt+5)); mov r0,#_rxpkt movx a,@r0 add a,#0x05 mov dpl,a inc r0 movx a,@r0 addc a,#0x00 mov dph,a movx a,@dptr mov r2,a inc dptr movx a,@dptr mov r3,a push ar2 push ar3 mov a,#__str_5 push acc mov a,#(__str_5 >> 8) push acc mov a,#0x80 push acc lcall _printf mov a,sp add a,#0xfb mov sp,a 00108$: C$debugintRx.c$112$3$6 ==. ; apps/debugintRx/debugintRx.c:112: radioLinkRxDoneWithPacket(); lcall _radioLinkRxDoneWithPacket C$debugintRx.c$116$3$6 ==. ; apps/debugintRx/debugintRx.c:116: usbComTxSend(report,reportLength); mov r0,#_usbComTxSend_PARM_2 mov a,_reportLength movx @r0,a mov dptr,#_report lcall _usbComTxSend C$debugintRx.c$117$3$6 ==. ; apps/debugintRx/debugintRx.c:117: reportLength = 0; clr a mov _reportLength,a mov (_reportLength + 1),a C$debugintRx.c$123$1$1 ==. XG$main$0$0 ==. ljmp 00112$ .area CSEG (CODE) .area CONST (CODE) FdebugintRx$_str_0$0$0 == . __str_0: .ascii "CAN MESSAGE" .db 0x0A .db 0x00 FdebugintRx$_str_1$0$0 == . __str_1: .ascii "0x%x" .db 0x0A .db 0x00 FdebugintRx$_str_2$0$0 == . __str_2: .ascii "IMU MESSAGE" .db 0x0A .db 0x00 FdebugintRx$_str_3$0$0 == . __str_3: .ascii "accelX is : %d " .db 0x0A .db 0x00 FdebugintRx$_str_4$0$0 == . __str_4: .ascii "accelY is : %d " .db 0x0A .db 0x00 FdebugintRx$_str_5$0$0 == . __str_5: .ascii "accelZ is : %d " .db 0x0A .db 0x00 .area XINIT (CODE) .area CABS (ABS,CODE)