1 ;-------------------------------------------------------- 2 ; File Created by SDCC : free open source ANSI-C Compiler 3 ; Version 3.0.0 #6037 (Oct 31 2010) (Linux) 4 ; This file was generated Sun Feb 26 03:56:09 2012 5 ;-------------------------------------------------------- 6 .module random 7 .optsdcc -mmcs51 --model-medium 8 9 ;-------------------------------------------------------- 10 ; Public variables in this module 11 ;-------------------------------------------------------- 12 .globl _randomSeed_PARM_2 13 .globl _randomNumber 14 .globl _randomSeed 15 ;-------------------------------------------------------- 16 ; special function registers 17 ;-------------------------------------------------------- 18 .area RSEG (ABS,DATA) 0000 19 .org 0x0000 0080 20 Frandom$P0$0$0 == 0x0080 0080 21 _P0 = 0x0080 0081 22 Frandom$SP$0$0 == 0x0081 0081 23 _SP = 0x0081 0082 24 Frandom$DPL0$0$0 == 0x0082 0082 25 _DPL0 = 0x0082 0083 26 Frandom$DPH0$0$0 == 0x0083 0083 27 _DPH0 = 0x0083 0084 28 Frandom$DPL1$0$0 == 0x0084 0084 29 _DPL1 = 0x0084 0085 30 Frandom$DPH1$0$0 == 0x0085 0085 31 _DPH1 = 0x0085 0086 32 Frandom$U0CSR$0$0 == 0x0086 0086 33 _U0CSR = 0x0086 0087 34 Frandom$PCON$0$0 == 0x0087 0087 35 _PCON = 0x0087 0088 36 Frandom$TCON$0$0 == 0x0088 0088 37 _TCON = 0x0088 0089 38 Frandom$P0IFG$0$0 == 0x0089 0089 39 _P0IFG = 0x0089 008A 40 Frandom$P1IFG$0$0 == 0x008a 008A 41 _P1IFG = 0x008a 008B 42 Frandom$P2IFG$0$0 == 0x008b 008B 43 _P2IFG = 0x008b 008C 44 Frandom$PICTL$0$0 == 0x008c 008C 45 _PICTL = 0x008c 008D 46 Frandom$P1IEN$0$0 == 0x008d 008D 47 _P1IEN = 0x008d 008F 48 Frandom$P0INP$0$0 == 0x008f 008F 49 _P0INP = 0x008f 0090 50 Frandom$P1$0$0 == 0x0090 0090 51 _P1 = 0x0090 0091 52 Frandom$RFIM$0$0 == 0x0091 0091 53 _RFIM = 0x0091 0092 54 Frandom$DPS$0$0 == 0x0092 0092 55 _DPS = 0x0092 0093 56 Frandom$MPAGE$0$0 == 0x0093 0093 57 _MPAGE = 0x0093 0095 58 Frandom$ENDIAN$0$0 == 0x0095 0095 59 _ENDIAN = 0x0095 0098 60 Frandom$S0CON$0$0 == 0x0098 0098 61 _S0CON = 0x0098 009A 62 Frandom$IEN2$0$0 == 0x009a 009A 63 _IEN2 = 0x009a 009B 64 Frandom$S1CON$0$0 == 0x009b 009B 65 _S1CON = 0x009b 009C 66 Frandom$T2CT$0$0 == 0x009c 009C 67 _T2CT = 0x009c 009D 68 Frandom$T2PR$0$0 == 0x009d 009D 69 _T2PR = 0x009d 009E 70 Frandom$T2CTL$0$0 == 0x009e 009E 71 _T2CTL = 0x009e 00A0 72 Frandom$P2$0$0 == 0x00a0 00A0 73 _P2 = 0x00a0 00A1 74 Frandom$WORIRQ$0$0 == 0x00a1 00A1 75 _WORIRQ = 0x00a1 00A2 76 Frandom$WORCTRL$0$0 == 0x00a2 00A2 77 _WORCTRL = 0x00a2 00A3 78 Frandom$WOREVT0$0$0 == 0x00a3 00A3 79 _WOREVT0 = 0x00a3 00A4 80 Frandom$WOREVT1$0$0 == 0x00a4 00A4 81 _WOREVT1 = 0x00a4 00A5 82 Frandom$WORTIME0$0$0 == 0x00a5 00A5 83 _WORTIME0 = 0x00a5 00A6 84 Frandom$WORTIME1$0$0 == 0x00a6 00A6 85 _WORTIME1 = 0x00a6 00A8 86 Frandom$IEN0$0$0 == 0x00a8 00A8 87 _IEN0 = 0x00a8 00A9 88 Frandom$IP0$0$0 == 0x00a9 00A9 89 _IP0 = 0x00a9 00AB 90 Frandom$FWT$0$0 == 0x00ab 00AB 91 _FWT = 0x00ab 00AC 92 Frandom$FADDRL$0$0 == 0x00ac 00AC 93 _FADDRL = 0x00ac 00AD 94 Frandom$FADDRH$0$0 == 0x00ad 00AD 95 _FADDRH = 0x00ad 00AE 96 Frandom$FCTL$0$0 == 0x00ae 00AE 97 _FCTL = 0x00ae 00AF 98 Frandom$FWDATA$0$0 == 0x00af 00AF 99 _FWDATA = 0x00af 00B1 100 Frandom$ENCDI$0$0 == 0x00b1 00B1 101 _ENCDI = 0x00b1 00B2 102 Frandom$ENCDO$0$0 == 0x00b2 00B2 103 _ENCDO = 0x00b2 00B3 104 Frandom$ENCCS$0$0 == 0x00b3 00B3 105 _ENCCS = 0x00b3 00B4 106 Frandom$ADCCON1$0$0 == 0x00b4 00B4 107 _ADCCON1 = 0x00b4 00B5 108 Frandom$ADCCON2$0$0 == 0x00b5 00B5 109 _ADCCON2 = 0x00b5 00B6 110 Frandom$ADCCON3$0$0 == 0x00b6 00B6 111 _ADCCON3 = 0x00b6 00B8 112 Frandom$IEN1$0$0 == 0x00b8 00B8 113 _IEN1 = 0x00b8 00B9 114 Frandom$IP1$0$0 == 0x00b9 00B9 115 _IP1 = 0x00b9 00BA 116 Frandom$ADCL$0$0 == 0x00ba 00BA 117 _ADCL = 0x00ba 00BB 118 Frandom$ADCH$0$0 == 0x00bb 00BB 119 _ADCH = 0x00bb 00BC 120 Frandom$RNDL$0$0 == 0x00bc 00BC 121 _RNDL = 0x00bc 00BD 122 Frandom$RNDH$0$0 == 0x00bd 00BD 123 _RNDH = 0x00bd 00BE 124 Frandom$SLEEP$0$0 == 0x00be 00BE 125 _SLEEP = 0x00be 00C0 126 Frandom$IRCON$0$0 == 0x00c0 00C0 127 _IRCON = 0x00c0 00C1 128 Frandom$U0DBUF$0$0 == 0x00c1 00C1 129 _U0DBUF = 0x00c1 00C2 130 Frandom$U0BAUD$0$0 == 0x00c2 00C2 131 _U0BAUD = 0x00c2 00C4 132 Frandom$U0UCR$0$0 == 0x00c4 00C4 133 _U0UCR = 0x00c4 00C5 134 Frandom$U0GCR$0$0 == 0x00c5 00C5 135 _U0GCR = 0x00c5 00C6 136 Frandom$CLKCON$0$0 == 0x00c6 00C6 137 _CLKCON = 0x00c6 00C7 138 Frandom$MEMCTR$0$0 == 0x00c7 00C7 139 _MEMCTR = 0x00c7 00C9 140 Frandom$WDCTL$0$0 == 0x00c9 00C9 141 _WDCTL = 0x00c9 00CA 142 Frandom$T3CNT$0$0 == 0x00ca 00CA 143 _T3CNT = 0x00ca 00CB 144 Frandom$T3CTL$0$0 == 0x00cb 00CB 145 _T3CTL = 0x00cb 00CC 146 Frandom$T3CCTL0$0$0 == 0x00cc 00CC 147 _T3CCTL0 = 0x00cc 00CD 148 Frandom$T3CC0$0$0 == 0x00cd 00CD 149 _T3CC0 = 0x00cd 00CE 150 Frandom$T3CCTL1$0$0 == 0x00ce 00CE 151 _T3CCTL1 = 0x00ce 00CF 152 Frandom$T3CC1$0$0 == 0x00cf 00CF 153 _T3CC1 = 0x00cf 00D0 154 Frandom$PSW$0$0 == 0x00d0 00D0 155 _PSW = 0x00d0 00D1 156 Frandom$DMAIRQ$0$0 == 0x00d1 00D1 157 _DMAIRQ = 0x00d1 00D2 158 Frandom$DMA1CFGL$0$0 == 0x00d2 00D2 159 _DMA1CFGL = 0x00d2 00D3 160 Frandom$DMA1CFGH$0$0 == 0x00d3 00D3 161 _DMA1CFGH = 0x00d3 00D4 162 Frandom$DMA0CFGL$0$0 == 0x00d4 00D4 163 _DMA0CFGL = 0x00d4 00D5 164 Frandom$DMA0CFGH$0$0 == 0x00d5 00D5 165 _DMA0CFGH = 0x00d5 00D6 166 Frandom$DMAARM$0$0 == 0x00d6 00D6 167 _DMAARM = 0x00d6 00D7 168 Frandom$DMAREQ$0$0 == 0x00d7 00D7 169 _DMAREQ = 0x00d7 00D8 170 Frandom$TIMIF$0$0 == 0x00d8 00D8 171 _TIMIF = 0x00d8 00D9 172 Frandom$RFD$0$0 == 0x00d9 00D9 173 _RFD = 0x00d9 00DA 174 Frandom$T1CC0L$0$0 == 0x00da 00DA 175 _T1CC0L = 0x00da 00DB 176 Frandom$T1CC0H$0$0 == 0x00db 00DB 177 _T1CC0H = 0x00db 00DC 178 Frandom$T1CC1L$0$0 == 0x00dc 00DC 179 _T1CC1L = 0x00dc 00DD 180 Frandom$T1CC1H$0$0 == 0x00dd 00DD 181 _T1CC1H = 0x00dd 00DE 182 Frandom$T1CC2L$0$0 == 0x00de 00DE 183 _T1CC2L = 0x00de 00DF 184 Frandom$T1CC2H$0$0 == 0x00df 00DF 185 _T1CC2H = 0x00df 00E0 186 Frandom$ACC$0$0 == 0x00e0 00E0 187 _ACC = 0x00e0 00E1 188 Frandom$RFST$0$0 == 0x00e1 00E1 189 _RFST = 0x00e1 00E2 190 Frandom$T1CNTL$0$0 == 0x00e2 00E2 191 _T1CNTL = 0x00e2 00E3 192 Frandom$T1CNTH$0$0 == 0x00e3 00E3 193 _T1CNTH = 0x00e3 00E4 194 Frandom$T1CTL$0$0 == 0x00e4 00E4 195 _T1CTL = 0x00e4 00E5 196 Frandom$T1CCTL0$0$0 == 0x00e5 00E5 197 _T1CCTL0 = 0x00e5 00E6 198 Frandom$T1CCTL1$0$0 == 0x00e6 00E6 199 _T1CCTL1 = 0x00e6 00E7 200 Frandom$T1CCTL2$0$0 == 0x00e7 00E7 201 _T1CCTL2 = 0x00e7 00E8 202 Frandom$IRCON2$0$0 == 0x00e8 00E8 203 _IRCON2 = 0x00e8 00E9 204 Frandom$RFIF$0$0 == 0x00e9 00E9 205 _RFIF = 0x00e9 00EA 206 Frandom$T4CNT$0$0 == 0x00ea 00EA 207 _T4CNT = 0x00ea 00EB 208 Frandom$T4CTL$0$0 == 0x00eb 00EB 209 _T4CTL = 0x00eb 00EC 210 Frandom$T4CCTL0$0$0 == 0x00ec 00EC 211 _T4CCTL0 = 0x00ec 00ED 212 Frandom$T4CC0$0$0 == 0x00ed 00ED 213 _T4CC0 = 0x00ed 00EE 214 Frandom$T4CCTL1$0$0 == 0x00ee 00EE 215 _T4CCTL1 = 0x00ee 00EF 216 Frandom$T4CC1$0$0 == 0x00ef 00EF 217 _T4CC1 = 0x00ef 00F0 218 Frandom$B$0$0 == 0x00f0 00F0 219 _B = 0x00f0 00F1 220 Frandom$PERCFG$0$0 == 0x00f1 00F1 221 _PERCFG = 0x00f1 00F2 222 Frandom$ADCCFG$0$0 == 0x00f2 00F2 223 _ADCCFG = 0x00f2 00F3 224 Frandom$P0SEL$0$0 == 0x00f3 00F3 225 _P0SEL = 0x00f3 00F4 226 Frandom$P1SEL$0$0 == 0x00f4 00F4 227 _P1SEL = 0x00f4 00F5 228 Frandom$P2SEL$0$0 == 0x00f5 00F5 229 _P2SEL = 0x00f5 00F6 230 Frandom$P1INP$0$0 == 0x00f6 00F6 231 _P1INP = 0x00f6 00F7 232 Frandom$P2INP$0$0 == 0x00f7 00F7 233 _P2INP = 0x00f7 00F8 234 Frandom$U1CSR$0$0 == 0x00f8 00F8 235 _U1CSR = 0x00f8 00F9 236 Frandom$U1DBUF$0$0 == 0x00f9 00F9 237 _U1DBUF = 0x00f9 00FA 238 Frandom$U1BAUD$0$0 == 0x00fa 00FA 239 _U1BAUD = 0x00fa 00FB 240 Frandom$U1UCR$0$0 == 0x00fb 00FB 241 _U1UCR = 0x00fb 00FC 242 Frandom$U1GCR$0$0 == 0x00fc 00FC 243 _U1GCR = 0x00fc 00FD 244 Frandom$P0DIR$0$0 == 0x00fd 00FD 245 _P0DIR = 0x00fd 00FE 246 Frandom$P1DIR$0$0 == 0x00fe 00FE 247 _P1DIR = 0x00fe 00FF 248 Frandom$P2DIR$0$0 == 0x00ff 00FF 249 _P2DIR = 0x00ff FFFFD5D4 250 Frandom$DMA0CFG$0$0 == 0xffffd5d4 FFFFD5D4 251 _DMA0CFG = 0xffffd5d4 FFFFD3D2 252 Frandom$DMA1CFG$0$0 == 0xffffd3d2 FFFFD3D2 253 _DMA1CFG = 0xffffd3d2 FFFFADAC 254 Frandom$FADDR$0$0 == 0xffffadac FFFFADAC 255 _FADDR = 0xffffadac FFFFBBBA 256 Frandom$ADC$0$0 == 0xffffbbba FFFFBBBA 257 _ADC = 0xffffbbba FFFFDBDA 258 Frandom$T1CC0$0$0 == 0xffffdbda FFFFDBDA 259 _T1CC0 = 0xffffdbda FFFFDDDC 260 Frandom$T1CC1$0$0 == 0xffffdddc FFFFDDDC 261 _T1CC1 = 0xffffdddc FFFFDFDE 262 Frandom$T1CC2$0$0 == 0xffffdfde FFFFDFDE 263 _T1CC2 = 0xffffdfde 264 ;-------------------------------------------------------- 265 ; special function bits 266 ;-------------------------------------------------------- 267 .area RSEG (ABS,DATA) 0000 268 .org 0x0000 0080 269 Frandom$P0_0$0$0 == 0x0080 0080 270 _P0_0 = 0x0080 0081 271 Frandom$P0_1$0$0 == 0x0081 0081 272 _P0_1 = 0x0081 0082 273 Frandom$P0_2$0$0 == 0x0082 0082 274 _P0_2 = 0x0082 0083 275 Frandom$P0_3$0$0 == 0x0083 0083 276 _P0_3 = 0x0083 0084 277 Frandom$P0_4$0$0 == 0x0084 0084 278 _P0_4 = 0x0084 0085 279 Frandom$P0_5$0$0 == 0x0085 0085 280 _P0_5 = 0x0085 0086 281 Frandom$P0_6$0$0 == 0x0086 0086 282 _P0_6 = 0x0086 0087 283 Frandom$P0_7$0$0 == 0x0087 0087 284 _P0_7 = 0x0087 0088 285 Frandom$_TCON_0$0$0 == 0x0088 0088 286 __TCON_0 = 0x0088 0089 287 Frandom$RFTXRXIF$0$0 == 0x0089 0089 288 _RFTXRXIF = 0x0089 008A 289 Frandom$_TCON_2$0$0 == 0x008a 008A 290 __TCON_2 = 0x008a 008B 291 Frandom$URX0IF$0$0 == 0x008b 008B 292 _URX0IF = 0x008b 008C 293 Frandom$_TCON_4$0$0 == 0x008c 008C 294 __TCON_4 = 0x008c 008D 295 Frandom$ADCIF$0$0 == 0x008d 008D 296 _ADCIF = 0x008d 008E 297 Frandom$_TCON_6$0$0 == 0x008e 008E 298 __TCON_6 = 0x008e 008F 299 Frandom$URX1IF$0$0 == 0x008f 008F 300 _URX1IF = 0x008f 0090 301 Frandom$P1_0$0$0 == 0x0090 0090 302 _P1_0 = 0x0090 0091 303 Frandom$P1_1$0$0 == 0x0091 0091 304 _P1_1 = 0x0091 0092 305 Frandom$P1_2$0$0 == 0x0092 0092 306 _P1_2 = 0x0092 0093 307 Frandom$P1_3$0$0 == 0x0093 0093 308 _P1_3 = 0x0093 0094 309 Frandom$P1_4$0$0 == 0x0094 0094 310 _P1_4 = 0x0094 0095 311 Frandom$P1_5$0$0 == 0x0095 0095 312 _P1_5 = 0x0095 0096 313 Frandom$P1_6$0$0 == 0x0096 0096 314 _P1_6 = 0x0096 0097 315 Frandom$P1_7$0$0 == 0x0097 0097 316 _P1_7 = 0x0097 0098 317 Frandom$ENCIF_0$0$0 == 0x0098 0098 318 _ENCIF_0 = 0x0098 0099 319 Frandom$ENCIF_1$0$0 == 0x0099 0099 320 _ENCIF_1 = 0x0099 009A 321 Frandom$_SOCON2$0$0 == 0x009a 009A 322 __SOCON2 = 0x009a 009B 323 Frandom$_SOCON3$0$0 == 0x009b 009B 324 __SOCON3 = 0x009b 009C 325 Frandom$_SOCON4$0$0 == 0x009c 009C 326 __SOCON4 = 0x009c 009D 327 Frandom$_SOCON5$0$0 == 0x009d 009D 328 __SOCON5 = 0x009d 009E 329 Frandom$_SOCON6$0$0 == 0x009e 009E 330 __SOCON6 = 0x009e 009F 331 Frandom$_SOCON7$0$0 == 0x009f 009F 332 __SOCON7 = 0x009f 00A0 333 Frandom$P2_0$0$0 == 0x00a0 00A0 334 _P2_0 = 0x00a0 00A1 335 Frandom$P2_1$0$0 == 0x00a1 00A1 336 _P2_1 = 0x00a1 00A2 337 Frandom$P2_2$0$0 == 0x00a2 00A2 338 _P2_2 = 0x00a2 00A3 339 Frandom$P2_3$0$0 == 0x00a3 00A3 340 _P2_3 = 0x00a3 00A4 341 Frandom$P2_4$0$0 == 0x00a4 00A4 342 _P2_4 = 0x00a4 00A5 343 Frandom$P2_5$0$0 == 0x00a5 00A5 344 _P2_5 = 0x00a5 00A6 345 Frandom$P2_6$0$0 == 0x00a6 00A6 346 _P2_6 = 0x00a6 00A7 347 Frandom$P2_7$0$0 == 0x00a7 00A7 348 _P2_7 = 0x00a7 00A8 349 Frandom$RFTXRXIE$0$0 == 0x00a8 00A8 350 _RFTXRXIE = 0x00a8 00A9 351 Frandom$ADCIE$0$0 == 0x00a9 00A9 352 _ADCIE = 0x00a9 00AA 353 Frandom$URX0IE$0$0 == 0x00aa 00AA 354 _URX0IE = 0x00aa 00AB 355 Frandom$URX1IE$0$0 == 0x00ab 00AB 356 _URX1IE = 0x00ab 00AC 357 Frandom$ENCIE$0$0 == 0x00ac 00AC 358 _ENCIE = 0x00ac 00AD 359 Frandom$STIE$0$0 == 0x00ad 00AD 360 _STIE = 0x00ad 00AE 361 Frandom$_IEN06$0$0 == 0x00ae 00AE 362 __IEN06 = 0x00ae 00AF 363 Frandom$EA$0$0 == 0x00af 00AF 364 _EA = 0x00af 00B8 365 Frandom$DMAIE$0$0 == 0x00b8 00B8 366 _DMAIE = 0x00b8 00B9 367 Frandom$T1IE$0$0 == 0x00b9 00B9 368 _T1IE = 0x00b9 00BA 369 Frandom$T2IE$0$0 == 0x00ba 00BA 370 _T2IE = 0x00ba 00BB 371 Frandom$T3IE$0$0 == 0x00bb 00BB 372 _T3IE = 0x00bb 00BC 373 Frandom$T4IE$0$0 == 0x00bc 00BC 374 _T4IE = 0x00bc 00BD 375 Frandom$P0IE$0$0 == 0x00bd 00BD 376 _P0IE = 0x00bd 00BE 377 Frandom$_IEN16$0$0 == 0x00be 00BE 378 __IEN16 = 0x00be 00BF 379 Frandom$_IEN17$0$0 == 0x00bf 00BF 380 __IEN17 = 0x00bf 00C0 381 Frandom$DMAIF$0$0 == 0x00c0 00C0 382 _DMAIF = 0x00c0 00C1 383 Frandom$T1IF$0$0 == 0x00c1 00C1 384 _T1IF = 0x00c1 00C2 385 Frandom$T2IF$0$0 == 0x00c2 00C2 386 _T2IF = 0x00c2 00C3 387 Frandom$T3IF$0$0 == 0x00c3 00C3 388 _T3IF = 0x00c3 00C4 389 Frandom$T4IF$0$0 == 0x00c4 00C4 390 _T4IF = 0x00c4 00C5 391 Frandom$P0IF$0$0 == 0x00c5 00C5 392 _P0IF = 0x00c5 00C6 393 Frandom$_IRCON6$0$0 == 0x00c6 00C6 394 __IRCON6 = 0x00c6 00C7 395 Frandom$STIF$0$0 == 0x00c7 00C7 396 _STIF = 0x00c7 00D0 397 Frandom$P$0$0 == 0x00d0 00D0 398 _P = 0x00d0 00D1 399 Frandom$F1$0$0 == 0x00d1 00D1 400 _F1 = 0x00d1 00D2 401 Frandom$OV$0$0 == 0x00d2 00D2 402 _OV = 0x00d2 00D3 403 Frandom$RS0$0$0 == 0x00d3 00D3 404 _RS0 = 0x00d3 00D4 405 Frandom$RS1$0$0 == 0x00d4 00D4 406 _RS1 = 0x00d4 00D5 407 Frandom$F0$0$0 == 0x00d5 00D5 408 _F0 = 0x00d5 00D6 409 Frandom$AC$0$0 == 0x00d6 00D6 410 _AC = 0x00d6 00D7 411 Frandom$CY$0$0 == 0x00d7 00D7 412 _CY = 0x00d7 00D8 413 Frandom$T3OVFIF$0$0 == 0x00d8 00D8 414 _T3OVFIF = 0x00d8 00D9 415 Frandom$T3CH0IF$0$0 == 0x00d9 00D9 416 _T3CH0IF = 0x00d9 00DA 417 Frandom$T3CH1IF$0$0 == 0x00da 00DA 418 _T3CH1IF = 0x00da 00DB 419 Frandom$T4OVFIF$0$0 == 0x00db 00DB 420 _T4OVFIF = 0x00db 00DC 421 Frandom$T4CH0IF$0$0 == 0x00dc 00DC 422 _T4CH0IF = 0x00dc 00DD 423 Frandom$T4CH1IF$0$0 == 0x00dd 00DD 424 _T4CH1IF = 0x00dd 00DE 425 Frandom$OVFIM$0$0 == 0x00de 00DE 426 _OVFIM = 0x00de 00DF 427 Frandom$_TIMIF7$0$0 == 0x00df 00DF 428 __TIMIF7 = 0x00df 00E0 429 Frandom$ACC_0$0$0 == 0x00e0 00E0 430 _ACC_0 = 0x00e0 00E1 431 Frandom$ACC_1$0$0 == 0x00e1 00E1 432 _ACC_1 = 0x00e1 00E2 433 Frandom$ACC_2$0$0 == 0x00e2 00E2 434 _ACC_2 = 0x00e2 00E3 435 Frandom$ACC_3$0$0 == 0x00e3 00E3 436 _ACC_3 = 0x00e3 00E4 437 Frandom$ACC_4$0$0 == 0x00e4 00E4 438 _ACC_4 = 0x00e4 00E5 439 Frandom$ACC_5$0$0 == 0x00e5 00E5 440 _ACC_5 = 0x00e5 00E6 441 Frandom$ACC_6$0$0 == 0x00e6 00E6 442 _ACC_6 = 0x00e6 00E7 443 Frandom$ACC_7$0$0 == 0x00e7 00E7 444 _ACC_7 = 0x00e7 00E8 445 Frandom$P2IF$0$0 == 0x00e8 00E8 446 _P2IF = 0x00e8 00E9 447 Frandom$UTX0IF$0$0 == 0x00e9 00E9 448 _UTX0IF = 0x00e9 00EA 449 Frandom$UTX1IF$0$0 == 0x00ea 00EA 450 _UTX1IF = 0x00ea 00EB 451 Frandom$P1IF$0$0 == 0x00eb 00EB 452 _P1IF = 0x00eb 00EC 453 Frandom$WDTIF$0$0 == 0x00ec 00EC 454 _WDTIF = 0x00ec 00ED 455 Frandom$_IRCON25$0$0 == 0x00ed 00ED 456 __IRCON25 = 0x00ed 00EE 457 Frandom$_IRCON26$0$0 == 0x00ee 00EE 458 __IRCON26 = 0x00ee 00EF 459 Frandom$_IRCON27$0$0 == 0x00ef 00EF 460 __IRCON27 = 0x00ef 00F0 461 Frandom$B_0$0$0 == 0x00f0 00F0 462 _B_0 = 0x00f0 00F1 463 Frandom$B_1$0$0 == 0x00f1 00F1 464 _B_1 = 0x00f1 00F2 465 Frandom$B_2$0$0 == 0x00f2 00F2 466 _B_2 = 0x00f2 00F3 467 Frandom$B_3$0$0 == 0x00f3 00F3 468 _B_3 = 0x00f3 00F4 469 Frandom$B_4$0$0 == 0x00f4 00F4 470 _B_4 = 0x00f4 00F5 471 Frandom$B_5$0$0 == 0x00f5 00F5 472 _B_5 = 0x00f5 00F6 473 Frandom$B_6$0$0 == 0x00f6 00F6 474 _B_6 = 0x00f6 00F7 475 Frandom$B_7$0$0 == 0x00f7 00F7 476 _B_7 = 0x00f7 00F8 477 Frandom$U1ACTIVE$0$0 == 0x00f8 00F8 478 _U1ACTIVE = 0x00f8 00F9 479 Frandom$U1TX_BYTE$0$0 == 0x00f9 00F9 480 _U1TX_BYTE = 0x00f9 00FA 481 Frandom$U1RX_BYTE$0$0 == 0x00fa 00FA 482 _U1RX_BYTE = 0x00fa 00FB 483 Frandom$U1ERR$0$0 == 0x00fb 00FB 484 _U1ERR = 0x00fb 00FC 485 Frandom$U1FE$0$0 == 0x00fc 00FC 486 _U1FE = 0x00fc 00FD 487 Frandom$U1SLAVE$0$0 == 0x00fd 00FD 488 _U1SLAVE = 0x00fd 00FE 489 Frandom$U1RE$0$0 == 0x00fe 00FE 490 _U1RE = 0x00fe 00FF 491 Frandom$U1MODE$0$0 == 0x00ff 00FF 492 _U1MODE = 0x00ff 493 ;-------------------------------------------------------- 494 ; overlayable register banks 495 ;-------------------------------------------------------- 496 .area REG_BANK_0 (REL,OVR,DATA) 0000 497 .ds 8 498 ;-------------------------------------------------------- 499 ; internal ram data 500 ;-------------------------------------------------------- 501 .area DSEG (DATA) 502 ;-------------------------------------------------------- 503 ; overlayable items in internal ram 504 ;-------------------------------------------------------- 505 .area OSEG (OVR,DATA) 506 ;-------------------------------------------------------- 507 ; indirectly addressable internal ram data 508 ;-------------------------------------------------------- 509 .area ISEG (DATA) 510 ;-------------------------------------------------------- 511 ; absolute internal ram data 512 ;-------------------------------------------------------- 513 .area IABS (ABS,DATA) 514 .area IABS (ABS,DATA) 515 ;-------------------------------------------------------- 516 ; bit data 517 ;-------------------------------------------------------- 518 .area BSEG (BIT) 519 ;-------------------------------------------------------- 520 ; paged external ram data 521 ;-------------------------------------------------------- 522 .area PSEG (PAG,XDATA) 0000 523 LrandomSeed$seed_lsb$1$1==. 0000 524 _randomSeed_PARM_2: 0000 525 .ds 1 526 ;-------------------------------------------------------- 527 ; external ram data 528 ;-------------------------------------------------------- 529 .area XSEG (XDATA) DF00 530 Frandom$SYNC1$0$0 == 0xdf00 DF00 531 _SYNC1 = 0xdf00 DF01 532 Frandom$SYNC0$0$0 == 0xdf01 DF01 533 _SYNC0 = 0xdf01 DF02 534 Frandom$PKTLEN$0$0 == 0xdf02 DF02 535 _PKTLEN = 0xdf02 DF03 536 Frandom$PKTCTRL1$0$0 == 0xdf03 DF03 537 _PKTCTRL1 = 0xdf03 DF04 538 Frandom$PKTCTRL0$0$0 == 0xdf04 DF04 539 _PKTCTRL0 = 0xdf04 DF05 540 Frandom$ADDR$0$0 == 0xdf05 DF05 541 _ADDR = 0xdf05 DF06 542 Frandom$CHANNR$0$0 == 0xdf06 DF06 543 _CHANNR = 0xdf06 DF07 544 Frandom$FSCTRL1$0$0 == 0xdf07 DF07 545 _FSCTRL1 = 0xdf07 DF08 546 Frandom$FSCTRL0$0$0 == 0xdf08 DF08 547 _FSCTRL0 = 0xdf08 DF09 548 Frandom$FREQ2$0$0 == 0xdf09 DF09 549 _FREQ2 = 0xdf09 DF0A 550 Frandom$FREQ1$0$0 == 0xdf0a DF0A 551 _FREQ1 = 0xdf0a DF0B 552 Frandom$FREQ0$0$0 == 0xdf0b DF0B 553 _FREQ0 = 0xdf0b DF0C 554 Frandom$MDMCFG4$0$0 == 0xdf0c DF0C 555 _MDMCFG4 = 0xdf0c DF0D 556 Frandom$MDMCFG3$0$0 == 0xdf0d DF0D 557 _MDMCFG3 = 0xdf0d DF0E 558 Frandom$MDMCFG2$0$0 == 0xdf0e DF0E 559 _MDMCFG2 = 0xdf0e DF0F 560 Frandom$MDMCFG1$0$0 == 0xdf0f DF0F 561 _MDMCFG1 = 0xdf0f DF10 562 Frandom$MDMCFG0$0$0 == 0xdf10 DF10 563 _MDMCFG0 = 0xdf10 DF11 564 Frandom$DEVIATN$0$0 == 0xdf11 DF11 565 _DEVIATN = 0xdf11 DF12 566 Frandom$MCSM2$0$0 == 0xdf12 DF12 567 _MCSM2 = 0xdf12 DF13 568 Frandom$MCSM1$0$0 == 0xdf13 DF13 569 _MCSM1 = 0xdf13 DF14 570 Frandom$MCSM0$0$0 == 0xdf14 DF14 571 _MCSM0 = 0xdf14 DF15 572 Frandom$FOCCFG$0$0 == 0xdf15 DF15 573 _FOCCFG = 0xdf15 DF16 574 Frandom$BSCFG$0$0 == 0xdf16 DF16 575 _BSCFG = 0xdf16 DF17 576 Frandom$AGCCTRL2$0$0 == 0xdf17 DF17 577 _AGCCTRL2 = 0xdf17 DF18 578 Frandom$AGCCTRL1$0$0 == 0xdf18 DF18 579 _AGCCTRL1 = 0xdf18 DF19 580 Frandom$AGCCTRL0$0$0 == 0xdf19 DF19 581 _AGCCTRL0 = 0xdf19 DF1A 582 Frandom$FREND1$0$0 == 0xdf1a DF1A 583 _FREND1 = 0xdf1a DF1B 584 Frandom$FREND0$0$0 == 0xdf1b DF1B 585 _FREND0 = 0xdf1b DF1C 586 Frandom$FSCAL3$0$0 == 0xdf1c DF1C 587 _FSCAL3 = 0xdf1c DF1D 588 Frandom$FSCAL2$0$0 == 0xdf1d DF1D 589 _FSCAL2 = 0xdf1d DF1E 590 Frandom$FSCAL1$0$0 == 0xdf1e DF1E 591 _FSCAL1 = 0xdf1e DF1F 592 Frandom$FSCAL0$0$0 == 0xdf1f DF1F 593 _FSCAL0 = 0xdf1f DF23 594 Frandom$TEST2$0$0 == 0xdf23 DF23 595 _TEST2 = 0xdf23 DF24 596 Frandom$TEST1$0$0 == 0xdf24 DF24 597 _TEST1 = 0xdf24 DF25 598 Frandom$TEST0$0$0 == 0xdf25 DF25 599 _TEST0 = 0xdf25 DF2E 600 Frandom$PA_TABLE0$0$0 == 0xdf2e DF2E 601 _PA_TABLE0 = 0xdf2e DF2F 602 Frandom$IOCFG2$0$0 == 0xdf2f DF2F 603 _IOCFG2 = 0xdf2f DF30 604 Frandom$IOCFG1$0$0 == 0xdf30 DF30 605 _IOCFG1 = 0xdf30 DF31 606 Frandom$IOCFG0$0$0 == 0xdf31 DF31 607 _IOCFG0 = 0xdf31 DF36 608 Frandom$PARTNUM$0$0 == 0xdf36 DF36 609 _PARTNUM = 0xdf36 DF37 610 Frandom$VERSION$0$0 == 0xdf37 DF37 611 _VERSION = 0xdf37 DF38 612 Frandom$FREQEST$0$0 == 0xdf38 DF38 613 _FREQEST = 0xdf38 DF39 614 Frandom$LQI$0$0 == 0xdf39 DF39 615 _LQI = 0xdf39 DF3A 616 Frandom$RSSI$0$0 == 0xdf3a DF3A 617 _RSSI = 0xdf3a DF3B 618 Frandom$MARCSTATE$0$0 == 0xdf3b DF3B 619 _MARCSTATE = 0xdf3b DF3C 620 Frandom$PKTSTATUS$0$0 == 0xdf3c DF3C 621 _PKTSTATUS = 0xdf3c DF3D 622 Frandom$VCO_VC_DAC$0$0 == 0xdf3d DF3D 623 _VCO_VC_DAC = 0xdf3d DF40 624 Frandom$I2SCFG0$0$0 == 0xdf40 DF40 625 _I2SCFG0 = 0xdf40 DF41 626 Frandom$I2SCFG1$0$0 == 0xdf41 DF41 627 _I2SCFG1 = 0xdf41 DF42 628 Frandom$I2SDATL$0$0 == 0xdf42 DF42 629 _I2SDATL = 0xdf42 DF43 630 Frandom$I2SDATH$0$0 == 0xdf43 DF43 631 _I2SDATH = 0xdf43 DF44 632 Frandom$I2SWCNT$0$0 == 0xdf44 DF44 633 _I2SWCNT = 0xdf44 DF45 634 Frandom$I2SSTAT$0$0 == 0xdf45 DF45 635 _I2SSTAT = 0xdf45 DF46 636 Frandom$I2SCLKF0$0$0 == 0xdf46 DF46 637 _I2SCLKF0 = 0xdf46 DF47 638 Frandom$I2SCLKF1$0$0 == 0xdf47 DF47 639 _I2SCLKF1 = 0xdf47 DF48 640 Frandom$I2SCLKF2$0$0 == 0xdf48 DF48 641 _I2SCLKF2 = 0xdf48 DE00 642 Frandom$USBADDR$0$0 == 0xde00 DE00 643 _USBADDR = 0xde00 DE01 644 Frandom$USBPOW$0$0 == 0xde01 DE01 645 _USBPOW = 0xde01 DE02 646 Frandom$USBIIF$0$0 == 0xde02 DE02 647 _USBIIF = 0xde02 DE04 648 Frandom$USBOIF$0$0 == 0xde04 DE04 649 _USBOIF = 0xde04 DE06 650 Frandom$USBCIF$0$0 == 0xde06 DE06 651 _USBCIF = 0xde06 DE07 652 Frandom$USBIIE$0$0 == 0xde07 DE07 653 _USBIIE = 0xde07 DE09 654 Frandom$USBOIE$0$0 == 0xde09 DE09 655 _USBOIE = 0xde09 DE0B 656 Frandom$USBCIE$0$0 == 0xde0b DE0B 657 _USBCIE = 0xde0b DE0C 658 Frandom$USBFRML$0$0 == 0xde0c DE0C 659 _USBFRML = 0xde0c DE0D 660 Frandom$USBFRMH$0$0 == 0xde0d DE0D 661 _USBFRMH = 0xde0d DE0E 662 Frandom$USBINDEX$0$0 == 0xde0e DE0E 663 _USBINDEX = 0xde0e DE10 664 Frandom$USBMAXI$0$0 == 0xde10 DE10 665 _USBMAXI = 0xde10 DE11 666 Frandom$USBCSIL$0$0 == 0xde11 DE11 667 _USBCSIL = 0xde11 DE12 668 Frandom$USBCSIH$0$0 == 0xde12 DE12 669 _USBCSIH = 0xde12 DE13 670 Frandom$USBMAXO$0$0 == 0xde13 DE13 671 _USBMAXO = 0xde13 DE14 672 Frandom$USBCSOL$0$0 == 0xde14 DE14 673 _USBCSOL = 0xde14 DE15 674 Frandom$USBCSOH$0$0 == 0xde15 DE15 675 _USBCSOH = 0xde15 DE16 676 Frandom$USBCNTL$0$0 == 0xde16 DE16 677 _USBCNTL = 0xde16 DE17 678 Frandom$USBCNTH$0$0 == 0xde17 DE17 679 _USBCNTH = 0xde17 DE20 680 Frandom$USBF0$0$0 == 0xde20 DE20 681 _USBF0 = 0xde20 DE22 682 Frandom$USBF1$0$0 == 0xde22 DE22 683 _USBF1 = 0xde22 DE24 684 Frandom$USBF2$0$0 == 0xde24 DE24 685 _USBF2 = 0xde24 DE26 686 Frandom$USBF3$0$0 == 0xde26 DE26 687 _USBF3 = 0xde26 DE28 688 Frandom$USBF4$0$0 == 0xde28 DE28 689 _USBF4 = 0xde28 DE2A 690 Frandom$USBF5$0$0 == 0xde2a DE2A 691 _USBF5 = 0xde2a 692 ;-------------------------------------------------------- 693 ; absolute external ram data 694 ;-------------------------------------------------------- 695 .area XABS (ABS,XDATA) 696 ;-------------------------------------------------------- 697 ; external initialized ram data 698 ;-------------------------------------------------------- 699 .area XISEG (XDATA) 700 .area HOME (CODE) 701 .area GSINIT0 (CODE) 702 .area GSINIT1 (CODE) 703 .area GSINIT2 (CODE) 704 .area GSINIT3 (CODE) 705 .area GSINIT4 (CODE) 706 .area GSINIT5 (CODE) 707 .area GSINIT (CODE) 708 .area GSFINAL (CODE) 709 .area CSEG (CODE) 710 ;-------------------------------------------------------- 711 ; global & static initialisations 712 ;-------------------------------------------------------- 713 .area HOME (CODE) 714 .area GSINIT (CODE) 715 .area GSFINAL (CODE) 716 .area GSINIT (CODE) 717 ;-------------------------------------------------------- 718 ; Home 719 ;-------------------------------------------------------- 720 .area HOME (CODE) 721 .area HOME (CODE) 722 ;-------------------------------------------------------- 723 ; code 724 ;-------------------------------------------------------- 725 .area CSEG (CODE) 726 ;------------------------------------------------------------ 727 ;Allocation info for local variables in function 'randomNumber' 728 ;------------------------------------------------------------ 729 ;------------------------------------------------------------ 0000 730 G$randomNumber$0$0 ==. 0000 731 C$random.c$9$0$0 ==. 732 ; libraries/src/random/random.c:9: uint8 randomNumber() 733 ; ----------------------------------------- 734 ; function randomNumber 735 ; ----------------------------------------- 0000 736 _randomNumber: 0002 737 ar2 = 0x02 0003 738 ar3 = 0x03 0004 739 ar4 = 0x04 0005 740 ar5 = 0x05 0006 741 ar6 = 0x06 0007 742 ar7 = 0x07 0000 743 ar0 = 0x00 0001 744 ar1 = 0x01 0000 745 C$random.c$12$1$1 ==. 746 ; libraries/src/random/random.c:12: while(ADCCON1 & 0x0C); // Wait for the random number to finish. 0000 747 00101$: 0000 E5 B4 748 mov a,_ADCCON1 0002 54 0C 749 anl a,#0x0C 0004 60 02 750 jz 00109$ 0006 80 F8 751 sjmp 00101$ 0008 752 00109$: 0008 753 C$random.c$13$1$1 ==. 754 ; libraries/src/random/random.c:13: rand = RNDL; // Get the random number. 0008 85 BC 82 755 mov dpl,_RNDL 000B 756 C$random.c$14$1$1 ==. 757 ; libraries/src/random/random.c:14: ADCCON1 = (ADCCON1 & 0x30) | 0x07; // Start generating the next random number. 000B 74 30 758 mov a,#0x30 000D 55 B4 759 anl a,_ADCCON1 000F 44 07 760 orl a,#0x07 0011 F5 B4 761 mov _ADCCON1,a 0013 762 C$random.c$15$1$1 ==. 763 ; libraries/src/random/random.c:15: return rand; 0013 764 C$random.c$16$1$1 ==. 0013 765 XG$randomNumber$0$0 ==. 0013 22 766 ret 767 ;------------------------------------------------------------ 768 ;Allocation info for local variables in function 'randomSeed' 769 ;------------------------------------------------------------ 770 ;------------------------------------------------------------ 0014 771 G$randomSeed$0$0 ==. 0014 772 C$random.c$18$1$1 ==. 773 ; libraries/src/random/random.c:18: void randomSeed(uint8 seed_msb, uint8 seed_lsb) 774 ; ----------------------------------------- 775 ; function randomSeed 776 ; ----------------------------------------- 0014 777 _randomSeed: 0014 AA 82 778 mov r2,dpl 0016 779 C$random.c$23$1$1 ==. 780 ; libraries/src/random/random.c:23: if ((seed_lsb == 0 && seed_msb == 0) || (seed_lsb == 0x03 && seed_msb == 0x80)) 0016 78r00 781 mov r0,#_randomSeed_PARM_2 0018 E2 782 movx a,@r0 0019 70 03 783 jnz 00105$ 001B EA 784 mov a,r2 001C 60 09 785 jz 00101$ 001E 786 00105$: 001E 78r00 787 mov r0,#_randomSeed_PARM_2 0020 E2 788 movx a,@r0 0021 B4 03 08 789 cjne a,#0x03,00102$ 0024 BA 80 05 790 cjne r2,#0x80,00102$ 0027 791 00101$: 0027 792 C$random.c$25$2$2 ==. 793 ; libraries/src/random/random.c:25: seed_lsb = 0xAA; 0027 78r00 794 mov r0,#_randomSeed_PARM_2 0029 74 AA 795 mov a,#0xAA 002B F2 796 movx @r0,a 002C 797 00102$: 002C 798 C$random.c$28$1$1 ==. 799 ; libraries/src/random/random.c:28: RNDL = seed_msb; 002C 8A BC 800 mov _RNDL,r2 002E 801 C$random.c$29$1$1 ==. 802 ; libraries/src/random/random.c:29: RNDL = seed_lsb; 002E 78r00 803 mov r0,#_randomSeed_PARM_2 0030 E2 804 movx a,@r0 0031 F5 BC 805 mov _RNDL,a 0033 806 C$random.c$30$1$1 ==. 807 ; libraries/src/random/random.c:30: randomNumber(); 0033 12s00r00 808 lcall _randomNumber 0036 809 C$random.c$31$1$1 ==. 810 ; libraries/src/random/random.c:31: randomNumber(); 0036 12s00r00 811 lcall _randomNumber 0039 812 C$random.c$32$1$1 ==. 813 ; libraries/src/random/random.c:32: randomNumber(); 0039 814 C$random.c$33$1$1 ==. 0039 815 XG$randomSeed$0$0 ==. 0039 02s00r00 816 ljmp _randomNumber 817 .area CSEG (CODE) 818 .area CONST (CODE) 819 .area XINIT (CODE) 820 .area CABS (ABS,CODE)