Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 ;--------------------------------------------------------
- 2 ; File Created by SDCC : free open source ANSI-C Compiler
- 3 ; Version 2.9.7 #5859 (Jun 24 2010) (Mac OS X ppc)
- 4 ; This file was generated Thu Oct 7 15:37:00 2010
- 5 ;--------------------------------------------------------
- 6 .module specan
- 7 .optsdcc -mmcs51 --model-small
- 8
- 9 ;--------------------------------------------------------
- 10 ; Public variables in this module
- 11 ;--------------------------------------------------------
- 12 .globl _MODE
- 13 .globl _RE
- 14 .globl _SLAVE
- 15 .globl _FE
- 16 .globl _ERR
- 17 .globl _RX_BYTE
- 18 .globl _TX_BYTE
- 19 .globl _ACTIVE
- 20 .globl _B_7
- 21 .globl _B_6
- 22 .globl _B_5
- 23 .globl _B_4
- 24 .globl _B_3
- 25 .globl _B_2
- 26 .globl _B_1
- 27 .globl _B_0
- 28 .globl _WDTIF
- 29 .globl _P1IF
- 30 .globl _UTX1IF
- 31 .globl _UTX0IF
- 32 .globl _P2IF
- 33 .globl _ACC_7
- 34 .globl _ACC_6
- 35 .globl _ACC_5
- 36 .globl _ACC_4
- 37 .globl _ACC_3
- 38 .globl _ACC_2
- 39 .globl _ACC_1
- 40 .globl _ACC_0
- 41 .globl _OVFIM
- 42 .globl _T4CH1IF
- 43 .globl _T4CH0IF
- 44 .globl _T4OVFIF
- 45 .globl _T3CH1IF
- 46 .globl _T3CH0IF
- 47 .globl _T3OVFIF
- 48 .globl _CY
- 49 .globl _AC
- 50 .globl _F0
- 51 .globl _RS1
- 52 .globl _RS0
- 53 .globl _OV
- 54 .globl _F1
- 55 .globl _P
- 56 .globl _STIF
- 57 .globl _P0IF
- 58 .globl _T4IF
- 59 .globl _T3IF
- 60 .globl _T2IF
- 61 .globl _T1IF
- 62 .globl _DMAIF
- 63 .globl _P0IE
- 64 .globl _T4IE
- 65 .globl _T3IE
- 66 .globl _T2IE
- 67 .globl _T1IE
- 68 .globl _DMAIE
- 69 .globl _EA
- 70 .globl _STIE
- 71 .globl _ENCIE
- 72 .globl _URX1IE
- 73 .globl _URX0IE
- 74 .globl _ADCIE
- 75 .globl _RFTXRXIE
- 76 .globl _P2_7
- 77 .globl _P2_6
- 78 .globl _P2_5
- 79 .globl _P2_4
- 80 .globl _P2_3
- 81 .globl _P2_2
- 82 .globl _P2_1
- 83 .globl _P2_0
- 84 .globl _ENCIF_1
- 85 .globl _ENCIF_0
- 86 .globl _P1_7
- 87 .globl _P1_6
- 88 .globl _P1_5
- 89 .globl _P1_4
- 90 .globl _P1_3
- 91 .globl _P1_2
- 92 .globl _P1_1
- 93 .globl _P1_0
- 94 .globl _URX1IF
- 95 .globl _ADCIF
- 96 .globl _URX0IF
- 97 .globl _IT1
- 98 .globl _RFTXRXIF
- 99 .globl _IT0
- 100 .globl _P0_7
- 101 .globl _P0_6
- 102 .globl _P0_5
- 103 .globl _P0_4
- 104 .globl _P0_3
- 105 .globl _P0_2
- 106 .globl _P0_1
- 107 .globl _P0_0
- 108 .globl _P2DIR
- 109 .globl _P1DIR
- 110 .globl _P0DIR
- 111 .globl _U1GCR
- 112 .globl _U1UCR
- 113 .globl _U1BAUD
- 114 .globl _U1DBUF
- 115 .globl _U1CSR
- 116 .globl _P2INP
- 117 .globl _P1INP
- 118 .globl _P2SEL
- 119 .globl _P1SEL
- 120 .globl _P0SEL
- 121 .globl _ADCCFG
- 122 .globl _PERCFG
- 123 .globl _B
- 124 .globl _T4CC1
- 125 .globl _T4CCTL1
- 126 .globl _T4CC0
- 127 .globl _T4CCTL0
- 128 .globl _T4CTL
- 129 .globl _T4CNT
- 130 .globl _RFIF
- 131 .globl _IRCON2
- 132 .globl _T1CCTL2
- 133 .globl _T1CCTL1
- 134 .globl _T1CCTL0
- 135 .globl _T1CTL
- 136 .globl _T1CNTH
- 137 .globl _T1CNTL
- 138 .globl _RFST
- 139 .globl _ACC
- 140 .globl _T1CC2H
- 141 .globl _T1CC2L
- 142 .globl _T1CC1H
- 143 .globl _T1CC1L
- 144 .globl _T1CC0H
- 145 .globl _T1CC0L
- 146 .globl _RFD
- 147 .globl _TIMIF
- 148 .globl _DMAREQ
- 149 .globl _DMAARM
- 150 .globl _DMA0CFGH
- 151 .globl _DMA0CFGL
- 152 .globl _DMA1CFGH
- 153 .globl _DMA1CFGL
- 154 .globl _DMAIRQ
- 155 .globl _PSW
- 156 .globl _T3CC1
- 157 .globl _T3CCTL1
- 158 .globl _T3CC0
- 159 .globl _T3CCTL0
- 160 .globl _T3CTL
- 161 .globl _T3CNT
- 162 .globl _WDCTL
- 163 .globl __SFRC8
- 164 .globl _MEMCTR
- 165 .globl _CLKCON
- 166 .globl _U0GCR
- 167 .globl _U0UCR
- 168 .globl __SFRC3
- 169 .globl _U0BAUD
- 170 .globl _U0DBUF
- 171 .globl _IRCON
- 172 .globl __SFRBF
- 173 .globl _SLEEP
- 174 .globl _RNDH
- 175 .globl _RNDL
- 176 .globl _ADCH
- 177 .globl _ADCL
- 178 .globl _IP1
- 179 .globl _IEN1
- 180 .globl __SFRB7
- 181 .globl _ADCCON3
- 182 .globl _ADCCON2
- 183 .globl _ADCCON1
- 184 .globl _ENCCS
- 185 .globl _ENCDO
- 186 .globl _ENCDI
- 187 .globl __SFRB0
- 188 .globl _FWDATA
- 189 .globl _FCTL
- 190 .globl _FADDRH
- 191 .globl _FADDRL
- 192 .globl _FWT
- 193 .globl __SFRAA
- 194 .globl _IP0
- 195 .globl _IEN0
- 196 .globl __SFRA7
- 197 .globl _WORTIME1
- 198 .globl _WORTIME0
- 199 .globl _WOREVT1
- 200 .globl _WOREVT0
- 201 .globl _WORCTRL
- 202 .globl _WORIRQ
- 203 .globl _P2
- 204 .globl __SFR9F
- 205 .globl _T2CTL
- 206 .globl _T2PR
- 207 .globl _T2CT
- 208 .globl _S1CON
- 209 .globl _IEN2
- 210 .globl __SFR99
- 211 .globl _S0CON
- 212 .globl __SFR97
- 213 .globl __SFR96
- 214 .globl __SFR95
- 215 .globl __SFR94
- 216 .globl __XPAGE
- 217 .globl _MPAGE
- 218 .globl _DPS
- 219 .globl _RFIM
- 220 .globl _P1
- 221 .globl _P0INP
- 222 .globl __SFR8E
- 223 .globl _P1IEN
- 224 .globl _PICTL
- 225 .globl _P2IFG
- 226 .globl _P1IFG
- 227 .globl _P0IFG
- 228 .globl _TCON
- 229 .globl _PCON
- 230 .globl _U0CSR
- 231 .globl _DPH1
- 232 .globl _DPL1
- 233 .globl _DPH0
- 234 .globl _DPL0
- 235 .globl _SP
- 236 .globl _P0
- 237 .globl _chan_table
- 238 .globl _X_P2DIR
- 239 .globl _X_P1DIR
- 240 .globl _X_P0DIR
- 241 .globl _X_U1GCR
- 242 .globl _X_U1UCR
- 243 .globl _X_U1BAUD
- 244 .globl _X_U1DBUF
- 245 .globl _X_U1CSR
- 246 .globl _X_P2INP
- 247 .globl _X_P1INP
- 248 .globl _X_P2SEL
- 249 .globl _X_P1SEL
- 250 .globl _X_P0SEL
- 251 .globl _X_ADCCFG
- 252 .globl _X_PERCFG
- 253 .globl __NA_B
- 254 .globl _X_T4CC1
- 255 .globl _X_T4CCTL1
- 256 .globl _X_T4CC0
- 257 .globl _X_T4CCTL0
- 258 .globl _X_T4CTL
- 259 .globl _X_T4CNT
- 260 .globl _X_RFIF
- 261 .globl __NA_IRCON2
- 262 .globl _X_T1CCTL2
- 263 .globl _X_T1CCTL1
- 264 .globl _X_T1CCTL0
- 265 .globl _X_T1CTL
- 266 .globl _X_T1CNTH
- 267 .globl _X_T1CNTL
- 268 .globl _X_RFST
- 269 .globl __NA_ACC
- 270 .globl _X_T1CC2H
- 271 .globl _X_T1CC2L
- 272 .globl _X_T1CC1H
- 273 .globl _X_T1CC1L
- 274 .globl _X_T1CC0H
- 275 .globl _X_T1CC0L
- 276 .globl _X_RFD
- 277 .globl _X_TIMIF
- 278 .globl _X_DMAREQ
- 279 .globl _X_DMAARM
- 280 .globl _X_DMA0CFGH
- 281 .globl _X_DMA0CFGL
- 282 .globl _X_DMA1CFGH
- 283 .globl _X_DMA1CFGL
- 284 .globl _X_DMAIRQ
- 285 .globl __NA_PSW
- 286 .globl _X_T3CC1
- 287 .globl _X_T3CCTL1
- 288 .globl _X_T3CC0
- 289 .globl _X_T3CCTL0
- 290 .globl _X_T3CTL
- 291 .globl _X_T3CNT
- 292 .globl _X_WDCTL
- 293 .globl __X_SFRC8
- 294 .globl _X_MEMCTR
- 295 .globl _X_CLKCON
- 296 .globl _X_U0GCR
- 297 .globl _X_U0UCR
- 298 .globl __X_SFRC3
- 299 .globl _X_U0BAUD
- 300 .globl _X_U0DBUF
- 301 .globl __NA_IRCON
- 302 .globl __X_SFRBF
- 303 .globl _X_SLEEP
- 304 .globl _X_RNDH
- 305 .globl _X_RNDL
- 306 .globl _X_ADCH
- 307 .globl _X_ADCL
- 308 .globl __NA_IP1
- 309 .globl __NA_IEN1
- 310 .globl __X_SFRB7
- 311 .globl _X_ADCCON3
- 312 .globl _X_ADCCON2
- 313 .globl _X_ADCCON1
- 314 .globl _X_ENCCS
- 315 .globl _X_ENCDO
- 316 .globl _X_ENCDI
- 317 .globl __X_SFRB0
- 318 .globl _X_FWDATA
- 319 .globl _X_FCTL
- 320 .globl _X_FADDRH
- 321 .globl _X_FADDRL
- 322 .globl _X_FWT
- 323 .globl __X_SFRAA
- 324 .globl __NA_IP0
- 325 .globl __NA_IEN0
- 326 .globl __X_SFRA7
- 327 .globl _X_WORTIME1
- 328 .globl _X_WORTIME0
- 329 .globl _X_WOREVT1
- 330 .globl _X_WOREVT0
- 331 .globl _X_WORCTRL
- 332 .globl _X_WORIRQ
- 333 .globl __NA_P2
- 334 .globl __X_SFR9F
- 335 .globl _X_T2CTL
- 336 .globl _X_T2PR
- 337 .globl _X_T2CT
- 338 .globl __NA_S1CON
- 339 .globl __NA_IEN2
- 340 .globl __X_SFR99
- 341 .globl __NA_S0CON
- 342 .globl __X_SFR97
- 343 .globl __X_SFR96
- 344 .globl __X_SFR95
- 345 .globl __X_SFR94
- 346 .globl _X_MPAGE
- 347 .globl __NA_DPS
- 348 .globl _X_RFIM
- 349 .globl __NA_P1
- 350 .globl _X_P0INP
- 351 .globl __X_SFR8E
- 352 .globl _X_P1IEN
- 353 .globl _X_PICTL
- 354 .globl _X_P2IFG
- 355 .globl _X_P1IFG
- 356 .globl _X_P0IFG
- 357 .globl __NA_TCON
- 358 .globl __NA_PCON
- 359 .globl _X_U0CSR
- 360 .globl __NA_DPH1
- 361 .globl __NA_DPL1
- 362 .globl __NA_DPH0
- 363 .globl __NA_DPL0
- 364 .globl __NA_SP
- 365 .globl __NA_P0
- 366 .globl _I2SCLKF2
- 367 .globl _I2SCLKF1
- 368 .globl _I2SCLKF0
- 369 .globl _I2SSTAT
- 370 .globl _I2SWCNT
- 371 .globl _I2SDATH
- 372 .globl _I2SDATL
- 373 .globl _I2SCFG1
- 374 .globl _I2SCFG0
- 375 .globl _VCO_VC_DAC
- 376 .globl _PKTSTATUS
- 377 .globl _MARCSTATE
- 378 .globl _RSSI
- 379 .globl _LQI
- 380 .globl _FREQEST
- 381 .globl _VERSION
- 382 .globl _PARTNUM
- 383 .globl __XREGDF35
- 384 .globl __XREGDF34
- 385 .globl __XREGDF33
- 386 .globl __XREGDF32
- 387 .globl _IOCFG0
- 388 .globl _IOCFG1
- 389 .globl _IOCFG2
- 390 .globl _PA_TABLE0
- 391 .globl _PA_TABLE1
- 392 .globl _PA_TABLE2
- 393 .globl _PA_TABLE3
- 394 .globl _PA_TABLE4
- 395 .globl _PA_TABLE5
- 396 .globl _PA_TABLE6
- 397 .globl _PA_TABLE7
- 398 .globl __XREGDF26
- 399 .globl _TEST0
- 400 .globl _TEST1
- 401 .globl _TEST2
- 402 .globl __XREGDF22
- 403 .globl __XREGDF21
- 404 .globl __XREGDF20
- 405 .globl _FSCAL0
- 406 .globl _FSCAL1
- 407 .globl _FSCAL2
- 408 .globl _FSCAL3
- 409 .globl _FREND0
- 410 .globl _FREND1
- 411 .globl _AGCCTRL0
- 412 .globl _AGCCTRL1
- 413 .globl _AGCCTRL2
- 414 .globl _BSCFG
- 415 .globl _FOCCFG
- 416 .globl _MCSM0
- 417 .globl _MCSM1
- 418 .globl _MCSM2
- 419 .globl _DEVIATN
- 420 .globl _MDMCFG0
- 421 .globl _MDMCFG1
- 422 .globl _MDMCFG2
- 423 .globl _MDMCFG3
- 424 .globl _MDMCFG4
- 425 .globl _FREQ0
- 426 .globl _FREQ1
- 427 .globl _FREQ2
- 428 .globl _FSCTRL0
- 429 .globl _FSCTRL1
- 430 .globl _CHANNR
- 431 .globl _ADDR
- 432 .globl _PKTCTRL0
- 433 .globl _PKTCTRL1
- 434 .globl _PKTLEN
- 435 .globl _SYNC0
- 436 .globl _SYNC1
- 437 .globl _MDMCTRL0H
- 438 .globl _sleepy
- 439 .globl _height
- 440 .globl _max_hold
- 441 .globl _calibrate_freq_PARM_2
- 442 .globl _max_chan
- 443 .globl _min_chan
- 444 .globl _vscroll
- 445 .globl _width
- 446 .globl _band
- 447 .globl _user_freq
- 448 .globl _center_freq
- 449 .globl _plot
- 450 .globl _draw_ruler
- 451 .globl _draw_freq
- 452 .globl _radio_setup
- 453 .globl _set_filter
- 454 .globl _set_radio_freq
- 455 .globl _calibrate_freq
- 456 .globl _set_center_freq
- 457 .globl _tune
- 458 .globl _set_width
- 459 .globl _poll_keyboard
- 460 .globl _main
- 461 ;--------------------------------------------------------
- 462 ; special function registers
- 463 ;--------------------------------------------------------
- 464 .area RSEG (ABS,DATA)
- 0000 465 .org 0x0000
- 0080 466 _P0 = 0x0080
- 0081 467 _SP = 0x0081
- 0082 468 _DPL0 = 0x0082
- 0083 469 _DPH0 = 0x0083
- 0084 470 _DPL1 = 0x0084
- 0085 471 _DPH1 = 0x0085
- 0086 472 _U0CSR = 0x0086
- 0087 473 _PCON = 0x0087
- 0088 474 _TCON = 0x0088
- 0089 475 _P0IFG = 0x0089
- 008A 476 _P1IFG = 0x008a
- 008B 477 _P2IFG = 0x008b
- 008C 478 _PICTL = 0x008c
- 008D 479 _P1IEN = 0x008d
- 008E 480 __SFR8E = 0x008e
- 008F 481 _P0INP = 0x008f
- 0090 482 _P1 = 0x0090
- 0091 483 _RFIM = 0x0091
- 0092 484 _DPS = 0x0092
- 0093 485 _MPAGE = 0x0093
- 0093 486 __XPAGE = 0x0093
- 0094 487 __SFR94 = 0x0094
- 0095 488 __SFR95 = 0x0095
- 0096 489 __SFR96 = 0x0096
- 0097 490 __SFR97 = 0x0097
- 0098 491 _S0CON = 0x0098
- 0099 492 __SFR99 = 0x0099
- 009A 493 _IEN2 = 0x009a
- 009B 494 _S1CON = 0x009b
- 009C 495 _T2CT = 0x009c
- 009D 496 _T2PR = 0x009d
- 009E 497 _T2CTL = 0x009e
- 009F 498 __SFR9F = 0x009f
- 00A0 499 _P2 = 0x00a0
- 00A1 500 _WORIRQ = 0x00a1
- 00A2 501 _WORCTRL = 0x00a2
- 00A3 502 _WOREVT0 = 0x00a3
- 00A4 503 _WOREVT1 = 0x00a4
- 00A5 504 _WORTIME0 = 0x00a5
- 00A6 505 _WORTIME1 = 0x00a6
- 00A7 506 __SFRA7 = 0x00a7
- 00A8 507 _IEN0 = 0x00a8
- 00A9 508 _IP0 = 0x00a9
- 00AA 509 __SFRAA = 0x00aa
- 00AB 510 _FWT = 0x00ab
- 00AC 511 _FADDRL = 0x00ac
- 00AD 512 _FADDRH = 0x00ad
- 00AE 513 _FCTL = 0x00ae
- 00AF 514 _FWDATA = 0x00af
- 00B0 515 __SFRB0 = 0x00b0
- 00B1 516 _ENCDI = 0x00b1
- 00B2 517 _ENCDO = 0x00b2
- 00B3 518 _ENCCS = 0x00b3
- 00B4 519 _ADCCON1 = 0x00b4
- 00B5 520 _ADCCON2 = 0x00b5
- 00B6 521 _ADCCON3 = 0x00b6
- 00B7 522 __SFRB7 = 0x00b7
- 00B8 523 _IEN1 = 0x00b8
- 00B9 524 _IP1 = 0x00b9
- 00BA 525 _ADCL = 0x00ba
- 00BB 526 _ADCH = 0x00bb
- 00BC 527 _RNDL = 0x00bc
- 00BD 528 _RNDH = 0x00bd
- 00BE 529 _SLEEP = 0x00be
- 00BF 530 __SFRBF = 0x00bf
- 00C0 531 _IRCON = 0x00c0
- 00C1 532 _U0DBUF = 0x00c1
- 00C2 533 _U0BAUD = 0x00c2
- 00C3 534 __SFRC3 = 0x00c3
- 00C4 535 _U0UCR = 0x00c4
- 00C5 536 _U0GCR = 0x00c5
- 00C6 537 _CLKCON = 0x00c6
- 00C7 538 _MEMCTR = 0x00c7
- 00C8 539 __SFRC8 = 0x00c8
- 00C9 540 _WDCTL = 0x00c9
- 00CA 541 _T3CNT = 0x00ca
- 00CB 542 _T3CTL = 0x00cb
- 00CC 543 _T3CCTL0 = 0x00cc
- 00CD 544 _T3CC0 = 0x00cd
- 00CE 545 _T3CCTL1 = 0x00ce
- 00CF 546 _T3CC1 = 0x00cf
- 00D0 547 _PSW = 0x00d0
- 00D1 548 _DMAIRQ = 0x00d1
- 00D2 549 _DMA1CFGL = 0x00d2
- 00D3 550 _DMA1CFGH = 0x00d3
- 00D4 551 _DMA0CFGL = 0x00d4
- 00D5 552 _DMA0CFGH = 0x00d5
- 00D6 553 _DMAARM = 0x00d6
- 00D7 554 _DMAREQ = 0x00d7
- 00D8 555 _TIMIF = 0x00d8
- 00D9 556 _RFD = 0x00d9
- 00DA 557 _T1CC0L = 0x00da
- 00DB 558 _T1CC0H = 0x00db
- 00DC 559 _T1CC1L = 0x00dc
- 00DD 560 _T1CC1H = 0x00dd
- 00DE 561 _T1CC2L = 0x00de
- 00DF 562 _T1CC2H = 0x00df
- 00E0 563 _ACC = 0x00e0
- 00E1 564 _RFST = 0x00e1
- 00E2 565 _T1CNTL = 0x00e2
- 00E3 566 _T1CNTH = 0x00e3
- 00E4 567 _T1CTL = 0x00e4
- 00E5 568 _T1CCTL0 = 0x00e5
- 00E6 569 _T1CCTL1 = 0x00e6
- 00E7 570 _T1CCTL2 = 0x00e7
- 00E8 571 _IRCON2 = 0x00e8
- 00E9 572 _RFIF = 0x00e9
- 00EA 573 _T4CNT = 0x00ea
- 00EB 574 _T4CTL = 0x00eb
- 00EC 575 _T4CCTL0 = 0x00ec
- 00ED 576 _T4CC0 = 0x00ed
- 00EE 577 _T4CCTL1 = 0x00ee
- 00EF 578 _T4CC1 = 0x00ef
- 00F0 579 _B = 0x00f0
- 00F1 580 _PERCFG = 0x00f1
- 00F2 581 _ADCCFG = 0x00f2
- 00F3 582 _P0SEL = 0x00f3
- 00F4 583 _P1SEL = 0x00f4
- 00F5 584 _P2SEL = 0x00f5
- 00F6 585 _P1INP = 0x00f6
- 00F7 586 _P2INP = 0x00f7
- 00F8 587 _U1CSR = 0x00f8
- 00F9 588 _U1DBUF = 0x00f9
- 00FA 589 _U1BAUD = 0x00fa
- 00FB 590 _U1UCR = 0x00fb
- 00FC 591 _U1GCR = 0x00fc
- 00FD 592 _P0DIR = 0x00fd
- 00FE 593 _P1DIR = 0x00fe
- 00FF 594 _P2DIR = 0x00ff
- 595 ;--------------------------------------------------------
- 596 ; special function bits
- 597 ;--------------------------------------------------------
- 598 .area RSEG (ABS,DATA)
- 0000 599 .org 0x0000
- 0080 600 _P0_0 = 0x0080
- 0081 601 _P0_1 = 0x0081
- 0082 602 _P0_2 = 0x0082
- 0083 603 _P0_3 = 0x0083
- 0084 604 _P0_4 = 0x0084
- 0085 605 _P0_5 = 0x0085
- 0086 606 _P0_6 = 0x0086
- 0087 607 _P0_7 = 0x0087
- 0088 608 _IT0 = 0x0088
- 0089 609 _RFTXRXIF = 0x0089
- 008A 610 _IT1 = 0x008a
- 008B 611 _URX0IF = 0x008b
- 008D 612 _ADCIF = 0x008d
- 008F 613 _URX1IF = 0x008f
- 0090 614 _P1_0 = 0x0090
- 0091 615 _P1_1 = 0x0091
- 0092 616 _P1_2 = 0x0092
- 0093 617 _P1_3 = 0x0093
- 0094 618 _P1_4 = 0x0094
- 0095 619 _P1_5 = 0x0095
- 0096 620 _P1_6 = 0x0096
- 0097 621 _P1_7 = 0x0097
- 0098 622 _ENCIF_0 = 0x0098
- 0099 623 _ENCIF_1 = 0x0099
- 00A0 624 _P2_0 = 0x00a0
- 00A1 625 _P2_1 = 0x00a1
- 00A2 626 _P2_2 = 0x00a2
- 00A3 627 _P2_3 = 0x00a3
- 00A4 628 _P2_4 = 0x00a4
- 00A5 629 _P2_5 = 0x00a5
- 00A6 630 _P2_6 = 0x00a6
- 00A7 631 _P2_7 = 0x00a7
- 00A8 632 _RFTXRXIE = 0x00a8
- 00A9 633 _ADCIE = 0x00a9
- 00AA 634 _URX0IE = 0x00aa
- 00AB 635 _URX1IE = 0x00ab
- 00AC 636 _ENCIE = 0x00ac
- 00AD 637 _STIE = 0x00ad
- 00AF 638 _EA = 0x00af
- 00B8 639 _DMAIE = 0x00b8
- 00B9 640 _T1IE = 0x00b9
- 00BA 641 _T2IE = 0x00ba
- 00BB 642 _T3IE = 0x00bb
- 00BC 643 _T4IE = 0x00bc
- 00BD 644 _P0IE = 0x00bd
- 00C0 645 _DMAIF = 0x00c0
- 00C1 646 _T1IF = 0x00c1
- 00C2 647 _T2IF = 0x00c2
- 00C3 648 _T3IF = 0x00c3
- 00C4 649 _T4IF = 0x00c4
- 00C5 650 _P0IF = 0x00c5
- 00C7 651 _STIF = 0x00c7
- 00D0 652 _P = 0x00d0
- 00D1 653 _F1 = 0x00d1
- 00D2 654 _OV = 0x00d2
- 00D3 655 _RS0 = 0x00d3
- 00D4 656 _RS1 = 0x00d4
- 00D5 657 _F0 = 0x00d5
- 00D6 658 _AC = 0x00d6
- 00D7 659 _CY = 0x00d7
- 00D8 660 _T3OVFIF = 0x00d8
- 00D9 661 _T3CH0IF = 0x00d9
- 00DA 662 _T3CH1IF = 0x00da
- 00DB 663 _T4OVFIF = 0x00db
- 00DC 664 _T4CH0IF = 0x00dc
- 00DD 665 _T4CH1IF = 0x00dd
- 00DE 666 _OVFIM = 0x00de
- 00E0 667 _ACC_0 = 0x00e0
- 00E1 668 _ACC_1 = 0x00e1
- 00E2 669 _ACC_2 = 0x00e2
- 00E3 670 _ACC_3 = 0x00e3
- 00E4 671 _ACC_4 = 0x00e4
- 00E5 672 _ACC_5 = 0x00e5
- 00E6 673 _ACC_6 = 0x00e6
- 00E7 674 _ACC_7 = 0x00e7
- 00E8 675 _P2IF = 0x00e8
- 00E9 676 _UTX0IF = 0x00e9
- 00EA 677 _UTX1IF = 0x00ea
- 00EB 678 _P1IF = 0x00eb
- 00EC 679 _WDTIF = 0x00ec
- 00F0 680 _B_0 = 0x00f0
- 00F1 681 _B_1 = 0x00f1
- 00F2 682 _B_2 = 0x00f2
- 00F3 683 _B_3 = 0x00f3
- 00F4 684 _B_4 = 0x00f4
- 00F5 685 _B_5 = 0x00f5
- 00F6 686 _B_6 = 0x00f6
- 00F7 687 _B_7 = 0x00f7
- 00F8 688 _ACTIVE = 0x00f8
- 00F9 689 _TX_BYTE = 0x00f9
- 00FA 690 _RX_BYTE = 0x00fa
- 00FB 691 _ERR = 0x00fb
- 00FC 692 _FE = 0x00fc
- 00FD 693 _SLAVE = 0x00fd
- 00FE 694 _RE = 0x00fe
- 00FF 695 _MODE = 0x00ff
- 696 ;--------------------------------------------------------
- 697 ; overlayable register banks
- 698 ;--------------------------------------------------------
- 699 .area REG_BANK_0 (REL,OVR,DATA)
- 0000 700 .ds 8
- 701 ;--------------------------------------------------------
- 702 ; internal ram data
- 703 ;--------------------------------------------------------
- 704 .area DSEG (DATA)
- 0022 705 _center_freq::
- 0022 706 .ds 2
- 0024 707 _user_freq::
- 0024 708 .ds 2
- 0026 709 _band::
- 0026 710 .ds 1
- 0027 711 _width::
- 0027 712 .ds 1
- 0028 713 _vscroll::
- 0028 714 .ds 1
- 0029 715 _min_chan::
- 0029 716 .ds 1
- 002A 717 _max_chan::
- 002A 718 .ds 1
- 002B 719 _plot_col_1_1:
- 002B 720 .ds 1
- 002C 721 _plot_sloc0_1_0:
- 002C 722 .ds 2
- 002E 723 _calibrate_freq_PARM_2:
- 002E 724 .ds 1
- 002F 725 _set_center_freq_freq_1_1:
- 002F 726 .ds 2
- 0031 727 _set_center_freq_new_band_1_1:
- 0031 728 .ds 1
- 0032 729 _set_center_freq_spacing_1_1:
- 0032 730 .ds 4
- 0036 731 _set_center_freq_min_hz_1_1:
- 0036 732 .ds 4
- 003A 733 _set_center_freq_max_hz_1_1:
- 003A 734 .ds 4
- 003E 735 _set_center_freq_margin_1_1:
- 003E 736 .ds 1
- 003F 737 _set_center_freq_step_1_1:
- 003F 738 .ds 1
- 0040 739 _set_center_freq_upper_limit_1_1:
- 0040 740 .ds 2
- 0042 741 _set_center_freq_lower_limit_1_1:
- 0042 742 .ds 2
- 0044 743 _set_center_freq_sloc0_1_0:
- 0044 744 .ds 2
- 0046 745 _set_center_freq_sloc1_1_0:
- 0046 746 .ds 2
- 0048 747 _set_center_freq_sloc2_1_0:
- 0048 748 .ds 2
- 004A 749 _main_sloc0_1_0:
- 004A 750 .ds 1
- 751 ;--------------------------------------------------------
- 752 ; overlayable items in internal ram
- 753 ;--------------------------------------------------------
- 754 .area OSEG (OVR,DATA)
- 755 ;--------------------------------------------------------
- 756 ; Stack segment in internal ram
- 757 ;--------------------------------------------------------
- 758 .area SSEG (DATA)
- 0064 759 __start__stack:
- 0064 760 .ds 1
- 761
- 762 ;--------------------------------------------------------
- 763 ; indirectly addressable internal ram data
- 764 ;--------------------------------------------------------
- 765 .area ISEG (DATA)
- 766 ;--------------------------------------------------------
- 767 ; absolute internal ram data
- 768 ;--------------------------------------------------------
- 769 .area IABS (ABS,DATA)
- 770 .area IABS (ABS,DATA)
- 771 ;--------------------------------------------------------
- 772 ; bit data
- 773 ;--------------------------------------------------------
- 774 .area BSEG (BIT)
- 0000 775 _max_hold::
- 0000 776 .ds 1
- 0001 777 _height::
- 0001 778 .ds 1
- 0002 779 _sleepy::
- 0002 780 .ds 1
- 781 ;--------------------------------------------------------
- 782 ; paged external ram data
- 783 ;--------------------------------------------------------
- 784 .area PSEG (PAG,XDATA)
- 785 ;--------------------------------------------------------
- 786 ; external ram data
- 787 ;--------------------------------------------------------
- 788 .area XSEG (XDATA)
- DF02 789 _MDMCTRL0H = 0xdf02
- DF00 790 _SYNC1 = 0xdf00
- DF01 791 _SYNC0 = 0xdf01
- DF02 792 _PKTLEN = 0xdf02
- DF03 793 _PKTCTRL1 = 0xdf03
- DF04 794 _PKTCTRL0 = 0xdf04
- DF05 795 _ADDR = 0xdf05
- DF06 796 _CHANNR = 0xdf06
- DF07 797 _FSCTRL1 = 0xdf07
- DF08 798 _FSCTRL0 = 0xdf08
- DF09 799 _FREQ2 = 0xdf09
- DF0A 800 _FREQ1 = 0xdf0a
- DF0B 801 _FREQ0 = 0xdf0b
- DF0C 802 _MDMCFG4 = 0xdf0c
- DF0D 803 _MDMCFG3 = 0xdf0d
- DF0E 804 _MDMCFG2 = 0xdf0e
- DF0F 805 _MDMCFG1 = 0xdf0f
- DF10 806 _MDMCFG0 = 0xdf10
- DF11 807 _DEVIATN = 0xdf11
- DF12 808 _MCSM2 = 0xdf12
- DF13 809 _MCSM1 = 0xdf13
- DF14 810 _MCSM0 = 0xdf14
- DF15 811 _FOCCFG = 0xdf15
- DF16 812 _BSCFG = 0xdf16
- DF17 813 _AGCCTRL2 = 0xdf17
- DF18 814 _AGCCTRL1 = 0xdf18
- DF19 815 _AGCCTRL0 = 0xdf19
- DF1A 816 _FREND1 = 0xdf1a
- DF1B 817 _FREND0 = 0xdf1b
- DF1C 818 _FSCAL3 = 0xdf1c
- DF1D 819 _FSCAL2 = 0xdf1d
- DF1E 820 _FSCAL1 = 0xdf1e
- DF1F 821 _FSCAL0 = 0xdf1f
- DF20 822 __XREGDF20 = 0xdf20
- DF21 823 __XREGDF21 = 0xdf21
- DF22 824 __XREGDF22 = 0xdf22
- DF23 825 _TEST2 = 0xdf23
- DF24 826 _TEST1 = 0xdf24
- DF25 827 _TEST0 = 0xdf25
- DF26 828 __XREGDF26 = 0xdf26
- DF27 829 _PA_TABLE7 = 0xdf27
- DF28 830 _PA_TABLE6 = 0xdf28
- DF29 831 _PA_TABLE5 = 0xdf29
- DF2A 832 _PA_TABLE4 = 0xdf2a
- DF2B 833 _PA_TABLE3 = 0xdf2b
- DF2C 834 _PA_TABLE2 = 0xdf2c
- DF2D 835 _PA_TABLE1 = 0xdf2d
- DF2E 836 _PA_TABLE0 = 0xdf2e
- DF2F 837 _IOCFG2 = 0xdf2f
- DF30 838 _IOCFG1 = 0xdf30
- DF31 839 _IOCFG0 = 0xdf31
- DF32 840 __XREGDF32 = 0xdf32
- DF33 841 __XREGDF33 = 0xdf33
- DF34 842 __XREGDF34 = 0xdf34
- DF35 843 __XREGDF35 = 0xdf35
- DF36 844 _PARTNUM = 0xdf36
- DF37 845 _VERSION = 0xdf37
- DF38 846 _FREQEST = 0xdf38
- DF39 847 _LQI = 0xdf39
- DF3A 848 _RSSI = 0xdf3a
- DF3B 849 _MARCSTATE = 0xdf3b
- DF3C 850 _PKTSTATUS = 0xdf3c
- DF3D 851 _VCO_VC_DAC = 0xdf3d
- DF40 852 _I2SCFG0 = 0xdf40
- DF41 853 _I2SCFG1 = 0xdf41
- DF42 854 _I2SDATL = 0xdf42
- DF43 855 _I2SDATH = 0xdf43
- DF44 856 _I2SWCNT = 0xdf44
- DF45 857 _I2SSTAT = 0xdf45
- DF46 858 _I2SCLKF0 = 0xdf46
- DF47 859 _I2SCLKF1 = 0xdf47
- DF48 860 _I2SCLKF2 = 0xdf48
- DF80 861 __NA_P0 = 0xdf80
- DF81 862 __NA_SP = 0xdf81
- DF82 863 __NA_DPL0 = 0xdf82
- DF83 864 __NA_DPH0 = 0xdf83
- DF84 865 __NA_DPL1 = 0xdf84
- DF85 866 __NA_DPH1 = 0xdf85
- DF86 867 _X_U0CSR = 0xdf86
- DF87 868 __NA_PCON = 0xdf87
- DF88 869 __NA_TCON = 0xdf88
- DF89 870 _X_P0IFG = 0xdf89
- DF8A 871 _X_P1IFG = 0xdf8a
- DF8B 872 _X_P2IFG = 0xdf8b
- DF8C 873 _X_PICTL = 0xdf8c
- DF8D 874 _X_P1IEN = 0xdf8d
- DF8E 875 __X_SFR8E = 0xdf8e
- DF8F 876 _X_P0INP = 0xdf8f
- DF90 877 __NA_P1 = 0xdf90
- DF91 878 _X_RFIM = 0xdf91
- DF92 879 __NA_DPS = 0xdf92
- DF93 880 _X_MPAGE = 0xdf93
- DF94 881 __X_SFR94 = 0xdf94
- DF95 882 __X_SFR95 = 0xdf95
- DF96 883 __X_SFR96 = 0xdf96
- DF97 884 __X_SFR97 = 0xdf97
- DF98 885 __NA_S0CON = 0xdf98
- DF99 886 __X_SFR99 = 0xdf99
- DF9A 887 __NA_IEN2 = 0xdf9a
- DF9B 888 __NA_S1CON = 0xdf9b
- DF9C 889 _X_T2CT = 0xdf9c
- DF9D 890 _X_T2PR = 0xdf9d
- DF9E 891 _X_T2CTL = 0xdf9e
- DF9F 892 __X_SFR9F = 0xdf9f
- DFA0 893 __NA_P2 = 0xdfa0
- DFA1 894 _X_WORIRQ = 0xdfa1
- DFA2 895 _X_WORCTRL = 0xdfa2
- DFA3 896 _X_WOREVT0 = 0xdfa3
- DFA4 897 _X_WOREVT1 = 0xdfa4
- DFA5 898 _X_WORTIME0 = 0xdfa5
- DFA6 899 _X_WORTIME1 = 0xdfa6
- DFA7 900 __X_SFRA7 = 0xdfa7
- DFA8 901 __NA_IEN0 = 0xdfa8
- DFA9 902 __NA_IP0 = 0xdfa9
- DFAA 903 __X_SFRAA = 0xdfaa
- DFAB 904 _X_FWT = 0xdfab
- DFAC 905 _X_FADDRL = 0xdfac
- DFAD 906 _X_FADDRH = 0xdfad
- DFAE 907 _X_FCTL = 0xdfae
- DFAF 908 _X_FWDATA = 0xdfaf
- DFB0 909 __X_SFRB0 = 0xdfb0
- DFB1 910 _X_ENCDI = 0xdfb1
- DFB2 911 _X_ENCDO = 0xdfb2
- DFB3 912 _X_ENCCS = 0xdfb3
- DFB4 913 _X_ADCCON1 = 0xdfb4
- DFB5 914 _X_ADCCON2 = 0xdfb5
- DFB6 915 _X_ADCCON3 = 0xdfb6
- DFB7 916 __X_SFRB7 = 0xdfb7
- DFB8 917 __NA_IEN1 = 0xdfb8
- DFB9 918 __NA_IP1 = 0xdfb9
- DFBA 919 _X_ADCL = 0xdfba
- DFBB 920 _X_ADCH = 0xdfbb
- DFBC 921 _X_RNDL = 0xdfbc
- DFBD 922 _X_RNDH = 0xdfbd
- DFBE 923 _X_SLEEP = 0xdfbe
- DFBF 924 __X_SFRBF = 0xdfbf
- DFC0 925 __NA_IRCON = 0xdfc0
- DFC1 926 _X_U0DBUF = 0xdfc1
- DFC2 927 _X_U0BAUD = 0xdfc2
- DFC3 928 __X_SFRC3 = 0xdfc3
- DFC4 929 _X_U0UCR = 0xdfc4
- DFC5 930 _X_U0GCR = 0xdfc5
- DFC6 931 _X_CLKCON = 0xdfc6
- DFC7 932 _X_MEMCTR = 0xdfc7
- DFC8 933 __X_SFRC8 = 0xdfc8
- DFC9 934 _X_WDCTL = 0xdfc9
- DFCA 935 _X_T3CNT = 0xdfca
- DFCB 936 _X_T3CTL = 0xdfcb
- DFCC 937 _X_T3CCTL0 = 0xdfcc
- DFCD 938 _X_T3CC0 = 0xdfcd
- DFCE 939 _X_T3CCTL1 = 0xdfce
- DFCF 940 _X_T3CC1 = 0xdfcf
- DFD0 941 __NA_PSW = 0xdfd0
- DFD1 942 _X_DMAIRQ = 0xdfd1
- DFD2 943 _X_DMA1CFGL = 0xdfd2
- DFD3 944 _X_DMA1CFGH = 0xdfd3
- DFD4 945 _X_DMA0CFGL = 0xdfd4
- DFD5 946 _X_DMA0CFGH = 0xdfd5
- DFD6 947 _X_DMAARM = 0xdfd6
- DFD7 948 _X_DMAREQ = 0xdfd7
- DFD8 949 _X_TIMIF = 0xdfd8
- DFD9 950 _X_RFD = 0xdfd9
- DFDA 951 _X_T1CC0L = 0xdfda
- DFDB 952 _X_T1CC0H = 0xdfdb
- DFDC 953 _X_T1CC1L = 0xdfdc
- DFDD 954 _X_T1CC1H = 0xdfdd
- DFDE 955 _X_T1CC2L = 0xdfde
- DFDF 956 _X_T1CC2H = 0xdfdf
- DFE0 957 __NA_ACC = 0xdfe0
- DFE1 958 _X_RFST = 0xdfe1
- DFE2 959 _X_T1CNTL = 0xdfe2
- DFE3 960 _X_T1CNTH = 0xdfe3
- DFE4 961 _X_T1CTL = 0xdfe4
- DFE5 962 _X_T1CCTL0 = 0xdfe5
- DFE6 963 _X_T1CCTL1 = 0xdfe6
- DFE7 964 _X_T1CCTL2 = 0xdfe7
- DFE8 965 __NA_IRCON2 = 0xdfe8
- DFE9 966 _X_RFIF = 0xdfe9
- DFEA 967 _X_T4CNT = 0xdfea
- DFEB 968 _X_T4CTL = 0xdfeb
- DFEC 969 _X_T4CCTL0 = 0xdfec
- DFED 970 _X_T4CC0 = 0xdfed
- DFEE 971 _X_T4CCTL1 = 0xdfee
- DFEF 972 _X_T4CC1 = 0xdfef
- DFF0 973 __NA_B = 0xdff0
- DFF1 974 _X_PERCFG = 0xdff1
- DFF2 975 _X_ADCCFG = 0xdff2
- DFF3 976 _X_P0SEL = 0xdff3
- DFF4 977 _X_P1SEL = 0xdff4
- DFF5 978 _X_P2SEL = 0xdff5
- DFF6 979 _X_P1INP = 0xdff6
- DFF7 980 _X_P2INP = 0xdff7
- DFF8 981 _X_U1CSR = 0xdff8
- DFF9 982 _X_U1DBUF = 0xdff9
- DFFA 983 _X_U1BAUD = 0xdffa
- DFFB 984 _X_U1UCR = 0xdffb
- DFFC 985 _X_U1GCR = 0xdffc
- DFFD 986 _X_P0DIR = 0xdffd
- DFFE 987 _X_P1DIR = 0xdffe
- DFFF 988 _X_P2DIR = 0xdfff
- F000 989 _chan_table::
- F000 990 .ds 1056
- 991 ;--------------------------------------------------------
- 992 ; absolute external ram data
- 993 ;--------------------------------------------------------
- 994 .area XABS (ABS,XDATA)
- 995 ;--------------------------------------------------------
- 996 ; external initialized ram data
- 997 ;--------------------------------------------------------
- 998 .area XISEG (XDATA)
- 999 .area HOME (CODE)
- 1000 .area GSINIT0 (CODE)
- 1001 .area GSINIT1 (CODE)
- 1002 .area GSINIT2 (CODE)
- 1003 .area GSINIT3 (CODE)
- 1004 .area GSINIT4 (CODE)
- 1005 .area GSINIT5 (CODE)
- 1006 .area GSINIT (CODE)
- 1007 .area GSFINAL (CODE)
- 1008 .area CSEG (CODE)
- 1009 ;--------------------------------------------------------
- 1010 ; interrupt vector
- 1011 ;--------------------------------------------------------
- 1012 .area HOME (CODE)
- 0000 1013 __interrupt_vect:
- 0000 02 00 83 1014 ljmp __sdcc_gsinit_startup
- 0003 32 1015 reti
- 0004 1016 .ds 7
- 000B 32 1017 reti
- 000C 1018 .ds 7
- 0013 32 1019 reti
- 0014 1020 .ds 7
- 001B 32 1021 reti
- 001C 1022 .ds 7
- 0023 32 1023 reti
- 0024 1024 .ds 7
- 002B 32 1025 reti
- 002C 1026 .ds 7
- 0033 32 1027 reti
- 0034 1028 .ds 7
- 003B 32 1029 reti
- 003C 1030 .ds 7
- 0043 32 1031 reti
- 0044 1032 .ds 7
- 004B 32 1033 reti
- 004C 1034 .ds 7
- 0053 32 1035 reti
- 0054 1036 .ds 7
- 005B 32 1037 reti
- 005C 1038 .ds 7
- 0063 32 1039 reti
- 0064 1040 .ds 7
- 006B 32 1041 reti
- 006C 1042 .ds 7
- 0073 32 1043 reti
- 0074 1044 .ds 7
- 007B 02 11 42 1045 ljmp _port1_isr
- 1046 ;--------------------------------------------------------
- 1047 ; global & static initialisations
- 1048 ;--------------------------------------------------------
- 1049 .area HOME (CODE)
- 1050 .area GSINIT (CODE)
- 1051 .area GSFINAL (CODE)
- 1052 .area GSINIT (CODE)
- 1053 .globl __sdcc_gsinit_startup
- 1054 .globl __sdcc_program_startup
- 1055 .globl __start__stack
- 1056 .globl __mcs51_genXINIT
- 1057 .globl __mcs51_genXRAMCLEAR
- 1058 .globl __mcs51_genRAMCLEAR
- 1059 .area GSFINAL (CODE)
- 00DC 02 00 7E 1060 ljmp __sdcc_program_startup
- 1061 ;--------------------------------------------------------
- 1062 ; Home
- 1063 ;--------------------------------------------------------
- 1064 .area HOME (CODE)
- 1065 .area HOME (CODE)
- 007E 1066 __sdcc_program_startup:
- 007E 12 0D 27 1067 lcall _main
- 1068 ; return from main will lock up
- 0081 80 FE 1069 sjmp .
- 1070 ;--------------------------------------------------------
- 1071 ; code
- 1072 ;--------------------------------------------------------
- 1073 .area CSEG (CODE)
- 1074 ;------------------------------------------------------------
- 1075 ;Allocation info for local variables in function 'plot'
- 1076 ;------------------------------------------------------------
- 1077 ;col Allocated with name '_plot_col_1_1'
- 1078 ;section Allocated to registers r4
- 1079 ;row Allocated to registers r2
- 1080 ;pixels Allocated to registers r4
- 1081 ;s Allocated to registers r3
- 1082 ;m Allocated to registers r5
- 1083 ;sloc0 Allocated with name '_plot_sloc0_1_0'
- 1084 ;------------------------------------------------------------
- 1085 ; specan.c:43: void plot(u8 col) {
- 1086 ; -----------------------------------------
- 1087 ; function plot
- 1088 ; -----------------------------------------
- 00DF 1089 _plot:
- 0002 1090 ar2 = 0x02
- 0003 1091 ar3 = 0x03
- 0004 1092 ar4 = 0x04
- 0005 1093 ar5 = 0x05
- 0006 1094 ar6 = 0x06
- 0007 1095 ar7 = 0x07
- 0000 1096 ar0 = 0x00
- 0001 1097 ar1 = 0x01
- 00DF 85 82 2B 1098 mov _plot_col_1_1,dpl
- 1099 ; specan.c:49: SSN = LOW;
- 00E2 C2 84 1100 clr _P0_4
- 1101 ; specan.c:50: setDisplayStart(0);
- 00E4 75 82 00 1102 mov dpl,#0x00
- 00E7 12 0F 17 1103 lcall _setDisplayStart
- 1104 ; specan.c:52: if (height == TALL) {
- 00EA 30 01 6C 1105 jnb _height,00102$
- 1106 ; specan.c:53: m = MAX((chan_table[col].max - vscroll), 0);
- 00ED E5 2B 1107 mov a,_plot_col_1_1
- 00EF 75 F0 08 1108 mov b,#0x08
- 00F2 A4 1109 mul ab
- 00F3 24 00 1110 add a,#_chan_table
- 00F5 FB 1111 mov r3,a
- 00F6 74 F0 1112 mov a,#(_chan_table >> 8)
- 00F8 35 F0 1113 addc a,b
- 00FA FC 1114 mov r4,a
- 00FB 74 07 1115 mov a,#0x07
- 00FD 2B 1116 add a,r3
- 00FE F5 82 1117 mov dpl,a
- 0100 E4 1118 clr a
- 0101 3C 1119 addc a,r4
- 0102 F5 83 1120 mov dph,a
- 0104 E0 1121 movx a,@dptr
- 0105 FD 1122 mov r5,a
- 0106 FE 1123 mov r6,a
- 0107 7F 00 1124 mov r7,#0x00
- 0109 A8 28 1125 mov r0,_vscroll
- 010B 79 00 1126 mov r1,#0x00
- 010D EE 1127 mov a,r6
- 010E C3 1128 clr c
- 010F 98 1129 subb a,r0
- 0110 FE 1130 mov r6,a
- 0111 EF 1131 mov a,r7
- 0112 99 1132 subb a,r1
- 0113 FF 1133 mov r7,a
- 0114 C3 1134 clr c
- 0115 E4 1135 clr a
- 0116 9E 1136 subb a,r6
- 0117 74 80 1137 mov a,#(0x00 ^ 0x80)
- 0119 8F F0 1138 mov b,r7
- 011B 63 F0 80 1139 xrl b,#0x80
- 011E 95 F0 1140 subb a,b
- 0120 50 07 1141 jnc 00114$
- 0122 ED 1142 mov a,r5
- 0123 C3 1143 clr c
- 0124 95 28 1144 subb a,_vscroll
- 0126 FD 1145 mov r5,a
- 0127 80 02 1146 sjmp 00115$
- 0129 1147 00114$:
- 0129 7D 00 1148 mov r5,#0x00
- 012B 1149 00115$:
- 1150 ; specan.c:54: s = MAX((chan_table[col].ss - vscroll), 0);
- 012B 74 06 1151 mov a,#0x06
- 012D 2B 1152 add a,r3
- 012E F5 82 1153 mov dpl,a
- 0130 E4 1154 clr a
- 0131 3C 1155 addc a,r4
- 0132 F5 83 1156 mov dph,a
- 0134 E0 1157 movx a,@dptr
- 0135 FB 1158 mov r3,a
- 0136 FC 1159 mov r4,a
- 0137 7E 00 1160 mov r6,#0x00
- 0139 C3 1161 clr c
- 013A 98 1162 subb a,r0
- 013B F8 1163 mov r0,a
- 013C EE 1164 mov a,r6
- 013D 99 1165 subb a,r1
- 013E F9 1166 mov r1,a
- 013F C3 1167 clr c
- 0140 E4 1168 clr a
- 0141 98 1169 subb a,r0
- 0142 74 80 1170 mov a,#(0x00 ^ 0x80)
- 0144 89 F0 1171 mov b,r1
- 0146 63 F0 80 1172 xrl b,#0x80
- 0149 95 F0 1173 subb a,b
- 014B 50 07 1174 jnc 00116$
- 014D EB 1175 mov a,r3
- 014E C3 1176 clr c
- 014F 95 28 1177 subb a,_vscroll
- 0151 FB 1178 mov r3,a
- 0152 80 02 1179 sjmp 00117$
- 0154 1180 00116$:
- 0154 7B 00 1181 mov r3,#0x00
- 0156 1182 00117$:
- 0156 02 02 07 1183 ljmp 00130$
- 0159 1184 00102$:
- 1185 ; specan.c:56: s = MAX((chan_table[col].ss - vscroll) >> 2, 0);
- 0159 E5 2B 1186 mov a,_plot_col_1_1
- 015B 75 F0 08 1187 mov b,#0x08
- 015E A4 1188 mul ab
- 015F 24 00 1189 add a,#_chan_table
- 0161 FC 1190 mov r4,a
- 0162 74 F0 1191 mov a,#(_chan_table >> 8)
- 0164 35 F0 1192 addc a,b
- 0166 FE 1193 mov r6,a
- 0167 74 06 1194 mov a,#0x06
- 0169 2C 1195 add a,r4
- 016A F5 82 1196 mov dpl,a
- 016C E4 1197 clr a
- 016D 3E 1198 addc a,r6
- 016E F5 83 1199 mov dph,a
- 0170 E0 1200 movx a,@dptr
- 0171 FF 1201 mov r7,a
- 0172 78 00 1202 mov r0,#0x00
- 0174 85 28 2C 1203 mov _plot_sloc0_1_0,_vscroll
- 0177 75 2D 00 1204 mov (_plot_sloc0_1_0 + 1),#0x00
- 017A EF 1205 mov a,r7
- 017B C3 1206 clr c
- 017C 95 2C 1207 subb a,_plot_sloc0_1_0
- 017E F9 1208 mov r1,a
- 017F E8 1209 mov a,r0
- 0180 95 2D 1210 subb a,(_plot_sloc0_1_0 + 1)
- 0182 A2 E7 1211 mov c,acc.7
- 0184 13 1212 rrc a
- 0185 C9 1213 xch a,r1
- 0186 13 1214 rrc a
- 0187 C9 1215 xch a,r1
- 0188 A2 E7 1216 mov c,acc.7
- 018A 13 1217 rrc a
- 018B C9 1218 xch a,r1
- 018C 13 1219 rrc a
- 018D C9 1220 xch a,r1
- 018E FA 1221 mov r2,a
- 018F C3 1222 clr c
- 0190 E4 1223 clr a
- 0191 99 1224 subb a,r1
- 0192 74 80 1225 mov a,#(0x00 ^ 0x80)
- 0194 8A F0 1226 mov b,r2
- 0196 63 F0 80 1227 xrl b,#0x80
- 0199 95 F0 1228 subb a,b
- 019B 50 18 1229 jnc 00118$
- 019D EF 1230 mov a,r7
- 019E C3 1231 clr c
- 019F 95 2C 1232 subb a,_plot_sloc0_1_0
- 01A1 FF 1233 mov r7,a
- 01A2 E8 1234 mov a,r0
- 01A3 95 2D 1235 subb a,(_plot_sloc0_1_0 + 1)
- 01A5 F8 1236 mov r0,a
- 01A6 A2 E7 1237 mov c,acc.7
- 01A8 13 1238 rrc a
- 01A9 CF 1239 xch a,r7
- 01AA 13 1240 rrc a
- 01AB CF 1241 xch a,r7
- 01AC A2 E7 1242 mov c,acc.7
- 01AE 13 1243 rrc a
- 01AF CF 1244 xch a,r7
- 01B0 13 1245 rrc a
- 01B1 CF 1246 xch a,r7
- 01B2 FA 1247 mov r2,a
- 01B3 80 04 1248 sjmp 00119$
- 01B5 1249 00118$:
- 01B5 7F 00 1250 mov r7,#0x00
- 01B7 7A 00 1251 mov r2,#0x00
- 01B9 1252 00119$:
- 01B9 8F 03 1253 mov ar3,r7
- 1254 ; specan.c:57: m = MAX((chan_table[col].max - vscroll) >> 2, 0);
- 01BB 74 07 1255 mov a,#0x07
- 01BD 2C 1256 add a,r4
- 01BE F5 82 1257 mov dpl,a
- 01C0 E4 1258 clr a
- 01C1 3E 1259 addc a,r6
- 01C2 F5 83 1260 mov dph,a
- 01C4 E0 1261 movx a,@dptr
- 01C5 FA 1262 mov r2,a
- 01C6 7C 00 1263 mov r4,#0x00
- 01C8 C3 1264 clr c
- 01C9 95 2C 1265 subb a,_plot_sloc0_1_0
- 01CB FE 1266 mov r6,a
- 01CC EC 1267 mov a,r4
- 01CD 95 2D 1268 subb a,(_plot_sloc0_1_0 + 1)
- 01CF A2 E7 1269 mov c,acc.7
- 01D1 13 1270 rrc a
- 01D2 CE 1271 xch a,r6
- 01D3 13 1272 rrc a
- 01D4 CE 1273 xch a,r6
- 01D5 A2 E7 1274 mov c,acc.7
- 01D7 13 1275 rrc a
- 01D8 CE 1276 xch a,r6
- 01D9 13 1277 rrc a
- 01DA CE 1278 xch a,r6
- 01DB FF 1279 mov r7,a
- 01DC C3 1280 clr c
- 01DD E4 1281 clr a
- 01DE 9E 1282 subb a,r6
- 01DF 74 80 1283 mov a,#(0x00 ^ 0x80)
- 01E1 8F F0 1284 mov b,r7
- 01E3 63 F0 80 1285 xrl b,#0x80
- 01E6 95 F0 1286 subb a,b
- 01E8 50 17 1287 jnc 00120$
- 01EA EA 1288 mov a,r2
- 01EB C3 1289 clr c
- 01EC 95 2C 1290 subb a,_plot_sloc0_1_0
- 01EE FA 1291 mov r2,a
- 01EF EC 1292 mov a,r4
- 01F0 95 2D 1293 subb a,(_plot_sloc0_1_0 + 1)
- 01F2 A2 E7 1294 mov c,acc.7
- 01F4 13 1295 rrc a
- 01F5 CA 1296 xch a,r2
- 01F6 13 1297 rrc a
- 01F7 CA 1298 xch a,r2
- 01F8 A2 E7 1299 mov c,acc.7
- 01FA 13 1300 rrc a
- 01FB CA 1301 xch a,r2
- 01FC 13 1302 rrc a
- 01FD CA 1303 xch a,r2
- 01FE FC 1304 mov r4,a
- 01FF 80 04 1305 sjmp 00121$
- 0201 1306 00120$:
- 0201 7A 00 1307 mov r2,#0x00
- 0203 7C 00 1308 mov r4,#0x00
- 0205 1309 00121$:
- 0205 8A 05 1310 mov ar5,r2
- 1311 ; specan.c:60: for (row = 0; row < 6; row++) {
- 0207 1312 00130$:
- 0207 7A 00 1313 mov r2,#0x00
- 0209 1314 00108$:
- 0209 BA 06 00 1315 cjne r2,#0x06,00137$
- 020C 1316 00137$:
- 020C 40 03 1317 jc 00138$
- 020E 02 02 CD 1318 ljmp 00111$
- 0211 1319 00138$:
- 1320 ; specan.c:61: setCursor(5 - row, col);
- 0211 74 05 1321 mov a,#0x05
- 0213 C3 1322 clr c
- 0214 9A 1323 subb a,r2
- 0215 F5 82 1324 mov dpl,a
- 0217 85 2B 08 1325 mov _setCursor_PARM_2,_plot_col_1_1
- 021A C0 02 1326 push ar2
- 021C C0 03 1327 push ar3
- 021E C0 05 1328 push ar5
- 0220 12 0E F4 1329 lcall _setCursor
- 0223 D0 05 1330 pop ar5
- 0225 D0 03 1331 pop ar3
- 0227 D0 02 1332 pop ar2
- 1333 ; specan.c:62: section = s - (8 * row);
- 0229 EA 1334 mov a,r2
- 022A C4 1335 swap a
- 022B 03 1336 rr a
- 022C 54 F8 1337 anl a,#0xf8
- 022E FC 1338 mov r4,a
- 022F EB 1339 mov a,r3
- 0230 C3 1340 clr c
- 0231 9C 1341 subb a,r4
- 0232 FC 1342 mov r4,a
- 1343 ; specan.c:63: if (s >= (8 * (row + 1)))
- 0233 8A 06 1344 mov ar6,r2
- 0235 7F 00 1345 mov r7,#0x00
- 0237 0E 1346 inc r6
- 0238 BE 00 01 1347 cjne r6,#0x00,00139$
- 023B 0F 1348 inc r7
- 023C 1349 00139$:
- 023C EF 1350 mov a,r7
- 023D C4 1351 swap a
- 023E 03 1352 rr a
- 023F 54 F8 1353 anl a,#0xf8
- 0241 CE 1354 xch a,r6
- 0242 C4 1355 swap a
- 0243 03 1356 rr a
- 0244 CE 1357 xch a,r6
- 0245 6E 1358 xrl a,r6
- 0246 CE 1359 xch a,r6
- 0247 54 F8 1360 anl a,#0xf8
- 0249 CE 1361 xch a,r6
- 024A 6E 1362 xrl a,r6
- 024B FF 1363 mov r7,a
- 024C 8B 00 1364 mov ar0,r3
- 024E 79 00 1365 mov r1,#0x00
- 0250 C3 1366 clr c
- 0251 E8 1367 mov a,r0
- 0252 9E 1368 subb a,r6
- 0253 E9 1369 mov a,r1
- 0254 64 80 1370 xrl a,#0x80
- 0256 8F F0 1371 mov b,r7
- 0258 63 F0 80 1372 xrl b,#0x80
- 025B 95 F0 1373 subb a,b
- 025D 40 02 1374 jc 00105$
- 1375 ; specan.c:64: section = 8;
- 025F 7C 08 1376 mov r4,#0x08
- 0261 1377 00105$:
- 1378 ; specan.c:65: pixels = 0xff << (8 - section);
- 0261 74 08 1379 mov a,#0x08
- 0263 C3 1380 clr c
- 0264 9C 1381 subb a,r4
- 0265 F5 F0 1382 mov b,a
- 0267 05 F0 1383 inc b
- 0269 74 FF 1384 mov a,#0xFF
- 026B 80 02 1385 sjmp 00143$
- 026D 1386 00141$:
- 026D 25 E0 1387 add a,acc
- 026F 1388 00143$:
- 026F D5 F0 FB 1389 djnz b,00141$
- 0272 FC 1390 mov r4,a
- 1391 ; specan.c:66: if (m <= (8 * (row + 1)))
- 0273 8A 06 1392 mov ar6,r2
- 0275 7F 00 1393 mov r7,#0x00
- 0277 0E 1394 inc r6
- 0278 BE 00 01 1395 cjne r6,#0x00,00144$
- 027B 0F 1396 inc r7
- 027C 1397 00144$:
- 027C EF 1398 mov a,r7
- 027D C4 1399 swap a
- 027E 03 1400 rr a
- 027F 54 F8 1401 anl a,#0xf8
- 0281 CE 1402 xch a,r6
- 0282 C4 1403 swap a
- 0283 03 1404 rr a
- 0284 CE 1405 xch a,r6
- 0285 6E 1406 xrl a,r6
- 0286 CE 1407 xch a,r6
- 0287 54 F8 1408 anl a,#0xf8
- 0289 CE 1409 xch a,r6
- 028A 6E 1410 xrl a,r6
- 028B FF 1411 mov r7,a
- 028C 8D 00 1412 mov ar0,r5
- 028E 79 00 1413 mov r1,#0x00
- 0290 C3 1414 clr c
- 0291 EE 1415 mov a,r6
- 0292 98 1416 subb a,r0
- 0293 EF 1417 mov a,r7
- 0294 64 80 1418 xrl a,#0x80
- 0296 89 F0 1419 mov b,r1
- 0298 63 F0 80 1420 xrl b,#0x80
- 029B 95 F0 1421 subb a,b
- 029D 40 19 1422 jc 00107$
- 1423 ; specan.c:67: pixels |= (0x01 << ((8 * (row + 1)) - m));
- 029F EA 1424 mov a,r2
- 02A0 04 1425 inc a
- 02A1 C4 1426 swap a
- 02A2 03 1427 rr a
- 02A3 54 F8 1428 anl a,#0xf8
- 02A5 FE 1429 mov r6,a
- 02A6 C3 1430 clr c
- 02A7 9D 1431 subb a,r5
- 02A8 F5 F0 1432 mov b,a
- 02AA 05 F0 1433 inc b
- 02AC 74 01 1434 mov a,#0x01
- 02AE 80 02 1435 sjmp 00148$
- 02B0 1436 00146$:
- 02B0 25 E0 1437 add a,acc
- 02B2 1438 00148$:
- 02B2 D5 F0 FB 1439 djnz b,00146$
- 02B5 FE 1440 mov r6,a
- 02B6 42 04 1441 orl ar4,a
- 02B8 1442 00107$:
- 1443 ; specan.c:68: txData(pixels);
- 02B8 8C 82 1444 mov dpl,r4
- 02BA C0 02 1445 push ar2
- 02BC C0 03 1446 push ar3
- 02BE C0 05 1447 push ar5
- 02C0 12 0E 8D 1448 lcall _txData
- 02C3 D0 05 1449 pop ar5
- 02C5 D0 03 1450 pop ar3
- 02C7 D0 02 1451 pop ar2
- 1452 ; specan.c:60: for (row = 0; row < 6; row++) {
- 02C9 0A 1453 inc r2
- 02CA 02 02 09 1454 ljmp 00108$
- 02CD 1455 00111$:
- 1456 ; specan.c:71: SSN = HIGH;
- 02CD D2 84 1457 setb _P0_4
- 02CF 22 1458 ret
- 1459 ;------------------------------------------------------------
- 1460 ;Allocation info for local variables in function 'draw_ruler'
- 1461 ;------------------------------------------------------------
- 1462 ;col Allocated to registers r3
- 1463 ;offset Allocated to registers r2
- 1464 ;------------------------------------------------------------
- 1465 ; specan.c:74: void draw_ruler() {
- 1466 ; -----------------------------------------
- 1467 ; function draw_ruler
- 1468 ; -----------------------------------------
- 02D0 1469 _draw_ruler:
- 1470 ; specan.c:76: u8 offset = 0;
- 02D0 7A 00 1471 mov r2,#0x00
- 1472 ; specan.c:78: SSN = LOW;
- 02D2 C2 84 1473 clr _P0_4
- 1474 ; specan.c:80: switch (width) {
- 02D4 74 01 1475 mov a,#0x01
- 02D6 B5 27 02 1476 cjne a,_width,00133$
- 02D9 80 07 1477 sjmp 00101$
- 02DB 1478 00133$:
- 02DB 74 02 1479 mov a,#0x02
- 1480 ; specan.c:81: case NARROW:
- 02DD B5 27 47 1481 cjne a,_width,00103$
- 02E0 80 24 1482 sjmp 00102$
- 02E2 1483 00101$:
- 1484 ; specan.c:82: setCursor(6, 0);
- 02E2 75 08 00 1485 mov _setCursor_PARM_2,#0x00
- 02E5 75 82 06 1486 mov dpl,#0x06
- 02E8 12 0E F4 1487 lcall _setCursor
- 1488 ; specan.c:83: for (col = 0; col < NUM_CHANNELS; col++)
- 02EB 7B 00 1489 mov r3,#0x00
- 02ED 1490 00107$:
- 02ED BB 84 00 1491 cjne r3,#0x84,00135$
- 02F0 1492 00135$:
- 02F0 40 03 1493 jc 00136$
- 02F2 02 03 6F 1494 ljmp 00106$
- 02F5 1495 00136$:
- 1496 ; specan.c:84: txData(narrow_ruler[col]);
- 02F5 EB 1497 mov a,r3
- 02F6 90 1B 3A 1498 mov dptr,#_narrow_ruler
- 02F9 93 1499 movc a,@a+dptr
- 02FA F5 82 1500 mov dpl,a
- 02FC C0 03 1501 push ar3
- 02FE 12 0E 8D 1502 lcall _txData
- 0301 D0 03 1503 pop ar3
- 1504 ; specan.c:83: for (col = 0; col < NUM_CHANNELS; col++)
- 0303 0B 1505 inc r3
- 1506 ; specan.c:86: case ULTRAWIDE:
- 0304 80 E7 1507 sjmp 00107$
- 0306 1508 00102$:
- 1509 ; specan.c:87: setCursor(6, 0);
- 0306 75 08 00 1510 mov _setCursor_PARM_2,#0x00
- 0309 75 82 06 1511 mov dpl,#0x06
- 030C 12 0E F4 1512 lcall _setCursor
- 1513 ; specan.c:88: for (col = 0; col < NUM_CHANNELS; col++)
- 030F 7B 00 1514 mov r3,#0x00
- 0311 1515 00111$:
- 0311 BB 84 00 1516 cjne r3,#0x84,00137$
- 0314 1517 00137$:
- 0314 50 59 1518 jnc 00106$
- 1519 ; specan.c:89: txData(ultrawide_ruler[col]);
- 0316 EB 1520 mov a,r3
- 0317 90 1C 5B 1521 mov dptr,#_ultrawide_ruler
- 031A 93 1522 movc a,@a+dptr
- 031B F5 82 1523 mov dpl,a
- 031D C0 03 1524 push ar3
- 031F 12 0E 8D 1525 lcall _txData
- 0322 D0 03 1526 pop ar3
- 1527 ; specan.c:88: for (col = 0; col < NUM_CHANNELS; col++)
- 0324 0B 1528 inc r3
- 1529 ; specan.c:91: default:
- 0325 80 EA 1530 sjmp 00111$
- 0327 1531 00103$:
- 1532 ; specan.c:92: if (center_freq % 10)
- 0327 75 0E 0A 1533 mov __moduint_PARM_2,#0x0A
- 032A 75 0F 00 1534 mov (__moduint_PARM_2 + 1),#0x00
- 032D 85 22 82 1535 mov dpl,_center_freq
- 0330 85 23 83 1536 mov dph,(_center_freq + 1)
- 0333 C0 02 1537 push ar2
- 0335 12 14 19 1538 lcall __moduint
- 0338 E5 82 1539 mov a,dpl
- 033A 85 83 F0 1540 mov b,dph
- 033D D0 02 1541 pop ar2
- 033F 45 F0 1542 orl a,b
- 0341 60 02 1543 jz 00105$
- 1544 ; specan.c:93: offset = 25;
- 0343 7A 19 1545 mov r2,#0x19
- 0345 1546 00105$:
- 1547 ; specan.c:95: setCursor(6, 0);
- 0345 75 08 00 1548 mov _setCursor_PARM_2,#0x00
- 0348 75 82 06 1549 mov dpl,#0x06
- 034B C0 02 1550 push ar2
- 034D 12 0E F4 1551 lcall _setCursor
- 0350 D0 02 1552 pop ar2
- 1553 ; specan.c:96: for (col = 0; col < NUM_CHANNELS; col++)
- 0352 7B 00 1554 mov r3,#0x00
- 0354 1555 00115$:
- 0354 BB 84 00 1556 cjne r3,#0x84,00140$
- 0357 1557 00140$:
- 0357 50 16 1558 jnc 00106$
- 1559 ; specan.c:97: txData(wide_ruler[col + offset]);
- 0359 EA 1560 mov a,r2
- 035A 2B 1561 add a,r3
- 035B 90 1B BE 1562 mov dptr,#_wide_ruler
- 035E 93 1563 movc a,@a+dptr
- 035F F5 82 1564 mov dpl,a
- 0361 C0 02 1565 push ar2
- 0363 C0 03 1566 push ar3
- 0365 12 0E 8D 1567 lcall _txData
- 0368 D0 03 1568 pop ar3
- 036A D0 02 1569 pop ar2
- 1570 ; specan.c:96: for (col = 0; col < NUM_CHANNELS; col++)
- 036C 0B 1571 inc r3
- 1572 ; specan.c:99: }
- 036D 80 E5 1573 sjmp 00115$
- 036F 1574 00106$:
- 1575 ; specan.c:101: SSN = HIGH;
- 036F D2 84 1576 setb _P0_4
- 0371 22 1577 ret
- 1578 ;------------------------------------------------------------
- 1579 ;Allocation info for local variables in function 'draw_freq'
- 1580 ;------------------------------------------------------------
- 1581 ;------------------------------------------------------------
- 1582 ; specan.c:104: void draw_freq() {
- 1583 ; -----------------------------------------
- 1584 ; function draw_freq
- 1585 ; -----------------------------------------
- 0372 1586 _draw_freq:
- 1587 ; specan.c:105: SSN = LOW;
- 0372 C2 84 1588 clr _P0_4
- 1589 ; specan.c:107: switch (width) {
- 0374 74 01 1590 mov a,#0x01
- 0376 B5 27 02 1591 cjne a,_width,00109$
- 0379 80 0B 1592 sjmp 00101$
- 037B 1593 00109$:
- 037B 74 02 1594 mov a,#0x02
- 037D B5 27 03 1595 cjne a,_width,00110$
- 0380 02 04 02 1596 ljmp 00102$
- 0383 1597 00110$:
- 0383 02 04 58 1598 ljmp 00103$
- 1599 ; specan.c:108: case NARROW:
- 0386 1600 00101$:
- 1601 ; specan.c:109: setCursor(7, 18);
- 0386 75 08 12 1602 mov _setCursor_PARM_2,#0x12
- 0389 75 82 07 1603 mov dpl,#0x07
- 038C 12 0E F4 1604 lcall _setCursor
- 1605 ; specan.c:110: printf("%d", center_freq - 2);
- 038F E5 22 1606 mov a,_center_freq
- 0391 24 FE 1607 add a,#0xfe
- 0393 FA 1608 mov r2,a
- 0394 E5 23 1609 mov a,(_center_freq + 1)
- 0396 34 FF 1610 addc a,#0xff
- 0398 FB 1611 mov r3,a
- 0399 C0 02 1612 push ar2
- 039B C0 03 1613 push ar3
- 039D 74 DF 1614 mov a,#__str_0
- 039F C0 E0 1615 push acc
- 03A1 74 1C 1616 mov a,#(__str_0 >> 8)
- 03A3 C0 E0 1617 push acc
- 03A5 74 80 1618 mov a,#0x80
- 03A7 C0 E0 1619 push acc
- 03A9 12 14 D9 1620 lcall _printf
- 03AC E5 81 1621 mov a,sp
- 03AE 24 FB 1622 add a,#0xfb
- 03B0 F5 81 1623 mov sp,a
- 1624 ; specan.c:112: setCursor(7, 58);
- 03B2 75 08 3A 1625 mov _setCursor_PARM_2,#0x3A
- 03B5 75 82 07 1626 mov dpl,#0x07
- 03B8 12 0E F4 1627 lcall _setCursor
- 1628 ; specan.c:113: printf("%d", center_freq);
- 03BB C0 22 1629 push _center_freq
- 03BD C0 23 1630 push (_center_freq + 1)
- 03BF 74 DF 1631 mov a,#__str_0
- 03C1 C0 E0 1632 push acc
- 03C3 74 1C 1633 mov a,#(__str_0 >> 8)
- 03C5 C0 E0 1634 push acc
- 03C7 74 80 1635 mov a,#0x80
- 03C9 C0 E0 1636 push acc
- 03CB 12 14 D9 1637 lcall _printf
- 03CE E5 81 1638 mov a,sp
- 03D0 24 FB 1639 add a,#0xfb
- 03D2 F5 81 1640 mov sp,a
- 1641 ; specan.c:115: setCursor(7, 98);
- 03D4 75 08 62 1642 mov _setCursor_PARM_2,#0x62
- 03D7 75 82 07 1643 mov dpl,#0x07
- 03DA 12 0E F4 1644 lcall _setCursor
- 1645 ; specan.c:116: printf("%d", center_freq + 2);
- 03DD 74 02 1646 mov a,#0x02
- 03DF 25 22 1647 add a,_center_freq
- 03E1 FA 1648 mov r2,a
- 03E2 E4 1649 clr a
- 03E3 35 23 1650 addc a,(_center_freq + 1)
- 03E5 FB 1651 mov r3,a
- 03E6 C0 02 1652 push ar2
- 03E8 C0 03 1653 push ar3
- 03EA 74 DF 1654 mov a,#__str_0
- 03EC C0 E0 1655 push acc
- 03EE 74 1C 1656 mov a,#(__str_0 >> 8)
- 03F0 C0 E0 1657 push acc
- 03F2 74 80 1658 mov a,#0x80
- 03F4 C0 E0 1659 push acc
- 03F6 12 14 D9 1660 lcall _printf
- 03F9 E5 81 1661 mov a,sp
- 03FB 24 FB 1662 add a,#0xfb
- 03FD F5 81 1663 mov sp,a
- 1664 ; specan.c:117: break;
- 03FF 02 04 D1 1665 ljmp 00104$
- 1666 ; specan.c:118: case ULTRAWIDE:
- 0402 1667 00102$:
- 1668 ; specan.c:119: setCursor(7, 13);
- 0402 75 08 0D 1669 mov _setCursor_PARM_2,#0x0D
- 0405 75 82 07 1670 mov dpl,#0x07
- 0408 12 0E F4 1671 lcall _setCursor
- 1672 ; specan.c:124: center_freq + 30);
- 040B 74 1E 1673 mov a,#0x1E
- 040D 25 22 1674 add a,_center_freq
- 040F FA 1675 mov r2,a
- 0410 E4 1676 clr a
- 0411 35 23 1677 addc a,(_center_freq + 1)
- 0413 FB 1678 mov r3,a
- 1679 ; specan.c:123: center_freq + 10,
- 0414 74 0A 1680 mov a,#0x0A
- 0416 25 22 1681 add a,_center_freq
- 0418 FC 1682 mov r4,a
- 0419 E4 1683 clr a
- 041A 35 23 1684 addc a,(_center_freq + 1)
- 041C FD 1685 mov r5,a
- 1686 ; specan.c:122: center_freq - 10,
- 041D E5 22 1687 mov a,_center_freq
- 041F 24 F6 1688 add a,#0xf6
- 0421 FE 1689 mov r6,a
- 0422 E5 23 1690 mov a,(_center_freq + 1)
- 0424 34 FF 1691 addc a,#0xff
- 0426 FF 1692 mov r7,a
- 1693 ; specan.c:121: center_freq - 30,
- 0427 E5 22 1694 mov a,_center_freq
- 0429 24 E2 1695 add a,#0xe2
- 042B F8 1696 mov r0,a
- 042C E5 23 1697 mov a,(_center_freq + 1)
- 042E 34 FF 1698 addc a,#0xff
- 0430 F9 1699 mov r1,a
- 1700 ; specan.c:120: printf("%d %d %d %d",
- 0431 C0 02 1701 push ar2
- 0433 C0 03 1702 push ar3
- 0435 C0 04 1703 push ar4
- 0437 C0 05 1704 push ar5
- 0439 C0 06 1705 push ar6
- 043B C0 07 1706 push ar7
- 043D C0 00 1707 push ar0
- 043F C0 01 1708 push ar1
- 0441 74 E2 1709 mov a,#__str_1
- 0443 C0 E0 1710 push acc
- 0445 74 1C 1711 mov a,#(__str_1 >> 8)
- 0447 C0 E0 1712 push acc
- 0449 74 80 1713 mov a,#0x80
- 044B C0 E0 1714 push acc
- 044D 12 14 D9 1715 lcall _printf
- 0450 E5 81 1716 mov a,sp
- 0452 24 F5 1717 add a,#0xf5
- 0454 F5 81 1718 mov sp,a
- 1719 ; specan.c:125: break;
- 1720 ; specan.c:126: default:
- 0456 80 79 1721 sjmp 00104$
- 0458 1722 00103$:
- 1723 ; specan.c:127: setCursor(7, 8);
- 0458 75 08 08 1724 mov _setCursor_PARM_2,#0x08
- 045B 75 82 07 1725 mov dpl,#0x07
- 045E 12 0E F4 1726 lcall _setCursor
- 1727 ; specan.c:128: printf("%d", center_freq - 10);
- 0461 E5 22 1728 mov a,_center_freq
- 0463 24 F6 1729 add a,#0xf6
- 0465 FA 1730 mov r2,a
- 0466 E5 23 1731 mov a,(_center_freq + 1)
- 0468 34 FF 1732 addc a,#0xff
- 046A FB 1733 mov r3,a
- 046B C0 02 1734 push ar2
- 046D C0 03 1735 push ar3
- 046F 74 DF 1736 mov a,#__str_0
- 0471 C0 E0 1737 push acc
- 0473 74 1C 1738 mov a,#(__str_0 >> 8)
- 0475 C0 E0 1739 push acc
- 0477 74 80 1740 mov a,#0x80
- 0479 C0 E0 1741 push acc
- 047B 12 14 D9 1742 lcall _printf
- 047E E5 81 1743 mov a,sp
- 0480 24 FB 1744 add a,#0xfb
- 0482 F5 81 1745 mov sp,a
- 1746 ; specan.c:130: setCursor(7, 58);
- 0484 75 08 3A 1747 mov _setCursor_PARM_2,#0x3A
- 0487 75 82 07 1748 mov dpl,#0x07
- 048A 12 0E F4 1749 lcall _setCursor
- 1750 ; specan.c:131: printf("%d", center_freq);
- 048D C0 22 1751 push _center_freq
- 048F C0 23 1752 push (_center_freq + 1)
- 0491 74 DF 1753 mov a,#__str_0
- 0493 C0 E0 1754 push acc
- 0495 74 1C 1755 mov a,#(__str_0 >> 8)
- 0497 C0 E0 1756 push acc
- 0499 74 80 1757 mov a,#0x80
- 049B C0 E0 1758 push acc
- 049D 12 14 D9 1759 lcall _printf
- 04A0 E5 81 1760 mov a,sp
- 04A2 24 FB 1761 add a,#0xfb
- 04A4 F5 81 1762 mov sp,a
- 1763 ; specan.c:133: setCursor(7, 108);
- 04A6 75 08 6C 1764 mov _setCursor_PARM_2,#0x6C
- 04A9 75 82 07 1765 mov dpl,#0x07
- 04AC 12 0E F4 1766 lcall _setCursor
- 1767 ; specan.c:134: printf("%d", center_freq + 10);
- 04AF 74 0A 1768 mov a,#0x0A
- 04B1 25 22 1769 add a,_center_freq
- 04B3 FA 1770 mov r2,a
- 04B4 E4 1771 clr a
- 04B5 35 23 1772 addc a,(_center_freq + 1)
- 04B7 FB 1773 mov r3,a
- 04B8 C0 02 1774 push ar2
- 04BA C0 03 1775 push ar3
- 04BC 74 DF 1776 mov a,#__str_0
- 04BE C0 E0 1777 push acc
- 04C0 74 1C 1778 mov a,#(__str_0 >> 8)
- 04C2 C0 E0 1779 push acc
- 04C4 74 80 1780 mov a,#0x80
- 04C6 C0 E0 1781 push acc
- 04C8 12 14 D9 1782 lcall _printf
- 04CB E5 81 1783 mov a,sp
- 04CD 24 FB 1784 add a,#0xfb
- 04CF F5 81 1785 mov sp,a
- 1786 ; specan.c:136: }
- 04D1 1787 00104$:
- 1788 ; specan.c:138: SSN = HIGH;
- 04D1 D2 84 1789 setb _P0_4
- 04D3 22 1790 ret
- 1791 ;------------------------------------------------------------
- 1792 ;Allocation info for local variables in function 'radio_setup'
- 1793 ;------------------------------------------------------------
- 1794 ;------------------------------------------------------------
- 1795 ; specan.c:141: void radio_setup() {
- 1796 ; -----------------------------------------
- 1797 ; function radio_setup
- 1798 ; -----------------------------------------
- 04D4 1799 _radio_setup:
- 1800 ; specan.c:143: FSCTRL1 = 0x12;
- 04D4 90 DF 07 1801 mov dptr,#_FSCTRL1
- 04D7 74 12 1802 mov a,#0x12
- 04D9 F0 1803 movx @dptr,a
- 1804 ; specan.c:144: FSCTRL0 = 0x00;
- 04DA 90 DF 08 1805 mov dptr,#_FSCTRL0
- 04DD E4 1806 clr a
- 04DE F0 1807 movx @dptr,a
- 1808 ; specan.c:147: AGCCTRL2 |= AGCCTRL2_MAX_DVGA_GAIN;
- 04DF 90 DF 17 1809 mov dptr,#_AGCCTRL2
- 04E2 E0 1810 movx a,@dptr
- 04E3 44 C0 1811 orl a,#0xC0
- 04E5 F0 1812 movx @dptr,a
- 1813 ; specan.c:150: FSCAL3 = 0xEA;
- 04E6 90 DF 1C 1814 mov dptr,#_FSCAL3
- 04E9 74 EA 1815 mov a,#0xEA
- 04EB F0 1816 movx @dptr,a
- 1817 ; specan.c:151: FSCAL2 = 0x2A;
- 04EC 90 DF 1D 1818 mov dptr,#_FSCAL2
- 04EF 74 2A 1819 mov a,#0x2A
- 04F1 F0 1820 movx @dptr,a
- 1821 ; specan.c:152: FSCAL1 = 0x00;
- 04F2 90 DF 1E 1822 mov dptr,#_FSCAL1
- 04F5 E4 1823 clr a
- 04F6 F0 1824 movx @dptr,a
- 1825 ; specan.c:153: FSCAL0 = 0x1F;
- 04F7 90 DF 1F 1826 mov dptr,#_FSCAL0
- 04FA 74 1F 1827 mov a,#0x1F
- 04FC F0 1828 movx @dptr,a
- 1829 ; specan.c:156: TEST2 = 0x88;
- 04FD 90 DF 23 1830 mov dptr,#_TEST2
- 0500 74 88 1831 mov a,#0x88
- 0502 F0 1832 movx @dptr,a
- 1833 ; specan.c:157: TEST1 = 0x31;
- 0503 90 DF 24 1834 mov dptr,#_TEST1
- 0506 74 31 1835 mov a,#0x31
- 0508 F0 1836 movx @dptr,a
- 1837 ; specan.c:158: TEST0 = 0x09;
- 0509 90 DF 25 1838 mov dptr,#_TEST0
- 050C 74 09 1839 mov a,#0x09
- 050E F0 1840 movx @dptr,a
- 1841 ; specan.c:161: MCSM0 = 0;
- 050F 90 DF 14 1842 mov dptr,#_MCSM0
- 0512 E4 1843 clr a
- 0513 F0 1844 movx @dptr,a
- 0514 22 1845 ret
- 1846 ;------------------------------------------------------------
- 1847 ;Allocation info for local variables in function 'set_filter'
- 1848 ;------------------------------------------------------------
- 1849 ;------------------------------------------------------------
- 1850 ; specan.c:165: void set_filter() {
- 1851 ; -----------------------------------------
- 1852 ; function set_filter
- 1853 ; -----------------------------------------
- 0515 1854 _set_filter:
- 1855 ; specan.c:167: switch (width) {
- 0515 74 01 1856 mov a,#0x01
- 0517 B5 27 02 1857 cjne a,_width,00109$
- 051A 80 07 1858 sjmp 00101$
- 051C 1859 00109$:
- 051C 74 02 1860 mov a,#0x02
- 1861 ; specan.c:168: case NARROW:
- 051E B5 27 10 1862 cjne a,_width,00103$
- 0521 80 07 1863 sjmp 00102$
- 0523 1864 00101$:
- 1865 ; specan.c:169: MDMCFG4 = 0xEC; /* 67.708333 kHz */
- 0523 90 DF 0C 1866 mov dptr,#_MDMCFG4
- 0526 74 EC 1867 mov a,#0xEC
- 0528 F0 1868 movx @dptr,a
- 1869 ; specan.c:170: break;
- 1870 ; specan.c:171: case ULTRAWIDE:
- 0529 22 1871 ret
- 052A 1872 00102$:
- 1873 ; specan.c:172: MDMCFG4 = 0x0C; /* 812.5 kHz */
- 052A 90 DF 0C 1874 mov dptr,#_MDMCFG4
- 052D 74 0C 1875 mov a,#0x0C
- 052F F0 1876 movx @dptr,a
- 1877 ; specan.c:173: break;
- 1878 ; specan.c:174: default:
- 0530 22 1879 ret
- 0531 1880 00103$:
- 1881 ; specan.c:175: MDMCFG4 = 0x6C; /* 270.833333 kHz */
- 0531 90 DF 0C 1882 mov dptr,#_MDMCFG4
- 0534 74 6C 1883 mov a,#0x6C
- 0536 F0 1884 movx @dptr,a
- 1885 ; specan.c:177: }
- 0537 22 1886 ret
- 1887 ;------------------------------------------------------------
- 1888 ;Allocation info for local variables in function 'set_radio_freq'
- 1889 ;------------------------------------------------------------
- 1890 ;freq Allocated to registers r2 r3 r4 r5
- 1891 ;setting Allocated to registers r6 r7 r0 r1
- 1892 ;------------------------------------------------------------
- 1893 ; specan.c:181: void set_radio_freq(u32 freq) {
- 1894 ; -----------------------------------------
- 1895 ; function set_radio_freq
- 1896 ; -----------------------------------------
- 0538 1897 _set_radio_freq:
- 1898 ; specan.c:183: u32 setting = (u32) (freq * .0025206154);
- 0538 AA 82 1899 mov r2,dpl
- 053A AB 83 1900 mov r3,dph
- 053C AC F0 1901 mov r4,b
- 053E FD 1902 mov r5,a
- 053F C0 02 1903 push ar2
- 0541 C0 03 1904 push ar3
- 0543 C0 04 1905 push ar4
- 0545 C0 05 1906 push ar5
- 0547 12 13 42 1907 lcall ___ulong2fs
- 054A AE 82 1908 mov r6,dpl
- 054C AF 83 1909 mov r7,dph
- 054E A8 F0 1910 mov r0,b
- 0550 F9 1911 mov r1,a
- 0551 C0 06 1912 push ar6
- 0553 C0 07 1913 push ar7
- 0555 C0 00 1914 push ar0
- 0557 C0 01 1915 push ar1
- 0559 90 30 E9 1916 mov dptr,#0x30E9
- 055C 75 F0 25 1917 mov b,#0x25
- 055F 74 3B 1918 mov a,#0x3B
- 0561 12 12 48 1919 lcall ___fsmul
- 0564 AE 82 1920 mov r6,dpl
- 0566 AF 83 1921 mov r7,dph
- 0568 A8 F0 1922 mov r0,b
- 056A F9 1923 mov r1,a
- 056B E5 81 1924 mov a,sp
- 056D 24 FC 1925 add a,#0xfc
- 056F F5 81 1926 mov sp,a
- 0571 8E 82 1927 mov dpl,r6
- 0573 8F 83 1928 mov dph,r7
- 0575 88 F0 1929 mov b,r0
- 0577 E9 1930 mov a,r1
- 0578 12 13 55 1931 lcall ___fs2ulong
- 057B AE 82 1932 mov r6,dpl
- 057D AF 83 1933 mov r7,dph
- 057F A8 F0 1934 mov r0,b
- 0581 D0 05 1935 pop ar5
- 0583 D0 04 1936 pop ar4
- 0585 D0 03 1937 pop ar3
- 0587 D0 02 1938 pop ar2
- 1939 ; specan.c:184: FREQ2 = (setting >> 16) & 0xff;
- 0589 90 DF 09 1940 mov dptr,#_FREQ2
- 058C E8 1941 mov a,r0
- 058D F0 1942 movx @dptr,a
- 1943 ; specan.c:185: FREQ1 = (setting >> 8) & 0xff;
- 058E 90 DF 0A 1944 mov dptr,#_FREQ1
- 0591 EF 1945 mov a,r7
- 0592 F0 1946 movx @dptr,a
- 1947 ; specan.c:186: FREQ0 = setting & 0xff;
- 0593 7F 00 1948 mov r7,#0x00
- 0595 78 00 1949 mov r0,#0x00
- 0597 79 00 1950 mov r1,#0x00
- 0599 90 DF 0B 1951 mov dptr,#_FREQ0
- 059C EE 1952 mov a,r6
- 059D F0 1953 movx @dptr,a
- 1954 ; specan.c:188: if ((band == BAND_300 && freq < MID_300) ||
- 059E E5 26 1955 mov a,_band
- 05A0 70 0F 1956 jnz 00106$
- 05A2 C3 1957 clr c
- 05A3 EA 1958 mov a,r2
- 05A4 94 80 1959 subb a,#0x80
- 05A6 EB 1960 mov a,r3
- 05A7 94 4B 1961 subb a,#0x4B
- 05A9 EC 1962 mov a,r4
- 05AA 94 F4 1963 subb a,#0xF4
- 05AC ED 1964 mov a,r5
- 05AD 94 12 1965 subb a,#0x12
- 05AF 40 22 1966 jc 00101$
- 05B1 1967 00106$:
- 1968 ; specan.c:189: (band == BAND_400 && freq < MID_400) ||
- 05B1 74 01 1969 mov a,#0x01
- 05B3 B5 26 0C 1970 cjne a,_band,00108$
- 05B6 C3 1971 clr c
- 05B7 EB 1972 mov a,r3
- 05B8 94 BA 1973 subb a,#0xBA
- 05BA EC 1974 mov a,r4
- 05BB 94 45 1975 subb a,#0x45
- 05BD ED 1976 mov a,r5
- 05BE 94 19 1977 subb a,#0x19
- 05C0 40 11 1978 jc 00101$
- 05C2 1979 00108$:
- 1980 ; specan.c:190: (band == BAND_900 && freq < MID_900))
- 05C2 74 02 1981 mov a,#0x02
- 05C4 B5 26 13 1982 cjne a,_band,00102$
- 05C7 C3 1983 clr c
- 05C8 EB 1984 mov a,r3
- 05C9 94 74 1985 subb a,#0x74
- 05CB EC 1986 mov a,r4
- 05CC 94 8B 1987 subb a,#0x8B
- 05CE ED 1988 mov a,r5
- 05CF 94 32 1989 subb a,#0x32
- 05D1 50 07 1990 jnc 00102$
- 05D3 1991 00101$:
- 1992 ; specan.c:192: FSCAL2 = 0x0A;
- 05D3 90 DF 1D 1993 mov dptr,#_FSCAL2
- 05D6 74 0A 1994 mov a,#0x0A
- 05D8 F0 1995 movx @dptr,a
- 05D9 22 1996 ret
- 05DA 1997 00102$:
- 1998 ; specan.c:195: FSCAL2 = 0x2A;
- 05DA 90 DF 1D 1999 mov dptr,#_FSCAL2
- 05DD 74 2A 2000 mov a,#0x2A
- 05DF F0 2001 movx @dptr,a
- 05E0 22 2002 ret
- 2003 ;------------------------------------------------------------
- 2004 ;Allocation info for local variables in function 'calibrate_freq'
- 2005 ;------------------------------------------------------------
- 2006 ;ch Allocated with name '_calibrate_freq_PARM_2'
- 2007 ;freq Allocated to registers r2 r3 r4 r5
- 2008 ;------------------------------------------------------------
- 2009 ; specan.c:199: void calibrate_freq(u32 freq, u8 ch) {
- 2010 ; -----------------------------------------
- 2011 ; function calibrate_freq
- 2012 ; -----------------------------------------
- 05E1 2013 _calibrate_freq:
- 2014 ; specan.c:200: set_radio_freq(freq);
- 05E1 12 05 38 2015 lcall _set_radio_freq
- 2016 ; specan.c:202: RFST = RFST_SCAL;
- 05E4 75 E1 01 2017 mov _RFST,#0x01
- 2018 ; specan.c:203: RFST = RFST_SRX;
- 05E7 75 E1 02 2019 mov _RFST,#0x02
- 2020 ; specan.c:206: sleepMillis(2);
- 05EA 90 00 02 2021 mov dptr,#0x0002
- 05ED 12 0E 2F 2022 lcall _sleepMillis
- 2023 ; specan.c:209: chan_table[ch].freq2 = FREQ2;
- 05F0 E5 2E 2024 mov a,_calibrate_freq_PARM_2
- 05F2 75 F0 08 2025 mov b,#0x08
- 05F5 A4 2026 mul ab
- 05F6 FA 2027 mov r2,a
- 05F7 AB F0 2028 mov r3,b
- 05F9 EA 2029 mov a,r2
- 05FA 24 00 2030 add a,#_chan_table
- 05FC FC 2031 mov r4,a
- 05FD EB 2032 mov a,r3
- 05FE 34 F0 2033 addc a,#(_chan_table >> 8)
- 0600 FD 2034 mov r5,a
- 0601 90 DF 09 2035 mov dptr,#_FREQ2
- 0604 E0 2036 movx a,@dptr
- 0605 8C 82 2037 mov dpl,r4
- 0607 8D 83 2038 mov dph,r5
- 0609 F0 2039 movx @dptr,a
- 2040 ; specan.c:210: chan_table[ch].freq1 = FREQ1;
- 060A EA 2041 mov a,r2
- 060B 24 00 2042 add a,#_chan_table
- 060D FA 2043 mov r2,a
- 060E EB 2044 mov a,r3
- 060F 34 F0 2045 addc a,#(_chan_table >> 8)
- 0611 FB 2046 mov r3,a
- 0612 74 01 2047 mov a,#0x01
- 0614 2A 2048 add a,r2
- 0615 FC 2049 mov r4,a
- 0616 E4 2050 clr a
- 0617 3B 2051 addc a,r3
- 0618 FD 2052 mov r5,a
- 0619 90 DF 0A 2053 mov dptr,#_FREQ1
- 061C E0 2054 movx a,@dptr
- 061D 8C 82 2055 mov dpl,r4
- 061F 8D 83 2056 mov dph,r5
- 0621 F0 2057 movx @dptr,a
- 2058 ; specan.c:211: chan_table[ch].freq0 = FREQ0;
- 0622 74 02 2059 mov a,#0x02
- 0624 2A 2060 add a,r2
- 0625 FC 2061 mov r4,a
- 0626 E4 2062 clr a
- 0627 3B 2063 addc a,r3
- 0628 FD 2064 mov r5,a
- 0629 90 DF 0B 2065 mov dptr,#_FREQ0
- 062C E0 2066 movx a,@dptr
- 062D 8C 82 2067 mov dpl,r4
- 062F 8D 83 2068 mov dph,r5
- 0631 F0 2069 movx @dptr,a
- 2070 ; specan.c:212: chan_table[ch].fscal3 = FSCAL3;
- 0632 74 03 2071 mov a,#0x03
- 0634 2A 2072 add a,r2
- 0635 FC 2073 mov r4,a
- 0636 E4 2074 clr a
- 0637 3B 2075 addc a,r3
- 0638 FD 2076 mov r5,a
- 0639 90 DF 1C 2077 mov dptr,#_FSCAL3
- 063C E0 2078 movx a,@dptr
- 063D 8C 82 2079 mov dpl,r4
- 063F 8D 83 2080 mov dph,r5
- 0641 F0 2081 movx @dptr,a
- 2082 ; specan.c:213: chan_table[ch].fscal2 = FSCAL2;
- 0642 74 04 2083 mov a,#0x04
- 0644 2A 2084 add a,r2
- 0645 FC 2085 mov r4,a
- 0646 E4 2086 clr a
- 0647 3B 2087 addc a,r3
- 0648 FD 2088 mov r5,a
- 0649 90 DF 1D 2089 mov dptr,#_FSCAL2
- 064C E0 2090 movx a,@dptr
- 064D 8C 82 2091 mov dpl,r4
- 064F 8D 83 2092 mov dph,r5
- 0651 F0 2093 movx @dptr,a
- 2094 ; specan.c:214: chan_table[ch].fscal1 = FSCAL1;
- 0652 74 05 2095 mov a,#0x05
- 0654 2A 2096 add a,r2
- 0655 FC 2097 mov r4,a
- 0656 E4 2098 clr a
- 0657 3B 2099 addc a,r3
- 0658 FD 2100 mov r5,a
- 0659 90 DF 1E 2101 mov dptr,#_FSCAL1
- 065C E0 2102 movx a,@dptr
- 065D 8C 82 2103 mov dpl,r4
- 065F 8D 83 2104 mov dph,r5
- 0661 F0 2105 movx @dptr,a
- 2106 ; specan.c:217: chan_table[ch].ss = (RSSI ^ 0x80);
- 0662 74 06 2107 mov a,#0x06
- 0664 2A 2108 add a,r2
- 0665 FC 2109 mov r4,a
- 0666 E4 2110 clr a
- 0667 3B 2111 addc a,r3
- 0668 FD 2112 mov r5,a
- 0669 90 DF 3A 2113 mov dptr,#_RSSI
- 066C E0 2114 movx a,@dptr
- 066D FE 2115 mov r6,a
- 066E 63 06 80 2116 xrl ar6,#0x80
- 0671 8C 82 2117 mov dpl,r4
- 0673 8D 83 2118 mov dph,r5
- 0675 EE 2119 mov a,r6
- 0676 F0 2120 movx @dptr,a
- 2121 ; specan.c:218: chan_table[ch].max = 0;
- 0677 74 07 2122 mov a,#0x07
- 0679 2A 2123 add a,r2
- 067A F5 82 2124 mov dpl,a
- 067C E4 2125 clr a
- 067D 3B 2126 addc a,r3
- 067E F5 83 2127 mov dph,a
- 0680 E4 2128 clr a
- 0681 F0 2129 movx @dptr,a
- 2130 ; specan.c:220: RFST = RFST_SIDLE;
- 0682 75 E1 04 2131 mov _RFST,#0x04
- 0685 22 2132 ret
- 2133 ;------------------------------------------------------------
- 2134 ;Allocation info for local variables in function 'set_center_freq'
- 2135 ;------------------------------------------------------------
- 2136 ;freq Allocated with name '_set_center_freq_freq_1_1'
- 2137 ;new_band Allocated with name '_set_center_freq_new_band_1_1'
- 2138 ;spacing Allocated with name '_set_center_freq_spacing_1_1'
- 2139 ;hz Allocated to registers r2 r3 r4 r5
- 2140 ;min_hz Allocated with name '_set_center_freq_min_hz_1_1'
- 2141 ;max_hz Allocated with name '_set_center_freq_max_hz_1_1'
- 2142 ;margin Allocated with name '_set_center_freq_margin_1_1'
- 2143 ;step Allocated with name '_set_center_freq_step_1_1'
- 2144 ;upper_limit Allocated with name '_set_center_freq_upper_limit_1_1'
- 2145 ;lower_limit Allocated with name '_set_center_freq_lower_limit_1_1'
- 2146 ;next_up Allocated to registers r2 r3
- 2147 ;next_down Allocated to registers r4 r5
- 2148 ;next_band_up Allocated to registers r6
- 2149 ;next_band_down Allocated to registers r7
- 2150 ;sloc0 Allocated with name '_set_center_freq_sloc0_1_0'
- 2151 ;sloc1 Allocated with name '_set_center_freq_sloc1_1_0'
- 2152 ;sloc2 Allocated with name '_set_center_freq_sloc2_1_0'
- 2153 ;------------------------------------------------------------
- 2154 ; specan.c:227: u16 set_center_freq(u16 freq) {
- 2155 ; -----------------------------------------
- 2156 ; function set_center_freq
- 2157 ; -----------------------------------------
- 0686 2158 _set_center_freq:
- 0686 85 82 2F 2159 mov _set_center_freq_freq_1_1,dpl
- 0689 85 83 30 2160 mov (_set_center_freq_freq_1_1 + 1),dph
- 2161 ; specan.c:242: switch (width) {
- 068C 74 01 2162 mov a,#0x01
- 068E B5 27 02 2163 cjne a,_width,00150$
- 0691 80 07 2164 sjmp 00101$
- 0693 2165 00150$:
- 0693 74 02 2166 mov a,#0x02
- 2167 ; specan.c:243: case NARROW:
- 0695 B5 27 4F 2168 cjne a,_width,00103$
- 0698 80 13 2169 sjmp 00102$
- 069A 2170 00101$:
- 2171 ; specan.c:244: margin = NARROW_MARGIN;
- 069A 75 3E 03 2172 mov _set_center_freq_margin_1_1,#0x03
- 2173 ; specan.c:245: step = NARROW_STEP;
- 069D 75 3F 01 2174 mov _set_center_freq_step_1_1,#0x01
- 2175 ; specan.c:246: spacing = NARROW_SPACING;
- 06A0 75 32 44 2176 mov _set_center_freq_spacing_1_1,#0x44
- 06A3 75 33 C3 2177 mov (_set_center_freq_spacing_1_1 + 1),#0xC3
- 06A6 E4 2178 clr a
- 06A7 F5 34 2179 mov (_set_center_freq_spacing_1_1 + 2),a
- 06A9 F5 35 2180 mov (_set_center_freq_spacing_1_1 + 3),a
- 2181 ; specan.c:247: break;
- 2182 ; specan.c:248: case ULTRAWIDE:
- 06AB 80 6F 2183 sjmp 00104$
- 06AD 2184 00102$:
- 2185 ; specan.c:249: margin = ULTRAWIDE_MARGIN;
- 06AD 75 3E 2A 2186 mov _set_center_freq_margin_1_1,#0x2A
- 2187 ; specan.c:250: step = ULTRAWIDE_STEP;
- 06B0 75 3F 14 2188 mov _set_center_freq_step_1_1,#0x14
- 2189 ; specan.c:251: spacing = ULTRAWIDE_SPACING;
- 06B3 75 32 88 2190 mov _set_center_freq_spacing_1_1,#0x88
- 06B6 75 33 2B 2191 mov (_set_center_freq_spacing_1_1 + 1),#0x2B
- 06B9 75 34 0A 2192 mov (_set_center_freq_spacing_1_1 + 2),#0x0A
- 06BC 75 35 00 2193 mov (_set_center_freq_spacing_1_1 + 3),#0x00
- 2194 ; specan.c:254: freq = ((freq + 10) / 20) * 20;
- 06BF 74 0A 2195 mov a,#0x0A
- 06C1 25 2F 2196 add a,_set_center_freq_freq_1_1
- 06C3 F5 82 2197 mov dpl,a
- 06C5 E4 2198 clr a
- 06C6 35 30 2199 addc a,(_set_center_freq_freq_1_1 + 1)
- 06C8 F5 83 2200 mov dph,a
- 06CA 75 0E 14 2201 mov __divuint_PARM_2,#0x14
- 06CD 75 0F 00 2202 mov (__divuint_PARM_2 + 1),#0x00
- 06D0 12 12 1F 2203 lcall __divuint
- 06D3 85 82 0E 2204 mov __mulint_PARM_2,dpl
- 06D6 85 83 0F 2205 mov (__mulint_PARM_2 + 1),dph
- 06D9 90 00 14 2206 mov dptr,#0x0014
- 06DC 12 13 8E 2207 lcall __mulint
- 06DF 85 82 2F 2208 mov _set_center_freq_freq_1_1,dpl
- 06E2 85 83 30 2209 mov (_set_center_freq_freq_1_1 + 1),dph
- 2210 ; specan.c:255: break;
- 2211 ; specan.c:256: default:
- 06E5 80 35 2212 sjmp 00104$
- 06E7 2213 00103$:
- 2214 ; specan.c:257: margin = WIDE_MARGIN;
- 06E7 75 3E 0D 2215 mov _set_center_freq_margin_1_1,#0x0D
- 2216 ; specan.c:258: step = WIDE_STEP;
- 06EA 75 3F 05 2217 mov _set_center_freq_step_1_1,#0x05
- 2218 ; specan.c:259: spacing = WIDE_SPACING;
- 06ED 75 32 10 2219 mov _set_center_freq_spacing_1_1,#0x10
- 06F0 75 33 0D 2220 mov (_set_center_freq_spacing_1_1 + 1),#0x0D
- 06F3 75 34 03 2221 mov (_set_center_freq_spacing_1_1 + 2),#0x03
- 06F6 75 35 00 2222 mov (_set_center_freq_spacing_1_1 + 3),#0x00
- 2223 ; specan.c:262: freq = ((freq + 2) / 5) * 5;
- 06F9 85 2F 82 2224 mov dpl,_set_center_freq_freq_1_1
- 06FC 85 30 83 2225 mov dph,(_set_center_freq_freq_1_1 + 1)
- 06FF A3 2226 inc dptr
- 0700 A3 2227 inc dptr
- 0701 75 0E 05 2228 mov __divuint_PARM_2,#0x05
- 0704 75 0F 00 2229 mov (__divuint_PARM_2 + 1),#0x00
- 0707 12 12 1F 2230 lcall __divuint
- 070A 85 82 0E 2231 mov __mulint_PARM_2,dpl
- 070D 85 83 0F 2232 mov (__mulint_PARM_2 + 1),dph
- 0710 90 00 05 2233 mov dptr,#0x0005
- 0713 12 13 8E 2234 lcall __mulint
- 0716 85 82 2F 2235 mov _set_center_freq_freq_1_1,dpl
- 0719 85 83 30 2236 mov (_set_center_freq_freq_1_1 + 1),dph
- 2237 ; specan.c:264: }
- 071C 2238 00104$:
- 2239 ; specan.c:267: if (freq > EDGE_900) {
- 071C C3 2240 clr c
- 071D 74 67 2241 mov a,#0x67
- 071F 95 2F 2242 subb a,_set_center_freq_freq_1_1
- 0721 74 02 2243 mov a,#0x02
- 0723 95 30 2244 subb a,(_set_center_freq_freq_1_1 + 1)
- 0725 40 03 2245 jc 00152$
- 0727 02 08 6C 2246 ljmp 00109$
- 072A 2247 00152$:
- 2248 ; specan.c:268: new_band = BAND_900;
- 072A 75 31 02 2249 mov _set_center_freq_new_band_1_1,#0x02
- 2250 ; specan.c:269: upper_limit = UPPER(MAX_900, margin, step);
- 072D AC 3E 2251 mov r4,_set_center_freq_margin_1_1
- 072F 7D 00 2252 mov r5,#0x00
- 0731 74 C2 2253 mov a,#0xC2
- 0733 C3 2254 clr c
- 0734 9C 2255 subb a,r4
- 0735 FE 2256 mov r6,a
- 0736 74 03 2257 mov a,#0x03
- 0738 9D 2258 subb a,r5
- 0739 FF 2259 mov r7,a
- 073A E5 3F 2260 mov a,_set_center_freq_step_1_1
- 073C C3 2261 clr c
- 073D 13 2262 rrc a
- 073E F8 2263 mov r0,a
- 073F 79 00 2264 mov r1,#0x00
- 0741 2E 2265 add a,r6
- 0742 F5 82 2266 mov dpl,a
- 0744 E9 2267 mov a,r1
- 0745 3F 2268 addc a,r7
- 0746 F5 83 2269 mov dph,a
- 0748 AE 3F 2270 mov r6,_set_center_freq_step_1_1
- 074A 7F 00 2271 mov r7,#0x00
- 074C 8E 0E 2272 mov __divsint_PARM_2,r6
- 074E 8F 0F 2273 mov (__divsint_PARM_2 + 1),r7
- 0750 C0 04 2274 push ar4
- 0752 C0 05 2275 push ar5
- 0754 C0 06 2276 push ar6
- 0756 C0 07 2277 push ar7
- 0758 C0 00 2278 push ar0
- 075A C0 01 2279 push ar1
- 075C 12 1A BB 2280 lcall __divsint
- 075F AA 82 2281 mov r2,dpl
- 0761 AB 83 2282 mov r3,dph
- 0763 D0 01 2283 pop ar1
- 0765 D0 00 2284 pop ar0
- 0767 D0 07 2285 pop ar7
- 0769 D0 06 2286 pop ar6
- 076B 8E 0E 2287 mov __mulint_PARM_2,r6
- 076D 8F 0F 2288 mov (__mulint_PARM_2 + 1),r7
- 076F 8A 82 2289 mov dpl,r2
- 0771 8B 83 2290 mov dph,r3
- 0773 C0 06 2291 push ar6
- 0775 C0 07 2292 push ar7
- 0777 C0 00 2293 push ar0
- 0779 C0 01 2294 push ar1
- 077B 12 13 8E 2295 lcall __mulint
- 077E 85 82 40 2296 mov _set_center_freq_upper_limit_1_1,dpl
- 0781 85 83 41 2297 mov (_set_center_freq_upper_limit_1_1 + 1),dph
- 0784 D0 01 2298 pop ar1
- 0786 D0 00 2299 pop ar0
- 0788 D0 07 2300 pop ar7
- 078A D0 06 2301 pop ar6
- 078C D0 05 2302 pop ar5
- 078E D0 04 2303 pop ar4
- 2304 ; specan.c:270: lower_limit = LOWER(MIN_900, margin, step);
- 0790 74 ED 2305 mov a,#0xED
- 0792 2C 2306 add a,r4
- 0793 F5 82 2307 mov dpl,a
- 0795 74 02 2308 mov a,#0x02
- 0797 3D 2309 addc a,r5
- 0798 F5 83 2310 mov dph,a
- 079A 8E 0E 2311 mov __divsint_PARM_2,r6
- 079C 8F 0F 2312 mov (__divsint_PARM_2 + 1),r7
- 079E C0 04 2313 push ar4
- 07A0 C0 05 2314 push ar5
- 07A2 C0 06 2315 push ar6
- 07A4 C0 07 2316 push ar7
- 07A6 C0 00 2317 push ar0
- 07A8 C0 01 2318 push ar1
- 07AA 12 1A BB 2319 lcall __divsint
- 07AD AA 82 2320 mov r2,dpl
- 07AF AB 83 2321 mov r3,dph
- 07B1 D0 01 2322 pop ar1
- 07B3 D0 00 2323 pop ar0
- 07B5 D0 07 2324 pop ar7
- 07B7 D0 06 2325 pop ar6
- 07B9 8E 0E 2326 mov __mulint_PARM_2,r6
- 07BB 8F 0F 2327 mov (__mulint_PARM_2 + 1),r7
- 07BD 8A 82 2328 mov dpl,r2
- 07BF 8B 83 2329 mov dph,r3
- 07C1 C0 06 2330 push ar6
- 07C3 C0 07 2331 push ar7
- 07C5 C0 00 2332 push ar0
- 07C7 C0 01 2333 push ar1
- 07C9 12 13 8E 2334 lcall __mulint
- 07CC 85 82 42 2335 mov _set_center_freq_lower_limit_1_1,dpl
- 07CF 85 83 43 2336 mov (_set_center_freq_lower_limit_1_1 + 1),dph
- 07D2 D0 01 2337 pop ar1
- 07D4 D0 00 2338 pop ar0
- 07D6 D0 07 2339 pop ar7
- 07D8 D0 06 2340 pop ar6
- 07DA D0 05 2341 pop ar5
- 07DC D0 04 2342 pop ar4
- 2343 ; specan.c:271: next_up = LOWER(MIN_300, margin, step);
- 07DE 74 19 2344 mov a,#0x19
- 07E0 2C 2345 add a,r4
- 07E1 F5 82 2346 mov dpl,a
- 07E3 74 01 2347 mov a,#0x01
- 07E5 3D 2348 addc a,r5
- 07E6 F5 83 2349 mov dph,a
- 07E8 8E 0E 2350 mov __divsint_PARM_2,r6
- 07EA 8F 0F 2351 mov (__divsint_PARM_2 + 1),r7
- 07EC C0 04 2352 push ar4
- 07EE C0 05 2353 push ar5
- 07F0 C0 06 2354 push ar6
- 07F2 C0 07 2355 push ar7
- 07F4 C0 00 2356 push ar0
- 07F6 C0 01 2357 push ar1
- 07F8 12 1A BB 2358 lcall __divsint
- 07FB AA 82 2359 mov r2,dpl
- 07FD AB 83 2360 mov r3,dph
- 07FF D0 01 2361 pop ar1
- 0801 D0 00 2362 pop ar0
- 0803 D0 07 2363 pop ar7
- 0805 D0 06 2364 pop ar6
- 0807 8E 0E 2365 mov __mulint_PARM_2,r6
- 0809 8F 0F 2366 mov (__mulint_PARM_2 + 1),r7
- 080B 8A 82 2367 mov dpl,r2
- 080D 8B 83 2368 mov dph,r3
- 080F C0 06 2369 push ar6
- 0811 C0 07 2370 push ar7
- 0813 C0 00 2371 push ar0
- 0815 C0 01 2372 push ar1
- 0817 12 13 8E 2373 lcall __mulint
- 081A AA 82 2374 mov r2,dpl
- 081C AB 83 2375 mov r3,dph
- 081E D0 01 2376 pop ar1
- 0820 D0 00 2377 pop ar0
- 0822 D0 07 2378 pop ar7
- 0824 D0 06 2379 pop ar6
- 0826 D0 05 2380 pop ar5
- 0828 D0 04 2381 pop ar4
- 2382 ; specan.c:272: next_down = UPPER(MAX_400, margin, step);
- 082A 74 E1 2383 mov a,#0xE1
- 082C C3 2384 clr c
- 082D 9C 2385 subb a,r4
- 082E FC 2386 mov r4,a
- 082F 74 01 2387 mov a,#0x01
- 0831 9D 2388 subb a,r5
- 0832 FD 2389 mov r5,a
- 0833 E8 2390 mov a,r0
- 0834 2C 2391 add a,r4
- 0835 F5 82 2392 mov dpl,a
- 0837 E9 2393 mov a,r1
- 0838 3D 2394 addc a,r5
- 0839 F5 83 2395 mov dph,a
- 083B 8E 0E 2396 mov __divsint_PARM_2,r6
- 083D 8F 0F 2397 mov (__divsint_PARM_2 + 1),r7
- 083F C0 02 2398 push ar2
- 0841 C0 03 2399 push ar3
- 0843 C0 06 2400 push ar6
- 0845 C0 07 2401 push ar7
- 0847 12 1A BB 2402 lcall __divsint
- 084A AC 82 2403 mov r4,dpl
- 084C AD 83 2404 mov r5,dph
- 084E D0 07 2405 pop ar7
- 0850 D0 06 2406 pop ar6
- 0852 8E 0E 2407 mov __mulint_PARM_2,r6
- 0854 8F 0F 2408 mov (__mulint_PARM_2 + 1),r7
- 0856 8C 82 2409 mov dpl,r4
- 0858 8D 83 2410 mov dph,r5
- 085A 12 13 8E 2411 lcall __mulint
- 085D AC 82 2412 mov r4,dpl
- 085F AD 83 2413 mov r5,dph
- 0861 D0 03 2414 pop ar3
- 0863 D0 02 2415 pop ar2
- 2416 ; specan.c:273: next_band_up = BAND_300;
- 0865 7E 00 2417 mov r6,#0x00
- 2418 ; specan.c:274: next_band_down = BAND_400;
- 0867 7F 01 2419 mov r7,#0x01
- 0869 02 0A 0B 2420 ljmp 00110$
- 086C 2421 00109$:
- 2422 ; specan.c:275: } else if (freq > EDGE_400) {
- 086C C3 2423 clr c
- 086D 74 71 2424 mov a,#0x71
- 086F 95 2F 2425 subb a,_set_center_freq_freq_1_1
- 0871 74 01 2426 mov a,#0x01
- 0873 95 30 2427 subb a,(_set_center_freq_freq_1_1 + 1)
- 0875 40 03 2428 jc 00153$
- 0877 02 09 44 2429 ljmp 00106$
- 087A 2430 00153$:
- 2431 ; specan.c:276: new_band = BAND_400;
- 087A 75 31 01 2432 mov _set_center_freq_new_band_1_1,#0x01
- 2433 ; specan.c:277: upper_limit = UPPER(MAX_400, margin, step);
- 087D 85 3E 44 2434 mov _set_center_freq_sloc0_1_0,_set_center_freq_margin_1_1
- 0880 75 45 00 2435 mov (_set_center_freq_sloc0_1_0 + 1),#0x00
- 0883 74 E1 2436 mov a,#0xE1
- 0885 C3 2437 clr c
- 0886 95 44 2438 subb a,_set_center_freq_sloc0_1_0
- 0888 F5 46 2439 mov _set_center_freq_sloc1_1_0,a
- 088A 74 01 2440 mov a,#0x01
- 088C 95 45 2441 subb a,(_set_center_freq_sloc0_1_0 + 1)
- 088E F5 47 2442 mov (_set_center_freq_sloc1_1_0 + 1),a
- 0890 E5 3F 2443 mov a,_set_center_freq_step_1_1
- 0892 C3 2444 clr c
- 0893 13 2445 rrc a
- 0894 F8 2446 mov r0,a
- 0895 88 48 2447 mov _set_center_freq_sloc2_1_0,r0
- 0897 75 49 00 2448 mov (_set_center_freq_sloc2_1_0 + 1),#0x00
- 089A E5 48 2449 mov a,_set_center_freq_sloc2_1_0
- 089C 25 46 2450 add a,_set_center_freq_sloc1_1_0
- 089E F5 82 2451 mov dpl,a
- 08A0 E5 49 2452 mov a,(_set_center_freq_sloc2_1_0 + 1)
- 08A2 35 47 2453 addc a,(_set_center_freq_sloc1_1_0 + 1)
- 08A4 F5 83 2454 mov dph,a
- 08A6 85 3F 46 2455 mov _set_center_freq_sloc1_1_0,_set_center_freq_step_1_1
- 08A9 75 47 00 2456 mov (_set_center_freq_sloc1_1_0 + 1),#0x00
- 08AC 85 46 0E 2457 mov __divsint_PARM_2,_set_center_freq_sloc1_1_0
- 08AF 85 47 0F 2458 mov (__divsint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 08B2 12 1A BB 2459 lcall __divsint
- 08B5 85 46 0E 2460 mov __mulint_PARM_2,_set_center_freq_sloc1_1_0
- 08B8 85 47 0F 2461 mov (__mulint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 08BB 12 13 8E 2462 lcall __mulint
- 08BE 85 82 40 2463 mov _set_center_freq_upper_limit_1_1,dpl
- 08C1 85 83 41 2464 mov (_set_center_freq_upper_limit_1_1 + 1),dph
- 2465 ; specan.c:278: lower_limit = LOWER(MIN_400, margin, step);
- 08C4 74 7A 2466 mov a,#0x7A
- 08C6 25 44 2467 add a,_set_center_freq_sloc0_1_0
- 08C8 F5 82 2468 mov dpl,a
- 08CA 74 01 2469 mov a,#0x01
- 08CC 35 45 2470 addc a,(_set_center_freq_sloc0_1_0 + 1)
- 08CE F5 83 2471 mov dph,a
- 08D0 85 46 0E 2472 mov __divsint_PARM_2,_set_center_freq_sloc1_1_0
- 08D3 85 47 0F 2473 mov (__divsint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 08D6 12 1A BB 2474 lcall __divsint
- 08D9 85 46 0E 2475 mov __mulint_PARM_2,_set_center_freq_sloc1_1_0
- 08DC 85 47 0F 2476 mov (__mulint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 08DF 12 13 8E 2477 lcall __mulint
- 08E2 85 82 42 2478 mov _set_center_freq_lower_limit_1_1,dpl
- 08E5 85 83 43 2479 mov (_set_center_freq_lower_limit_1_1 + 1),dph
- 2480 ; specan.c:279: next_up = LOWER(MIN_900, margin, step);
- 08E8 74 ED 2481 mov a,#0xED
- 08EA 25 44 2482 add a,_set_center_freq_sloc0_1_0
- 08EC F5 82 2483 mov dpl,a
- 08EE 74 02 2484 mov a,#0x02
- 08F0 35 45 2485 addc a,(_set_center_freq_sloc0_1_0 + 1)
- 08F2 F5 83 2486 mov dph,a
- 08F4 85 46 0E 2487 mov __divsint_PARM_2,_set_center_freq_sloc1_1_0
- 08F7 85 47 0F 2488 mov (__divsint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 08FA 12 1A BB 2489 lcall __divsint
- 08FD 85 46 0E 2490 mov __mulint_PARM_2,_set_center_freq_sloc1_1_0
- 0900 85 47 0F 2491 mov (__mulint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 0903 12 13 8E 2492 lcall __mulint
- 0906 AA 82 2493 mov r2,dpl
- 0908 AB 83 2494 mov r3,dph
- 2495 ; specan.c:280: next_down = UPPER(MAX_300, margin, step);
- 090A 74 69 2496 mov a,#0x69
- 090C C3 2497 clr c
- 090D 95 44 2498 subb a,_set_center_freq_sloc0_1_0
- 090F F8 2499 mov r0,a
- 0910 74 01 2500 mov a,#0x01
- 0912 95 45 2501 subb a,(_set_center_freq_sloc0_1_0 + 1)
- 0914 F9 2502 mov r1,a
- 0915 E5 48 2503 mov a,_set_center_freq_sloc2_1_0
- 0917 28 2504 add a,r0
- 0918 F5 82 2505 mov dpl,a
- 091A E5 49 2506 mov a,(_set_center_freq_sloc2_1_0 + 1)
- 091C 39 2507 addc a,r1
- 091D F5 83 2508 mov dph,a
- 091F 85 46 0E 2509 mov __divsint_PARM_2,_set_center_freq_sloc1_1_0
- 0922 85 47 0F 2510 mov (__divsint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 0925 C0 02 2511 push ar2
- 0927 C0 03 2512 push ar3
- 0929 12 1A BB 2513 lcall __divsint
- 092C 85 46 0E 2514 mov __mulint_PARM_2,_set_center_freq_sloc1_1_0
- 092F 85 47 0F 2515 mov (__mulint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 0932 12 13 8E 2516 lcall __mulint
- 0935 AC 82 2517 mov r4,dpl
- 0937 AD 83 2518 mov r5,dph
- 0939 D0 03 2519 pop ar3
- 093B D0 02 2520 pop ar2
- 2521 ; specan.c:281: next_band_up = BAND_900;
- 093D 7E 02 2522 mov r6,#0x02
- 2523 ; specan.c:282: next_band_down = BAND_300;
- 093F 7F 00 2524 mov r7,#0x00
- 0941 02 0A 0B 2525 ljmp 00110$
- 0944 2526 00106$:
- 2527 ; specan.c:284: new_band = BAND_300;
- 0944 75 31 00 2528 mov _set_center_freq_new_band_1_1,#0x00
- 2529 ; specan.c:285: upper_limit = UPPER(MAX_300, margin, step);
- 0947 85 3E 48 2530 mov _set_center_freq_sloc2_1_0,_set_center_freq_margin_1_1
- 094A 75 49 00 2531 mov (_set_center_freq_sloc2_1_0 + 1),#0x00
- 094D 74 69 2532 mov a,#0x69
- 094F C3 2533 clr c
- 0950 95 48 2534 subb a,_set_center_freq_sloc2_1_0
- 0952 F5 46 2535 mov _set_center_freq_sloc1_1_0,a
- 0954 74 01 2536 mov a,#0x01
- 0956 95 49 2537 subb a,(_set_center_freq_sloc2_1_0 + 1)
- 0958 F5 47 2538 mov (_set_center_freq_sloc1_1_0 + 1),a
- 095A E5 3F 2539 mov a,_set_center_freq_step_1_1
- 095C C3 2540 clr c
- 095D 13 2541 rrc a
- 095E F8 2542 mov r0,a
- 095F 88 44 2543 mov _set_center_freq_sloc0_1_0,r0
- 0961 75 45 00 2544 mov (_set_center_freq_sloc0_1_0 + 1),#0x00
- 0964 E5 44 2545 mov a,_set_center_freq_sloc0_1_0
- 0966 25 46 2546 add a,_set_center_freq_sloc1_1_0
- 0968 F5 82 2547 mov dpl,a
- 096A E5 45 2548 mov a,(_set_center_freq_sloc0_1_0 + 1)
- 096C 35 47 2549 addc a,(_set_center_freq_sloc1_1_0 + 1)
- 096E F5 83 2550 mov dph,a
- 0970 85 3F 46 2551 mov _set_center_freq_sloc1_1_0,_set_center_freq_step_1_1
- 0973 75 47 00 2552 mov (_set_center_freq_sloc1_1_0 + 1),#0x00
- 0976 85 46 0E 2553 mov __divsint_PARM_2,_set_center_freq_sloc1_1_0
- 0979 85 47 0F 2554 mov (__divsint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 097C 12 1A BB 2555 lcall __divsint
- 097F 85 46 0E 2556 mov __mulint_PARM_2,_set_center_freq_sloc1_1_0
- 0982 85 47 0F 2557 mov (__mulint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 0985 12 13 8E 2558 lcall __mulint
- 0988 85 82 40 2559 mov _set_center_freq_upper_limit_1_1,dpl
- 098B 85 83 41 2560 mov (_set_center_freq_upper_limit_1_1 + 1),dph
- 2561 ; specan.c:286: lower_limit = LOWER(MIN_300, margin, step);
- 098E 74 19 2562 mov a,#0x19
- 0990 25 48 2563 add a,_set_center_freq_sloc2_1_0
- 0992 F5 82 2564 mov dpl,a
- 0994 74 01 2565 mov a,#0x01
- 0996 35 49 2566 addc a,(_set_center_freq_sloc2_1_0 + 1)
- 0998 F5 83 2567 mov dph,a
- 099A 85 46 0E 2568 mov __divsint_PARM_2,_set_center_freq_sloc1_1_0
- 099D 85 47 0F 2569 mov (__divsint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 09A0 12 1A BB 2570 lcall __divsint
- 09A3 85 46 0E 2571 mov __mulint_PARM_2,_set_center_freq_sloc1_1_0
- 09A6 85 47 0F 2572 mov (__mulint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 09A9 12 13 8E 2573 lcall __mulint
- 09AC 85 82 42 2574 mov _set_center_freq_lower_limit_1_1,dpl
- 09AF 85 83 43 2575 mov (_set_center_freq_lower_limit_1_1 + 1),dph
- 2576 ; specan.c:287: next_up = LOWER(MIN_400, margin, step);
- 09B2 74 7A 2577 mov a,#0x7A
- 09B4 25 48 2578 add a,_set_center_freq_sloc2_1_0
- 09B6 F5 82 2579 mov dpl,a
- 09B8 74 01 2580 mov a,#0x01
- 09BA 35 49 2581 addc a,(_set_center_freq_sloc2_1_0 + 1)
- 09BC F5 83 2582 mov dph,a
- 09BE 85 46 0E 2583 mov __divsint_PARM_2,_set_center_freq_sloc1_1_0
- 09C1 85 47 0F 2584 mov (__divsint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 09C4 12 1A BB 2585 lcall __divsint
- 09C7 85 46 0E 2586 mov __mulint_PARM_2,_set_center_freq_sloc1_1_0
- 09CA 85 47 0F 2587 mov (__mulint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 09CD 12 13 8E 2588 lcall __mulint
- 09D0 AA 82 2589 mov r2,dpl
- 09D2 AB 83 2590 mov r3,dph
- 2591 ; specan.c:288: next_down = UPPER(MAX_900, margin, step);
- 09D4 74 C2 2592 mov a,#0xC2
- 09D6 C3 2593 clr c
- 09D7 95 48 2594 subb a,_set_center_freq_sloc2_1_0
- 09D9 F8 2595 mov r0,a
- 09DA 74 03 2596 mov a,#0x03
- 09DC 95 49 2597 subb a,(_set_center_freq_sloc2_1_0 + 1)
- 09DE F9 2598 mov r1,a
- 09DF E5 44 2599 mov a,_set_center_freq_sloc0_1_0
- 09E1 28 2600 add a,r0
- 09E2 F5 82 2601 mov dpl,a
- 09E4 E5 45 2602 mov a,(_set_center_freq_sloc0_1_0 + 1)
- 09E6 39 2603 addc a,r1
- 09E7 F5 83 2604 mov dph,a
- 09E9 85 46 0E 2605 mov __divsint_PARM_2,_set_center_freq_sloc1_1_0
- 09EC 85 47 0F 2606 mov (__divsint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 09EF C0 02 2607 push ar2
- 09F1 C0 03 2608 push ar3
- 09F3 12 1A BB 2609 lcall __divsint
- 09F6 85 46 0E 2610 mov __mulint_PARM_2,_set_center_freq_sloc1_1_0
- 09F9 85 47 0F 2611 mov (__mulint_PARM_2 + 1),(_set_center_freq_sloc1_1_0 + 1)
- 09FC 12 13 8E 2612 lcall __mulint
- 09FF AC 82 2613 mov r4,dpl
- 0A01 AD 83 2614 mov r5,dph
- 0A03 D0 03 2615 pop ar3
- 0A05 D0 02 2616 pop ar2
- 2617 ; specan.c:289: next_band_up = BAND_400;
- 0A07 7E 01 2618 mov r6,#0x01
- 2619 ; specan.c:290: next_band_down = BAND_900;
- 0A09 7F 02 2620 mov r7,#0x02
- 0A0B 2621 00110$:
- 2622 ; specan.c:293: if (freq > upper_limit) {
- 0A0B C3 2623 clr c
- 0A0C E5 40 2624 mov a,_set_center_freq_upper_limit_1_1
- 0A0E 95 2F 2625 subb a,_set_center_freq_freq_1_1
- 0A10 E5 41 2626 mov a,(_set_center_freq_upper_limit_1_1 + 1)
- 0A12 95 30 2627 subb a,(_set_center_freq_freq_1_1 + 1)
- 0A14 50 13 2628 jnc 00118$
- 2629 ; specan.c:294: freq = upper_limit;
- 0A16 85 40 2F 2630 mov _set_center_freq_freq_1_1,_set_center_freq_upper_limit_1_1
- 0A19 85 41 30 2631 mov (_set_center_freq_freq_1_1 + 1),(_set_center_freq_upper_limit_1_1 + 1)
- 2632 ; specan.c:295: if (new_band == band) {
- 0A1C E5 26 2633 mov a,_band
- 0A1E B5 31 24 2634 cjne a,_set_center_freq_new_band_1_1,00119$
- 2635 ; specan.c:296: new_band = next_band_up;
- 0A21 8E 31 2636 mov _set_center_freq_new_band_1_1,r6
- 2637 ; specan.c:297: freq = next_up;
- 0A23 8A 2F 2638 mov _set_center_freq_freq_1_1,r2
- 0A25 8B 30 2639 mov (_set_center_freq_freq_1_1 + 1),r3
- 0A27 80 1C 2640 sjmp 00119$
- 0A29 2641 00118$:
- 2642 ; specan.c:299: } else if (freq < lower_limit) {
- 0A29 C3 2643 clr c
- 0A2A E5 2F 2644 mov a,_set_center_freq_freq_1_1
- 0A2C 95 42 2645 subb a,_set_center_freq_lower_limit_1_1
- 0A2E E5 30 2646 mov a,(_set_center_freq_freq_1_1 + 1)
- 0A30 95 43 2647 subb a,(_set_center_freq_lower_limit_1_1 + 1)
- 0A32 50 11 2648 jnc 00119$
- 2649 ; specan.c:300: freq = lower_limit;
- 0A34 85 42 2F 2650 mov _set_center_freq_freq_1_1,_set_center_freq_lower_limit_1_1
- 0A37 85 43 30 2651 mov (_set_center_freq_freq_1_1 + 1),(_set_center_freq_lower_limit_1_1 + 1)
- 2652 ; specan.c:301: if (new_band == band) {
- 0A3A E5 26 2653 mov a,_band
- 0A3C B5 31 06 2654 cjne a,_set_center_freq_new_band_1_1,00119$
- 2655 ; specan.c:302: new_band = next_band_down;
- 0A3F 8F 31 2656 mov _set_center_freq_new_band_1_1,r7
- 2657 ; specan.c:303: freq = next_down;
- 0A41 8C 2F 2658 mov _set_center_freq_freq_1_1,r4
- 0A43 8D 30 2659 mov (_set_center_freq_freq_1_1 + 1),r5
- 0A45 2660 00119$:
- 2661 ; specan.c:307: band = new_band;
- 0A45 85 31 26 2662 mov _band,_set_center_freq_new_band_1_1
- 2663 ; specan.c:310: switch (band) {
- 0A48 E4 2664 clr a
- 0A49 B5 26 02 2665 cjne a,_band,00160$
- 0A4C 80 1F 2666 sjmp 00121$
- 0A4E 2667 00160$:
- 0A4E 74 01 2668 mov a,#0x01
- 0A50 B5 26 34 2669 cjne a,_band,00122$
- 2670 ; specan.c:312: min_hz = MIN_400 * 1000000;
- 0A53 75 36 80 2671 mov _set_center_freq_min_hz_1_1,#0x80
- 0A56 75 37 D2 2672 mov (_set_center_freq_min_hz_1_1 + 1),#0xD2
- 0A59 75 38 87 2673 mov (_set_center_freq_min_hz_1_1 + 2),#0x87
- 0A5C 75 39 16 2674 mov (_set_center_freq_min_hz_1_1 + 3),#0x16
- 2675 ; specan.c:313: max_hz = MAX_400 * 1000000;
- 0A5F 75 3A 40 2676 mov _set_center_freq_max_hz_1_1,#0x40
- 0A62 75 3B 7A 2677 mov (_set_center_freq_max_hz_1_1 + 1),#0x7A
- 0A65 75 3C AB 2678 mov (_set_center_freq_max_hz_1_1 + 2),#0xAB
- 0A68 75 3D 1C 2679 mov (_set_center_freq_max_hz_1_1 + 3),#0x1C
- 2680 ; specan.c:314: break;
- 2681 ; specan.c:315: case BAND_300:
- 0A6B 80 32 2682 sjmp 00123$
- 0A6D 2683 00121$:
- 2684 ; specan.c:316: min_hz = MIN_300 * 1000000;
- 0A6D 75 36 40 2685 mov _set_center_freq_min_hz_1_1,#0x40
- 0A70 75 37 B8 2686 mov (_set_center_freq_min_hz_1_1 + 1),#0xB8
- 0A73 75 38 BF 2687 mov (_set_center_freq_min_hz_1_1 + 2),#0xBF
- 0A76 75 39 10 2688 mov (_set_center_freq_min_hz_1_1 + 3),#0x10
- 2689 ; specan.c:317: max_hz = MAX_300 * 1000000;
- 0A79 75 3A 40 2690 mov _set_center_freq_max_hz_1_1,#0x40
- 0A7C 75 3B 6C 2691 mov (_set_center_freq_max_hz_1_1 + 1),#0x6C
- 0A7F 75 3C 84 2692 mov (_set_center_freq_max_hz_1_1 + 2),#0x84
- 0A82 75 3D 15 2693 mov (_set_center_freq_max_hz_1_1 + 3),#0x15
- 2694 ; specan.c:318: break;
- 2695 ; specan.c:319: default:
- 0A85 80 18 2696 sjmp 00123$
- 0A87 2697 00122$:
- 2698 ; specan.c:320: min_hz = MIN_900 * 1000000;
- 0A87 75 36 40 2699 mov _set_center_freq_min_hz_1_1,#0x40
- 0A8A 75 37 D5 2700 mov (_set_center_freq_min_hz_1_1 + 1),#0xD5
- 0A8D 75 38 A4 2701 mov (_set_center_freq_min_hz_1_1 + 2),#0xA4
- 0A90 75 39 2C 2702 mov (_set_center_freq_min_hz_1_1 + 3),#0x2C
- 2703 ; specan.c:321: max_hz = MAX_900 * 1000000;
- 0A93 75 3A 80 2704 mov _set_center_freq_max_hz_1_1,#0x80
- 0A96 75 3B F4 2705 mov (_set_center_freq_max_hz_1_1 + 1),#0xF4
- 0A99 75 3C 56 2706 mov (_set_center_freq_max_hz_1_1 + 2),#0x56
- 0A9C 75 3D 39 2707 mov (_set_center_freq_max_hz_1_1 + 3),#0x39
- 2708 ; specan.c:323: }
- 0A9F 2709 00123$:
- 2710 ; specan.c:326: hz = freq * 1000000;
- 0A9F 85 2F 0E 2711 mov __mullong_PARM_2,_set_center_freq_freq_1_1
- 0AA2 85 30 0F 2712 mov (__mullong_PARM_2 + 1),(_set_center_freq_freq_1_1 + 1)
- 0AA5 75 10 00 2713 mov (__mullong_PARM_2 + 2),#0x00
- 0AA8 75 11 00 2714 mov (__mullong_PARM_2 + 3),#0x00
- 0AAB 90 42 40 2715 mov dptr,#0x4240
- 0AAE 75 F0 0F 2716 mov b,#0x0F
- 0AB1 E4 2717 clr a
- 0AB2 12 13 AB 2718 lcall __mullong
- 0AB5 AE 82 2719 mov r6,dpl
- 0AB7 AF 83 2720 mov r7,dph
- 0AB9 A8 F0 2721 mov r0,b
- 0ABB F9 2722 mov r1,a
- 0ABC 8E 02 2723 mov ar2,r6
- 0ABE 8F 03 2724 mov ar3,r7
- 0AC0 88 04 2725 mov ar4,r0
- 0AC2 89 05 2726 mov ar5,r1
- 2727 ; specan.c:327: max_chan = NUM_CHANNELS / 2;
- 0AC4 75 2A 42 2728 mov _max_chan,#0x42
- 2729 ; specan.c:328: while (hz <= max_hz && max_chan < NUM_CHANNELS) {
- 0AC7 2730 00125$:
- 0AC7 C3 2731 clr c
- 0AC8 E5 3A 2732 mov a,_set_center_freq_max_hz_1_1
- 0ACA 9A 2733 subb a,r2
- 0ACB E5 3B 2734 mov a,(_set_center_freq_max_hz_1_1 + 1)
- 0ACD 9B 2735 subb a,r3
- 0ACE E5 3C 2736 mov a,(_set_center_freq_max_hz_1_1 + 2)
- 0AD0 9C 2737 subb a,r4
- 0AD1 E5 3D 2738 mov a,(_set_center_freq_max_hz_1_1 + 3)
- 0AD3 9D 2739 subb a,r5
- 0AD4 40 47 2740 jc 00127$
- 0AD6 74 7C 2741 mov a,#0x100 - 0x84
- 0AD8 25 2A 2742 add a,_max_chan
- 0ADA 40 41 2743 jc 00127$
- 2744 ; specan.c:329: calibrate_freq(hz, max_chan);
- 0ADC 85 2A 2E 2745 mov _calibrate_freq_PARM_2,_max_chan
- 0ADF 8A 82 2746 mov dpl,r2
- 0AE1 8B 83 2747 mov dph,r3
- 0AE3 8C F0 2748 mov b,r4
- 0AE5 ED 2749 mov a,r5
- 0AE6 C0 02 2750 push ar2
- 0AE8 C0 03 2751 push ar3
- 0AEA C0 04 2752 push ar4
- 0AEC C0 05 2753 push ar5
- 0AEE C0 06 2754 push ar6
- 0AF0 C0 07 2755 push ar7
- 0AF2 C0 00 2756 push ar0
- 0AF4 C0 01 2757 push ar1
- 0AF6 12 05 E1 2758 lcall _calibrate_freq
- 0AF9 D0 01 2759 pop ar1
- 0AFB D0 00 2760 pop ar0
- 0AFD D0 07 2761 pop ar7
- 0AFF D0 06 2762 pop ar6
- 0B01 D0 05 2763 pop ar5
- 0B03 D0 04 2764 pop ar4
- 0B05 D0 03 2765 pop ar3
- 0B07 D0 02 2766 pop ar2
- 2767 ; specan.c:330: hz += spacing;
- 0B09 E5 32 2768 mov a,_set_center_freq_spacing_1_1
- 0B0B 2A 2769 add a,r2
- 0B0C FA 2770 mov r2,a
- 0B0D E5 33 2771 mov a,(_set_center_freq_spacing_1_1 + 1)
- 0B0F 3B 2772 addc a,r3
- 0B10 FB 2773 mov r3,a
- 0B11 E5 34 2774 mov a,(_set_center_freq_spacing_1_1 + 2)
- 0B13 3C 2775 addc a,r4
- 0B14 FC 2776 mov r4,a
- 0B15 E5 35 2777 mov a,(_set_center_freq_spacing_1_1 + 3)
- 0B17 3D 2778 addc a,r5
- 0B18 FD 2779 mov r5,a
- 2780 ; specan.c:331: max_chan++;
- 0B19 05 2A 2781 inc _max_chan
- 0B1B 80 AA 2782 sjmp 00125$
- 0B1D 2783 00127$:
- 2784 ; specan.c:335: hz = freq * 1000000 - spacing;
- 0B1D EE 2785 mov a,r6
- 0B1E C3 2786 clr c
- 0B1F 95 32 2787 subb a,_set_center_freq_spacing_1_1
- 0B21 FA 2788 mov r2,a
- 0B22 EF 2789 mov a,r7
- 0B23 95 33 2790 subb a,(_set_center_freq_spacing_1_1 + 1)
- 0B25 FB 2791 mov r3,a
- 0B26 E8 2792 mov a,r0
- 0B27 95 34 2793 subb a,(_set_center_freq_spacing_1_1 + 2)
- 0B29 FC 2794 mov r4,a
- 0B2A E9 2795 mov a,r1
- 0B2B 95 35 2796 subb a,(_set_center_freq_spacing_1_1 + 3)
- 0B2D FD 2797 mov r5,a
- 2798 ; specan.c:336: min_chan = NUM_CHANNELS / 2;
- 0B2E 75 29 42 2799 mov _min_chan,#0x42
- 2800 ; specan.c:337: while (hz >= min_hz && min_chan > 0) {
- 0B31 2801 00129$:
- 0B31 C3 2802 clr c
- 0B32 EA 2803 mov a,r2
- 0B33 95 36 2804 subb a,_set_center_freq_min_hz_1_1
- 0B35 EB 2805 mov a,r3
- 0B36 95 37 2806 subb a,(_set_center_freq_min_hz_1_1 + 1)
- 0B38 EC 2807 mov a,r4
- 0B39 95 38 2808 subb a,(_set_center_freq_min_hz_1_1 + 2)
- 0B3B ED 2809 mov a,r5
- 0B3C 95 39 2810 subb a,(_set_center_freq_min_hz_1_1 + 3)
- 0B3E 40 36 2811 jc 00131$
- 0B40 E5 29 2812 mov a,_min_chan
- 0B42 60 32 2813 jz 00131$
- 2814 ; specan.c:338: min_chan--;
- 0B44 15 29 2815 dec _min_chan
- 2816 ; specan.c:339: calibrate_freq(hz, min_chan);
- 0B46 85 29 2E 2817 mov _calibrate_freq_PARM_2,_min_chan
- 0B49 8A 82 2818 mov dpl,r2
- 0B4B 8B 83 2819 mov dph,r3
- 0B4D 8C F0 2820 mov b,r4
- 0B4F ED 2821 mov a,r5
- 0B50 C0 02 2822 push ar2
- 0B52 C0 03 2823 push ar3
- 0B54 C0 04 2824 push ar4
- 0B56 C0 05 2825 push ar5
- 0B58 12 05 E1 2826 lcall _calibrate_freq
- 0B5B D0 05 2827 pop ar5
- 0B5D D0 04 2828 pop ar4
- 0B5F D0 03 2829 pop ar3
- 0B61 D0 02 2830 pop ar2
- 2831 ; specan.c:340: hz -= spacing;
- 0B63 EA 2832 mov a,r2
- 0B64 C3 2833 clr c
- 0B65 95 32 2834 subb a,_set_center_freq_spacing_1_1
- 0B67 FA 2835 mov r2,a
- 0B68 EB 2836 mov a,r3
- 0B69 95 33 2837 subb a,(_set_center_freq_spacing_1_1 + 1)
- 0B6B FB 2838 mov r3,a
- 0B6C EC 2839 mov a,r4
- 0B6D 95 34 2840 subb a,(_set_center_freq_spacing_1_1 + 2)
- 0B6F FC 2841 mov r4,a
- 0B70 ED 2842 mov a,r5
- 0B71 95 35 2843 subb a,(_set_center_freq_spacing_1_1 + 3)
- 0B73 FD 2844 mov r5,a
- 0B74 80 BB 2845 sjmp 00129$
- 0B76 2846 00131$:
- 2847 ; specan.c:343: center_freq = freq;
- 0B76 85 2F 22 2848 mov _center_freq,_set_center_freq_freq_1_1
- 0B79 85 30 23 2849 mov (_center_freq + 1),(_set_center_freq_freq_1_1 + 1)
- 2850 ; specan.c:344: clear();
- 0B7C 12 0F 37 2851 lcall _clear
- 2852 ; specan.c:345: draw_ruler();
- 0B7F 12 02 D0 2853 lcall _draw_ruler
- 2854 ; specan.c:346: draw_freq();
- 0B82 12 03 72 2855 lcall _draw_freq
- 2856 ; specan.c:347: max_hold = 0;
- 0B85 C2 00 2857 clr _max_hold
- 2858 ; specan.c:349: return freq;
- 0B87 85 2F 82 2859 mov dpl,_set_center_freq_freq_1_1
- 0B8A 85 30 83 2860 mov dph,(_set_center_freq_freq_1_1 + 1)
- 0B8D 22 2861 ret
- 2862 ;------------------------------------------------------------
- 2863 ;Allocation info for local variables in function 'tune'
- 2864 ;------------------------------------------------------------
- 2865 ;ch Allocated to registers r2
- 2866 ;------------------------------------------------------------
- 2867 ; specan.c:353: void tune(u8 ch) {
- 2868 ; -----------------------------------------
- 2869 ; function tune
- 2870 ; -----------------------------------------
- 0B8E 2871 _tune:
- 2872 ; specan.c:354: FREQ2 = chan_table[ch].freq2;
- 0B8E E5 82 2873 mov a,dpl
- 0B90 75 F0 08 2874 mov b,#0x08
- 0B93 A4 2875 mul ab
- 0B94 FA 2876 mov r2,a
- 0B95 AB F0 2877 mov r3,b
- 0B97 EA 2878 mov a,r2
- 0B98 24 00 2879 add a,#_chan_table
- 0B9A F5 82 2880 mov dpl,a
- 0B9C EB 2881 mov a,r3
- 0B9D 34 F0 2882 addc a,#(_chan_table >> 8)
- 0B9F F5 83 2883 mov dph,a
- 0BA1 E0 2884 movx a,@dptr
- 0BA2 90 DF 09 2885 mov dptr,#_FREQ2
- 0BA5 F0 2886 movx @dptr,a
- 2887 ; specan.c:355: FREQ1 = chan_table[ch].freq1;
- 0BA6 EA 2888 mov a,r2
- 0BA7 24 00 2889 add a,#_chan_table
- 0BA9 FA 2890 mov r2,a
- 0BAA EB 2891 mov a,r3
- 0BAB 34 F0 2892 addc a,#(_chan_table >> 8)
- 0BAD FB 2893 mov r3,a
- 0BAE 8A 82 2894 mov dpl,r2
- 0BB0 8B 83 2895 mov dph,r3
- 0BB2 A3 2896 inc dptr
- 0BB3 E0 2897 movx a,@dptr
- 0BB4 90 DF 0A 2898 mov dptr,#_FREQ1
- 0BB7 F0 2899 movx @dptr,a
- 2900 ; specan.c:356: FREQ0 = chan_table[ch].freq0;
- 0BB8 8A 82 2901 mov dpl,r2
- 0BBA 8B 83 2902 mov dph,r3
- 0BBC A3 2903 inc dptr
- 0BBD A3 2904 inc dptr
- 0BBE E0 2905 movx a,@dptr
- 0BBF 90 DF 0B 2906 mov dptr,#_FREQ0
- 0BC2 F0 2907 movx @dptr,a
- 2908 ; specan.c:358: FSCAL3 = chan_table[ch].fscal3;
- 0BC3 8A 82 2909 mov dpl,r2
- 0BC5 8B 83 2910 mov dph,r3
- 0BC7 A3 2911 inc dptr
- 0BC8 A3 2912 inc dptr
- 0BC9 A3 2913 inc dptr
- 0BCA E0 2914 movx a,@dptr
- 0BCB 90 DF 1C 2915 mov dptr,#_FSCAL3
- 0BCE F0 2916 movx @dptr,a
- 2917 ; specan.c:359: FSCAL2 = chan_table[ch].fscal2;
- 0BCF 8A 82 2918 mov dpl,r2
- 0BD1 8B 83 2919 mov dph,r3
- 0BD3 A3 2920 inc dptr
- 0BD4 A3 2921 inc dptr
- 0BD5 A3 2922 inc dptr
- 0BD6 A3 2923 inc dptr
- 0BD7 E0 2924 movx a,@dptr
- 0BD8 90 DF 1D 2925 mov dptr,#_FSCAL2
- 0BDB F0 2926 movx @dptr,a
- 2927 ; specan.c:360: FSCAL1 = chan_table[ch].fscal1;
- 0BDC 8A 82 2928 mov dpl,r2
- 0BDE 8B 83 2929 mov dph,r3
- 0BE0 A3 2930 inc dptr
- 0BE1 A3 2931 inc dptr
- 0BE2 A3 2932 inc dptr
- 0BE3 A3 2933 inc dptr
- 0BE4 A3 2934 inc dptr
- 0BE5 E0 2935 movx a,@dptr
- 0BE6 90 DF 1E 2936 mov dptr,#_FSCAL1
- 0BE9 F0 2937 movx @dptr,a
- 0BEA 22 2938 ret
- 2939 ;------------------------------------------------------------
- 2940 ;Allocation info for local variables in function 'set_width'
- 2941 ;------------------------------------------------------------
- 2942 ;w Allocated to registers
- 2943 ;------------------------------------------------------------
- 2944 ; specan.c:363: void set_width(u8 w) {
- 2945 ; -----------------------------------------
- 2946 ; function set_width
- 2947 ; -----------------------------------------
- 0BEB 2948 _set_width:
- 0BEB 85 82 27 2949 mov _width,dpl
- 2950 ; specan.c:365: set_filter();
- 0BEE 12 05 15 2951 lcall _set_filter
- 2952 ; specan.c:366: set_center_freq(center_freq);
- 0BF1 85 22 82 2953 mov dpl,_center_freq
- 0BF4 85 23 83 2954 mov dph,(_center_freq + 1)
- 0BF7 02 06 86 2955 ljmp _set_center_freq
- 2956 ;------------------------------------------------------------
- 2957 ;Allocation info for local variables in function 'poll_keyboard'
- 2958 ;------------------------------------------------------------
- 2959 ;vstep Allocated to registers r2
- 2960 ;hstep Allocated to registers r3
- 2961 ;------------------------------------------------------------
- 2962 ; specan.c:369: void poll_keyboard() {
- 2963 ; -----------------------------------------
- 2964 ; function poll_keyboard
- 2965 ; -----------------------------------------
- 0BFA 2966 _poll_keyboard:
- 2967 ; specan.c:373: vstep = (height == TALL) ? TALL_STEP : SHORT_STEP;
- 0BFA 30 01 04 2968 jnb _height,00128$
- 0BFD 7A 04 2969 mov r2,#0x04
- 0BFF 80 02 2970 sjmp 00129$
- 0C01 2971 00128$:
- 0C01 7A 10 2972 mov r2,#0x10
- 0C03 2973 00129$:
- 2974 ; specan.c:375: switch (width) {
- 0C03 74 01 2975 mov a,#0x01
- 0C05 B5 27 02 2976 cjne a,_width,00157$
- 0C08 80 07 2977 sjmp 00101$
- 0C0A 2978 00157$:
- 0C0A 74 02 2979 mov a,#0x02
- 2980 ; specan.c:376: case NARROW:
- 0C0C B5 27 0A 2981 cjne a,_width,00103$
- 0C0F 80 04 2982 sjmp 00102$
- 0C11 2983 00101$:
- 2984 ; specan.c:377: hstep = NARROW_STEP;
- 0C11 7B 01 2985 mov r3,#0x01
- 2986 ; specan.c:378: break;
- 2987 ; specan.c:379: case ULTRAWIDE:
- 0C13 80 06 2988 sjmp 00104$
- 0C15 2989 00102$:
- 2990 ; specan.c:380: hstep = ULTRAWIDE_STEP;
- 0C15 7B 14 2991 mov r3,#0x14
- 2992 ; specan.c:381: break;
- 2993 ; specan.c:382: default:
- 0C17 80 02 2994 sjmp 00104$
- 0C19 2995 00103$:
- 2996 ; specan.c:383: hstep = WIDE_STEP;
- 0C19 7B 05 2997 mov r3,#0x05
- 2998 ; specan.c:385: }
- 0C1B 2999 00104$:
- 3000 ; specan.c:387: switch (getkey()) {
- 0C1B C0 02 3001 push ar2
- 0C1D C0 03 3002 push ar3
- 0C1F 12 11 1D 3003 lcall _getkey
- 0C22 AC 82 3004 mov r4,dpl
- 0C24 D0 03 3005 pop ar3
- 0C26 D0 02 3006 pop ar2
- 0C28 BC 01 03 3007 cjne r4,#0x01,00159$
- 0C2B 02 0D 24 3008 ljmp 00123$
- 0C2E 3009 00159$:
- 0C2E BC 02 03 3010 cjne r4,#0x02,00160$
- 0C31 02 0C B4 3011 ljmp 00115$
- 0C34 3012 00160$:
- 0C34 BC 03 02 3013 cjne r4,#0x03,00161$
- 0C37 80 56 3014 sjmp 00108$
- 0C39 3015 00161$:
- 0C39 BC 3C 03 3016 cjne r4,#0x3C,00162$
- 0C3C 02 0C C6 3017 ljmp 00117$
- 0C3F 3018 00162$:
- 0C3F BC 3E 03 3019 cjne r4,#0x3E,00163$
- 0C42 02 0C B7 3020 ljmp 00116$
- 0C45 3021 00163$:
- 0C45 BC 41 03 3022 cjne r4,#0x41,00164$
- 0C48 02 0C F8 3023 ljmp 00121$
- 0C4B 3024 00164$:
- 0C4B BC 4D 03 3025 cjne r4,#0x4D,00165$
- 0C4E 02 0D 21 3026 ljmp 00122$
- 0C51 3027 00165$:
- 0C51 BC 4E 02 3028 cjne r4,#0x4E,00166$
- 0C54 80 2D 3029 sjmp 00106$
- 0C56 3030 00166$:
- 0C56 BC 51 03 3031 cjne r4,#0x51,00167$
- 0C59 02 0C D4 3032 ljmp 00119$
- 0C5C 3033 00167$:
- 0C5C BC 53 02 3034 cjne r4,#0x53,00168$
- 0C5F 80 50 3035 sjmp 00114$
- 0C61 3036 00168$:
- 0C61 BC 54 02 3037 cjne r4,#0x54,00169$
- 0C64 80 48 3038 sjmp 00113$
- 0C66 3039 00169$:
- 0C66 BC 55 02 3040 cjne r4,#0x55,00170$
- 0C69 80 1E 3041 sjmp 00107$
- 0C6B 3042 00170$:
- 0C6B BC 57 02 3043 cjne r4,#0x57,00171$
- 0C6E 80 0D 3044 sjmp 00105$
- 0C70 3045 00171$:
- 0C70 BC 5E 03 3046 cjne r4,#0x5E,00172$
- 0C73 02 0C D4 3047 ljmp 00119$
- 0C76 3048 00172$:
- 0C76 BC 87 03 3049 cjne r4,#0x87,00173$
- 0C79 02 0C F8 3050 ljmp 00121$
- 0C7C 3051 00173$:
- 0C7C 22 3052 ret
- 3053 ; specan.c:388: case 'W':
- 0C7D 3054 00105$:
- 3055 ; specan.c:389: set_width(WIDE);
- 0C7D 75 82 00 3056 mov dpl,#0x00
- 3057 ; specan.c:390: break;
- 0C80 02 0B EB 3058 ljmp _set_width
- 3059 ; specan.c:391: case 'N':
- 0C83 3060 00106$:
- 3061 ; specan.c:392: set_width(NARROW);
- 0C83 75 82 01 3062 mov dpl,#0x01
- 3063 ; specan.c:393: break;
- 0C86 02 0B EB 3064 ljmp _set_width
- 3065 ; specan.c:394: case 'U':
- 0C89 3066 00107$:
- 3067 ; specan.c:395: set_width(ULTRAWIDE);
- 0C89 75 82 02 3068 mov dpl,#0x02
- 3069 ; specan.c:396: break;
- 0C8C 02 0B EB 3070 ljmp _set_width
- 3071 ; specan.c:397: case KMNU:
- 0C8F 3072 00108$:
- 3073 ; specan.c:398: switch (width) {
- 0C8F E4 3074 clr a
- 0C90 B5 27 02 3075 cjne a,_width,00174$
- 0C93 80 07 3076 sjmp 00109$
- 0C95 3077 00174$:
- 0C95 74 01 3078 mov a,#0x01
- 3079 ; specan.c:399: case WIDE:
- 0C97 B5 27 0E 3080 cjne a,_width,00111$
- 0C9A 80 06 3081 sjmp 00110$
- 0C9C 3082 00109$:
- 3083 ; specan.c:400: set_width(NARROW);
- 0C9C 75 82 01 3084 mov dpl,#0x01
- 3085 ; specan.c:401: break;
- 0C9F 02 0B EB 3086 ljmp _set_width
- 3087 ; specan.c:402: case NARROW:
- 0CA2 3088 00110$:
- 3089 ; specan.c:403: set_width(ULTRAWIDE);
- 0CA2 75 82 02 3090 mov dpl,#0x02
- 3091 ; specan.c:404: break;
- 0CA5 02 0B EB 3092 ljmp _set_width
- 3093 ; specan.c:405: default:
- 0CA8 3094 00111$:
- 3095 ; specan.c:406: set_width(WIDE);
- 0CA8 75 82 00 3096 mov dpl,#0x00
- 3097 ; specan.c:409: break;
- 0CAB 02 0B EB 3098 ljmp _set_width
- 3099 ; specan.c:410: case 'T':
- 0CAE 3100 00113$:
- 3101 ; specan.c:411: height = TALL;
- 0CAE D2 01 3102 setb _height
- 3103 ; specan.c:412: break;
- 0CB0 22 3104 ret
- 3105 ; specan.c:413: case 'S':
- 0CB1 3106 00114$:
- 3107 ; specan.c:414: height = SHORT;
- 0CB1 C2 01 3108 clr _height
- 3109 ; specan.c:415: break;
- 0CB3 22 3110 ret
- 3111 ; specan.c:416: case KBYE:
- 0CB4 3112 00115$:
- 3113 ; specan.c:417: height = !height;
- 0CB4 B2 01 3114 cpl _height
- 3115 ; specan.c:418: break;
- 0CB6 22 3116 ret
- 3117 ; specan.c:419: case '>':
- 0CB7 3118 00116$:
- 3119 ; specan.c:420: user_freq += hstep;
- 0CB7 8B 04 3120 mov ar4,r3
- 0CB9 7D 00 3121 mov r5,#0x00
- 0CBB EC 3122 mov a,r4
- 0CBC 25 24 3123 add a,_user_freq
- 0CBE F5 24 3124 mov _user_freq,a
- 0CC0 ED 3125 mov a,r5
- 0CC1 35 25 3126 addc a,(_user_freq + 1)
- 0CC3 F5 25 3127 mov (_user_freq + 1),a
- 3128 ; specan.c:421: break;
- 3129 ; specan.c:422: case '<':
- 0CC5 22 3130 ret
- 0CC6 3131 00117$:
- 3132 ; specan.c:423: user_freq -= hstep;
- 0CC6 7C 00 3133 mov r4,#0x00
- 0CC8 E5 24 3134 mov a,_user_freq
- 0CCA C3 3135 clr c
- 0CCB 9B 3136 subb a,r3
- 0CCC F5 24 3137 mov _user_freq,a
- 0CCE E5 25 3138 mov a,(_user_freq + 1)
- 0CD0 9C 3139 subb a,r4
- 0CD1 F5 25 3140 mov (_user_freq + 1),a
- 3141 ; specan.c:424: break;
- 3142 ; specan.c:426: case 'Q':
- 0CD3 22 3143 ret
- 0CD4 3144 00119$:
- 3145 ; specan.c:427: vscroll = MIN(vscroll + vstep, MAX_VSCROLL);
- 0CD4 AB 28 3146 mov r3,_vscroll
- 0CD6 7C 00 3147 mov r4,#0x00
- 0CD8 8A 05 3148 mov ar5,r2
- 0CDA 7E 00 3149 mov r6,#0x00
- 0CDC ED 3150 mov a,r5
- 0CDD 2B 3151 add a,r3
- 0CDE FB 3152 mov r3,a
- 0CDF EE 3153 mov a,r6
- 0CE0 3C 3154 addc a,r4
- 0CE1 FC 3155 mov r4,a
- 0CE2 C3 3156 clr c
- 0CE3 EB 3157 mov a,r3
- 0CE4 94 D0 3158 subb a,#0xD0
- 0CE6 EC 3159 mov a,r4
- 0CE7 64 80 3160 xrl a,#0x80
- 0CE9 94 80 3161 subb a,#0x80
- 0CEB 50 06 3162 jnc 00130$
- 0CED EA 3163 mov a,r2
- 0CEE 25 28 3164 add a,_vscroll
- 0CF0 FB 3165 mov r3,a
- 0CF1 80 02 3166 sjmp 00131$
- 0CF3 3167 00130$:
- 0CF3 7B D0 3168 mov r3,#0xD0
- 0CF5 3169 00131$:
- 0CF5 8B 28 3170 mov _vscroll,r3
- 3171 ; specan.c:428: break;
- 3172 ; specan.c:430: case 'A':
- 0CF7 22 3173 ret
- 0CF8 3174 00121$:
- 3175 ; specan.c:431: vscroll = MAX(vscroll - vstep, MIN_VSCROLL);
- 0CF8 AB 28 3176 mov r3,_vscroll
- 0CFA 7C 00 3177 mov r4,#0x00
- 0CFC 8A 05 3178 mov ar5,r2
- 0CFE 7E 00 3179 mov r6,#0x00
- 0D00 EB 3180 mov a,r3
- 0D01 C3 3181 clr c
- 0D02 9D 3182 subb a,r5
- 0D03 FB 3183 mov r3,a
- 0D04 EC 3184 mov a,r4
- 0D05 9E 3185 subb a,r6
- 0D06 FC 3186 mov r4,a
- 0D07 C3 3187 clr c
- 0D08 E4 3188 clr a
- 0D09 9B 3189 subb a,r3
- 0D0A 74 80 3190 mov a,#(0x00 ^ 0x80)
- 0D0C 8C F0 3191 mov b,r4
- 0D0E 63 F0 80 3192 xrl b,#0x80
- 0D11 95 F0 3193 subb a,b
- 0D13 50 07 3194 jnc 00132$
- 0D15 E5 28 3195 mov a,_vscroll
- 0D17 C3 3196 clr c
- 0D18 9A 3197 subb a,r2
- 0D19 FA 3198 mov r2,a
- 0D1A 80 02 3199 sjmp 00133$
- 0D1C 3200 00132$:
- 0D1C 7A 00 3201 mov r2,#0x00
- 0D1E 3202 00133$:
- 0D1E 8A 28 3203 mov _vscroll,r2
- 3204 ; specan.c:432: break;
- 3205 ; specan.c:433: case 'M':
- 0D20 22 3206 ret
- 0D21 3207 00122$:
- 3208 ; specan.c:434: max_hold = !max_hold;
- 0D21 B2 00 3209 cpl _max_hold
- 3210 ; specan.c:435: break;
- 3211 ; specan.c:436: case KPWR:
- 0D23 22 3212 ret
- 0D24 3213 00123$:
- 3214 ; specan.c:437: sleepy = 1;
- 0D24 D2 02 3215 setb _sleepy
- 3216 ; specan.c:441: }
- 0D26 22 3217 ret
- 3218 ;------------------------------------------------------------
- 3219 ;Allocation info for local variables in function 'main'
- 3220 ;------------------------------------------------------------
- 3221 ;ch Allocated to registers r2
- 3222 ;i Allocated to registers r3 r4
- 3223 ;sloc0 Allocated with name '_main_sloc0_1_0'
- 3224 ;------------------------------------------------------------
- 3225 ; specan.c:444: void main(void) {
- 3226 ; -----------------------------------------
- 3227 ; function main
- 3228 ; -----------------------------------------
- 0D27 3229 _main:
- 3230 ; specan.c:448: reset:
- 0D27 3231 00101$:
- 3232 ; specan.c:449: center_freq = DEFAULT_FREQ;
- 0D27 75 22 93 3233 mov _center_freq,#0x93
- 0D2A 75 23 03 3234 mov (_center_freq + 1),#0x03
- 3235 ; specan.c:450: user_freq = DEFAULT_FREQ;
- 0D2D 75 24 93 3236 mov _user_freq,#0x93
- 0D30 75 25 03 3237 mov (_user_freq + 1),#0x03
- 3238 ; specan.c:451: band = BAND_900;
- 0D33 75 26 02 3239 mov _band,#0x02
- 3240 ; specan.c:452: width = WIDE;
- 0D36 75 27 00 3241 mov _width,#0x00
- 3242 ; specan.c:453: max_hold = 0;
- 0D39 C2 00 3243 clr _max_hold
- 3244 ; specan.c:454: height = 0;
- 0D3B C2 01 3245 clr _height
- 3246 ; specan.c:455: sleepy = 0;
- 0D3D C2 02 3247 clr _sleepy
- 3248 ; specan.c:456: vscroll = 0;
- 0D3F 75 28 00 3249 mov _vscroll,#0x00
- 3250 ; specan.c:457: min_chan = 0;
- 0D42 75 29 00 3251 mov _min_chan,#0x00
- 3252 ; specan.c:458: max_chan = NUM_CHANNELS - 1;
- 0D45 75 2A 83 3253 mov _max_chan,#0x83
- 3254 ; specan.c:460: xtalClock();
- 0D48 12 0E 56 3255 lcall _xtalClock
- 3256 ; specan.c:461: setIOPorts();
- 0D4B 12 0E 6A 3257 lcall _setIOPorts
- 3258 ; specan.c:462: configureSPI();
- 0D4E 12 0E 77 3259 lcall _configureSPI
- 3260 ; specan.c:463: LCDReset();
- 0D51 12 0E 97 3261 lcall _LCDReset
- 3262 ; specan.c:464: radio_setup();
- 0D54 12 04 D4 3263 lcall _radio_setup
- 3264 ; specan.c:465: set_width(WIDE);
- 0D57 75 82 00 3265 mov dpl,#0x00
- 0D5A 12 0B EB 3266 lcall _set_width
- 3267 ; specan.c:467: while (1) {
- 0D5D 3268 00112$:
- 3269 ; specan.c:468: for (ch = min_chan; ch < max_chan; ch++) {
- 0D5D AA 29 3270 mov r2,_min_chan
- 0D5F 3271 00117$:
- 0D5F C3 3272 clr c
- 0D60 EA 3273 mov a,r2
- 0D61 95 2A 3274 subb a,_max_chan
- 0D63 40 03 3275 jc 00137$
- 0D65 02 0D F4 3276 ljmp 00120$
- 0D68 3277 00137$:
- 3278 ; specan.c:470: tune(ch);
- 0D68 8A 82 3279 mov dpl,r2
- 0D6A C0 02 3280 push ar2
- 0D6C 12 0B 8E 3281 lcall _tune
- 0D6F D0 02 3282 pop ar2
- 3283 ; specan.c:471: RFST = RFST_SRX;
- 0D71 75 E1 02 3284 mov _RFST,#0x02
- 3285 ; specan.c:474: plot(ch);
- 0D74 8A 82 3286 mov dpl,r2
- 0D76 C0 02 3287 push ar2
- 0D78 12 00 DF 3288 lcall _plot
- 0D7B D0 02 3289 pop ar2
- 3290 ; specan.c:477: if (width == NARROW)
- 0D7D 74 01 3291 mov a,#0x01
- 0D7F B5 27 11 3292 cjne a,_width,00103$
- 3293 ; specan.c:478: for (i = 350; i-- ;);
- 0D82 7B 5E 3294 mov r3,#0x5E
- 0D84 7C 01 3295 mov r4,#0x01
- 0D86 3296 00114$:
- 0D86 8B 05 3297 mov ar5,r3
- 0D88 8C 06 3298 mov ar6,r4
- 0D8A 1B 3299 dec r3
- 0D8B BB FF 01 3300 cjne r3,#0xff,00140$
- 0D8E 1C 3301 dec r4
- 0D8F 3302 00140$:
- 0D8F ED 3303 mov a,r5
- 0D90 4E 3304 orl a,r6
- 0D91 70 F3 3305 jnz 00114$
- 0D93 3306 00103$:
- 3307 ; specan.c:481: chan_table[ch].ss = (RSSI ^ 0x80);
- 0D93 EA 3308 mov a,r2
- 0D94 75 F0 08 3309 mov b,#0x08
- 0D97 A4 3310 mul ab
- 0D98 24 00 3311 add a,#_chan_table
- 0D9A FB 3312 mov r3,a
- 0D9B 74 F0 3313 mov a,#(_chan_table >> 8)
- 0D9D 35 F0 3314 addc a,b
- 0D9F FC 3315 mov r4,a
- 0DA0 74 06 3316 mov a,#0x06
- 0DA2 2B 3317 add a,r3
- 0DA3 FD 3318 mov r5,a
- 0DA4 E4 3319 clr a
- 0DA5 3C 3320 addc a,r4
- 0DA6 FE 3321 mov r6,a
- 0DA7 90 DF 3A 3322 mov dptr,#_RSSI
- 0DAA E0 3323 movx a,@dptr
- 0DAB FF 3324 mov r7,a
- 0DAC 63 07 80 3325 xrl ar7,#0x80
- 0DAF 8D 82 3326 mov dpl,r5
- 0DB1 8E 83 3327 mov dph,r6
- 0DB3 EF 3328 mov a,r7
- 0DB4 F0 3329 movx @dptr,a
- 3330 ; specan.c:482: if (max_hold)
- 0DB5 30 00 2A 3331 jnb _max_hold,00105$
- 3332 ; specan.c:483: chan_table[ch].max = MAX(chan_table[ch].ss,
- 0DB8 74 07 3333 mov a,#0x07
- 0DBA 2B 3334 add a,r3
- 0DBB FF 3335 mov r7,a
- 0DBC E4 3336 clr a
- 0DBD 3C 3337 addc a,r4
- 0DBE F8 3338 mov r0,a
- 0DBF 8D 82 3339 mov dpl,r5
- 0DC1 8E 83 3340 mov dph,r6
- 0DC3 E0 3341 movx a,@dptr
- 0DC4 F9 3342 mov r1,a
- 0DC5 8F 82 3343 mov dpl,r7
- 0DC7 88 83 3344 mov dph,r0
- 0DC9 E0 3345 movx a,@dptr
- 0DCA F5 4A 3346 mov _main_sloc0_1_0,a
- 0DCC C3 3347 clr c
- 0DCD 99 3348 subb a,r1
- 0DCE 50 08 3349 jnc 00123$
- 0DD0 8D 82 3350 mov dpl,r5
- 0DD2 8E 83 3351 mov dph,r6
- 0DD4 E0 3352 movx a,@dptr
- 0DD5 FD 3353 mov r5,a
- 0DD6 80 02 3354 sjmp 00124$
- 0DD8 3355 00123$:
- 0DD8 AD 4A 3356 mov r5,_main_sloc0_1_0
- 0DDA 3357 00124$:
- 0DDA 8F 82 3358 mov dpl,r7
- 0DDC 88 83 3359 mov dph,r0
- 0DDE ED 3360 mov a,r5
- 0DDF F0 3361 movx @dptr,a
- 0DE0 80 0B 3362 sjmp 00106$
- 0DE2 3363 00105$:
- 3364 ; specan.c:486: chan_table[ch].max = 0;
- 0DE2 74 07 3365 mov a,#0x07
- 0DE4 2B 3366 add a,r3
- 0DE5 F5 82 3367 mov dpl,a
- 0DE7 E4 3368 clr a
- 0DE8 3C 3369 addc a,r4
- 0DE9 F5 83 3370 mov dph,a
- 0DEB E4 3371 clr a
- 0DEC F0 3372 movx @dptr,a
- 0DED 3373 00106$:
- 3374 ; specan.c:489: RFST = RFST_SIDLE;
- 0DED 75 E1 04 3375 mov _RFST,#0x04
- 3376 ; specan.c:468: for (ch = min_chan; ch < max_chan; ch++) {
- 0DF0 0A 3377 inc r2
- 0DF1 02 0D 5F 3378 ljmp 00117$
- 0DF4 3379 00120$:
- 3380 ; specan.c:492: poll_keyboard();
- 0DF4 12 0B FA 3381 lcall _poll_keyboard
- 3382 ; specan.c:495: if (sleepy) {
- 0DF7 30 02 16 3383 jnb _sleepy,00108$
- 3384 ; specan.c:496: clear();
- 0DFA 12 0F 37 3385 lcall _clear
- 3386 ; specan.c:497: sleepMillis(1000);
- 0DFD 90 03 E8 3387 mov dptr,#0x03E8
- 0E00 12 0E 2F 3388 lcall _sleepMillis
- 3389 ; specan.c:498: SSN = LOW;
- 0E03 C2 84 3390 clr _P0_4
- 3391 ; specan.c:499: LCDPowerSave();
- 0E05 12 0E E2 3392 lcall _LCDPowerSave
- 3393 ; specan.c:500: SSN = HIGH;
- 0E08 D2 84 3394 setb _P0_4
- 3395 ; specan.c:501: sleep();
- 0E0A 12 11 4B 3396 lcall _sleep
- 3397 ; specan.c:503: goto reset;
- 0E0D 02 0D 27 3398 ljmp 00101$
- 0E10 3399 00108$:
- 3400 ; specan.c:506: if (user_freq != center_freq)
- 0E10 E5 22 3401 mov a,_center_freq
- 0E12 B5 24 08 3402 cjne a,_user_freq,00145$
- 0E15 E5 23 3403 mov a,(_center_freq + 1)
- 0E17 B5 25 03 3404 cjne a,(_user_freq + 1),00145$
- 0E1A 02 0D 5D 3405 ljmp 00112$
- 0E1D 3406 00145$:
- 3407 ; specan.c:507: user_freq = set_center_freq(user_freq);
- 0E1D 85 24 82 3408 mov dpl,_user_freq
- 0E20 85 25 83 3409 mov dph,(_user_freq + 1)
- 0E23 12 06 86 3410 lcall _set_center_freq
- 0E26 85 82 24 3411 mov _user_freq,dpl
- 0E29 85 83 25 3412 mov (_user_freq + 1),dph
- 0E2C 02 0D 5D 3413 ljmp 00112$
- 3414 .area CSEG (CODE)
- 3415 .area CONST (CODE)
- 1B3A 3416 _narrow_ruler:
- 1B3A 0E 3417 .db #0x0E ; 14
- 1B3B 02 3418 .db #0x02 ; 2
- 1B3C 0E 3419 .db #0x0E ; 14
- 1B3D 02 3420 .db #0x02 ; 2
- 1B3E 0E 3421 .db #0x0E ; 14
- 1B3F 02 3422 .db #0x02 ; 2
- 1B40 FE 3423 .db #0xFE ; 254
- 1B41 02 3424 .db #0x02 ; 2
- 1B42 0E 3425 .db #0x0E ; 14
- 1B43 02 3426 .db #0x02 ; 2
- 1B44 0E 3427 .db #0x0E ; 14
- 1B45 02 3428 .db #0x02 ; 2
- 1B46 0E 3429 .db #0x0E ; 14
- 1B47 02 3430 .db #0x02 ; 2
- 1B48 0E 3431 .db #0x0E ; 14
- 1B49 02 3432 .db #0x02 ; 2
- 1B4A 3E 3433 .db #0x3E ; 62
- 1B4B 02 3434 .db #0x02 ; 2
- 1B4C 0E 3435 .db #0x0E ; 14
- 1B4D 02 3436 .db #0x02 ; 2
- 1B4E 0E 3437 .db #0x0E ; 14
- 1B4F 02 3438 .db #0x02 ; 2
- 1B50 0E 3439 .db #0x0E ; 14
- 1B51 02 3440 .db #0x02 ; 2
- 1B52 0E 3441 .db #0x0E ; 14
- 1B53 02 3442 .db #0x02 ; 2
- 1B54 FE 3443 .db #0xFE ; 254
- 1B55 02 3444 .db #0x02 ; 2
- 1B56 0E 3445 .db #0x0E ; 14
- 1B57 02 3446 .db #0x02 ; 2
- 1B58 0E 3447 .db #0x0E ; 14
- 1B59 02 3448 .db #0x02 ; 2
- 1B5A 0E 3449 .db #0x0E ; 14
- 1B5B 02 3450 .db #0x02 ; 2
- 1B5C 0E 3451 .db #0x0E ; 14
- 1B5D 02 3452 .db #0x02 ; 2
- 1B5E 3E 3453 .db #0x3E ; 62
- 1B5F 02 3454 .db #0x02 ; 2
- 1B60 0E 3455 .db #0x0E ; 14
- 1B61 02 3456 .db #0x02 ; 2
- 1B62 0E 3457 .db #0x0E ; 14
- 1B63 02 3458 .db #0x02 ; 2
- 1B64 0E 3459 .db #0x0E ; 14
- 1B65 02 3460 .db #0x02 ; 2
- 1B66 0E 3461 .db #0x0E ; 14
- 1B67 02 3462 .db #0x02 ; 2
- 1B68 FE 3463 .db #0xFE ; 254
- 1B69 02 3464 .db #0x02 ; 2
- 1B6A 0E 3465 .db #0x0E ; 14
- 1B6B 02 3466 .db #0x02 ; 2
- 1B6C 0E 3467 .db #0x0E ; 14
- 1B6D 02 3468 .db #0x02 ; 2
- 1B6E 0E 3469 .db #0x0E ; 14
- 1B6F 02 3470 .db #0x02 ; 2
- 1B70 0E 3471 .db #0x0E ; 14
- 1B71 02 3472 .db #0x02 ; 2
- 1B72 3E 3473 .db #0x3E ; 62
- 1B73 02 3474 .db #0x02 ; 2
- 1B74 0E 3475 .db #0x0E ; 14
- 1B75 02 3476 .db #0x02 ; 2
- 1B76 0E 3477 .db #0x0E ; 14
- 1B77 02 3478 .db #0x02 ; 2
- 1B78 0E 3479 .db #0x0E ; 14
- 1B79 02 3480 .db #0x02 ; 2
- 1B7A 0E 3481 .db #0x0E ; 14
- 1B7B 02 3482 .db #0x02 ; 2
- 1B7C FE 3483 .db #0xFE ; 254
- 1B7D 02 3484 .db #0x02 ; 2
- 1B7E 0E 3485 .db #0x0E ; 14
- 1B7F 02 3486 .db #0x02 ; 2
- 1B80 0E 3487 .db #0x0E ; 14
- 1B81 02 3488 .db #0x02 ; 2
- 1B82 0E 3489 .db #0x0E ; 14
- 1B83 02 3490 .db #0x02 ; 2
- 1B84 0E 3491 .db #0x0E ; 14
- 1B85 02 3492 .db #0x02 ; 2
- 1B86 3E 3493 .db #0x3E ; 62
- 1B87 02 3494 .db #0x02 ; 2
- 1B88 0E 3495 .db #0x0E ; 14
- 1B89 02 3496 .db #0x02 ; 2
- 1B8A 0E 3497 .db #0x0E ; 14
- 1B8B 02 3498 .db #0x02 ; 2
- 1B8C 0E 3499 .db #0x0E ; 14
- 1B8D 02 3500 .db #0x02 ; 2
- 1B8E 0E 3501 .db #0x0E ; 14
- 1B8F 02 3502 .db #0x02 ; 2
- 1B90 FE 3503 .db #0xFE ; 254
- 1B91 02 3504 .db #0x02 ; 2
- 1B92 0E 3505 .db #0x0E ; 14
- 1B93 02 3506 .db #0x02 ; 2
- 1B94 0E 3507 .db #0x0E ; 14
- 1B95 02 3508 .db #0x02 ; 2
- 1B96 0E 3509 .db #0x0E ; 14
- 1B97 02 3510 .db #0x02 ; 2
- 1B98 0E 3511 .db #0x0E ; 14
- 1B99 02 3512 .db #0x02 ; 2
- 1B9A 3E 3513 .db #0x3E ; 62
- 1B9B 02 3514 .db #0x02 ; 2
- 1B9C 0E 3515 .db #0x0E ; 14
- 1B9D 02 3516 .db #0x02 ; 2
- 1B9E 0E 3517 .db #0x0E ; 14
- 1B9F 02 3518 .db #0x02 ; 2
- 1BA0 0E 3519 .db #0x0E ; 14
- 1BA1 02 3520 .db #0x02 ; 2
- 1BA2 0E 3521 .db #0x0E ; 14
- 1BA3 02 3522 .db #0x02 ; 2
- 1BA4 FE 3523 .db #0xFE ; 254
- 1BA5 02 3524 .db #0x02 ; 2
- 1BA6 0E 3525 .db #0x0E ; 14
- 1BA7 02 3526 .db #0x02 ; 2
- 1BA8 0E 3527 .db #0x0E ; 14
- 1BA9 02 3528 .db #0x02 ; 2
- 1BAA 0E 3529 .db #0x0E ; 14
- 1BAB 02 3530 .db #0x02 ; 2
- 1BAC 0E 3531 .db #0x0E ; 14
- 1BAD 02 3532 .db #0x02 ; 2
- 1BAE 3E 3533 .db #0x3E ; 62
- 1BAF 02 3534 .db #0x02 ; 2
- 1BB0 0E 3535 .db #0x0E ; 14
- 1BB1 02 3536 .db #0x02 ; 2
- 1BB2 0E 3537 .db #0x0E ; 14
- 1BB3 02 3538 .db #0x02 ; 2
- 1BB4 0E 3539 .db #0x0E ; 14
- 1BB5 02 3540 .db #0x02 ; 2
- 1BB6 0E 3541 .db #0x0E ; 14
- 1BB7 02 3542 .db #0x02 ; 2
- 1BB8 FE 3543 .db #0xFE ; 254
- 1BB9 02 3544 .db #0x02 ; 2
- 1BBA 0E 3545 .db #0x0E ; 14
- 1BBB 02 3546 .db #0x02 ; 2
- 1BBC 0E 3547 .db #0x0E ; 14
- 1BBD 02 3548 .db #0x02 ; 2
- 1BBE 3549 _wide_ruler:
- 1BBE 02 3550 .db #0x02 ; 2
- 1BBF 0E 3551 .db #0x0E ; 14
- 1BC0 02 3552 .db #0x02 ; 2
- 1BC1 02 3553 .db #0x02 ; 2
- 1BC2 02 3554 .db #0x02 ; 2
- 1BC3 02 3555 .db #0x02 ; 2
- 1BC4 0E 3556 .db #0x0E ; 14
- 1BC5 02 3557 .db #0x02 ; 2
- 1BC6 02 3558 .db #0x02 ; 2
- 1BC7 02 3559 .db #0x02 ; 2
- 1BC8 02 3560 .db #0x02 ; 2
- 1BC9 0E 3561 .db #0x0E ; 14
- 1BCA 02 3562 .db #0x02 ; 2
- 1BCB 02 3563 .db #0x02 ; 2
- 1BCC 02 3564 .db #0x02 ; 2
- 1BCD 02 3565 .db #0x02 ; 2
- 1BCE FE 3566 .db #0xFE ; 254
- 1BCF 02 3567 .db #0x02 ; 2
- 1BD0 02 3568 .db #0x02 ; 2
- 1BD1 02 3569 .db #0x02 ; 2
- 1BD2 02 3570 .db #0x02 ; 2
- 1BD3 0E 3571 .db #0x0E ; 14
- 1BD4 02 3572 .db #0x02 ; 2
- 1BD5 02 3573 .db #0x02 ; 2
- 1BD6 02 3574 .db #0x02 ; 2
- 1BD7 02 3575 .db #0x02 ; 2
- 1BD8 0E 3576 .db #0x0E ; 14
- 1BD9 02 3577 .db #0x02 ; 2
- 1BDA 02 3578 .db #0x02 ; 2
- 1BDB 02 3579 .db #0x02 ; 2
- 1BDC 02 3580 .db #0x02 ; 2
- 1BDD 0E 3581 .db #0x0E ; 14
- 1BDE 02 3582 .db #0x02 ; 2
- 1BDF 02 3583 .db #0x02 ; 2
- 1BE0 02 3584 .db #0x02 ; 2
- 1BE1 02 3585 .db #0x02 ; 2
- 1BE2 0E 3586 .db #0x0E ; 14
- 1BE3 02 3587 .db #0x02 ; 2
- 1BE4 02 3588 .db #0x02 ; 2
- 1BE5 02 3589 .db #0x02 ; 2
- 1BE6 02 3590 .db #0x02 ; 2
- 1BE7 3E 3591 .db #0x3E ; 62
- 1BE8 02 3592 .db #0x02 ; 2
- 1BE9 02 3593 .db #0x02 ; 2
- 1BEA 02 3594 .db #0x02 ; 2
- 1BEB 02 3595 .db #0x02 ; 2
- 1BEC 0E 3596 .db #0x0E ; 14
- 1BED 02 3597 .db #0x02 ; 2
- 1BEE 02 3598 .db #0x02 ; 2
- 1BEF 02 3599 .db #0x02 ; 2
- 1BF0 02 3600 .db #0x02 ; 2
- 1BF1 0E 3601 .db #0x0E ; 14
- 1BF2 02 3602 .db #0x02 ; 2
- 1BF3 02 3603 .db #0x02 ; 2
- 1BF4 02 3604 .db #0x02 ; 2
- 1BF5 02 3605 .db #0x02 ; 2
- 1BF6 0E 3606 .db #0x0E ; 14
- 1BF7 02 3607 .db #0x02 ; 2
- 1BF8 02 3608 .db #0x02 ; 2
- 1BF9 02 3609 .db #0x02 ; 2
- 1BFA 02 3610 .db #0x02 ; 2
- 1BFB 0E 3611 .db #0x0E ; 14
- 1BFC 02 3612 .db #0x02 ; 2
- 1BFD 02 3613 .db #0x02 ; 2
- 1BFE 02 3614 .db #0x02 ; 2
- 1BFF 02 3615 .db #0x02 ; 2
- 1C00 FE 3616 .db #0xFE ; 254
- 1C01 02 3617 .db #0x02 ; 2
- 1C02 02 3618 .db #0x02 ; 2
- 1C03 02 3619 .db #0x02 ; 2
- 1C04 02 3620 .db #0x02 ; 2
- 1C05 0E 3621 .db #0x0E ; 14
- 1C06 02 3622 .db #0x02 ; 2
- 1C07 02 3623 .db #0x02 ; 2
- 1C08 02 3624 .db #0x02 ; 2
- 1C09 02 3625 .db #0x02 ; 2
- 1C0A 0E 3626 .db #0x0E ; 14
- 1C0B 02 3627 .db #0x02 ; 2
- 1C0C 02 3628 .db #0x02 ; 2
- 1C0D 02 3629 .db #0x02 ; 2
- 1C0E 02 3630 .db #0x02 ; 2
- 1C0F 0E 3631 .db #0x0E ; 14
- 1C10 02 3632 .db #0x02 ; 2
- 1C11 02 3633 .db #0x02 ; 2
- 1C12 02 3634 .db #0x02 ; 2
- 1C13 02 3635 .db #0x02 ; 2
- 1C14 0E 3636 .db #0x0E ; 14
- 1C15 02 3637 .db #0x02 ; 2
- 1C16 02 3638 .db #0x02 ; 2
- 1C17 02 3639 .db #0x02 ; 2
- 1C18 02 3640 .db #0x02 ; 2
- 1C19 3E 3641 .db #0x3E ; 62
- 1C1A 02 3642 .db #0x02 ; 2
- 1C1B 02 3643 .db #0x02 ; 2
- 1C1C 02 3644 .db #0x02 ; 2
- 1C1D 02 3645 .db #0x02 ; 2
- 1C1E 0E 3646 .db #0x0E ; 14
- 1C1F 02 3647 .db #0x02 ; 2
- 1C20 02 3648 .db #0x02 ; 2
- 1C21 02 3649 .db #0x02 ; 2
- 1C22 02 3650 .db #0x02 ; 2
- 1C23 0E 3651 .db #0x0E ; 14
- 1C24 02 3652 .db #0x02 ; 2
- 1C25 02 3653 .db #0x02 ; 2
- 1C26 02 3654 .db #0x02 ; 2
- 1C27 02 3655 .db #0x02 ; 2
- 1C28 0E 3656 .db #0x0E ; 14
- 1C29 02 3657 .db #0x02 ; 2
- 1C2A 02 3658 .db #0x02 ; 2
- 1C2B 02 3659 .db #0x02 ; 2
- 1C2C 02 3660 .db #0x02 ; 2
- 1C2D 0E 3661 .db #0x0E ; 14
- 1C2E 02 3662 .db #0x02 ; 2
- 1C2F 02 3663 .db #0x02 ; 2
- 1C30 02 3664 .db #0x02 ; 2
- 1C31 02 3665 .db #0x02 ; 2
- 1C32 FE 3666 .db #0xFE ; 254
- 1C33 02 3667 .db #0x02 ; 2
- 1C34 02 3668 .db #0x02 ; 2
- 1C35 02 3669 .db #0x02 ; 2
- 1C36 02 3670 .db #0x02 ; 2
- 1C37 0E 3671 .db #0x0E ; 14
- 1C38 02 3672 .db #0x02 ; 2
- 1C39 02 3673 .db #0x02 ; 2
- 1C3A 02 3674 .db #0x02 ; 2
- 1C3B 02 3675 .db #0x02 ; 2
- 1C3C 0E 3676 .db #0x0E ; 14
- 1C3D 02 3677 .db #0x02 ; 2
- 1C3E 02 3678 .db #0x02 ; 2
- 1C3F 02 3679 .db #0x02 ; 2
- 1C40 02 3680 .db #0x02 ; 2
- 1C41 0E 3681 .db #0x0E ; 14
- 1C42 02 3682 .db #0x02 ; 2
- 1C43 02 3683 .db #0x02 ; 2
- 1C44 02 3684 .db #0x02 ; 2
- 1C45 02 3685 .db #0x02 ; 2
- 1C46 0E 3686 .db #0x0E ; 14
- 1C47 02 3687 .db #0x02 ; 2
- 1C48 02 3688 .db #0x02 ; 2
- 1C49 02 3689 .db #0x02 ; 2
- 1C4A 02 3690 .db #0x02 ; 2
- 1C4B 3E 3691 .db #0x3E ; 62
- 1C4C 02 3692 .db #0x02 ; 2
- 1C4D 02 3693 .db #0x02 ; 2
- 1C4E 02 3694 .db #0x02 ; 2
- 1C4F 02 3695 .db #0x02 ; 2
- 1C50 0E 3696 .db #0x0E ; 14
- 1C51 02 3697 .db #0x02 ; 2
- 1C52 02 3698 .db #0x02 ; 2
- 1C53 02 3699 .db #0x02 ; 2
- 1C54 02 3700 .db #0x02 ; 2
- 1C55 0E 3701 .db #0x0E ; 14
- 1C56 02 3702 .db #0x02 ; 2
- 1C57 02 3703 .db #0x02 ; 2
- 1C58 02 3704 .db #0x02 ; 2
- 1C59 02 3705 .db #0x02 ; 2
- 1C5A 0E 3706 .db #0x0E ; 14
- 1C5B 3707 _ultrawide_ruler:
- 1C5B 0E 3708 .db #0x0E ; 14
- 1C5C 02 3709 .db #0x02 ; 2
- 1C5D 02 3710 .db #0x02 ; 2
- 1C5E 0E 3711 .db #0x0E ; 14
- 1C5F 02 3712 .db #0x02 ; 2
- 1C60 02 3713 .db #0x02 ; 2
- 1C61 FE 3714 .db #0xFE ; 254
- 1C62 02 3715 .db #0x02 ; 2
- 1C63 02 3716 .db #0x02 ; 2
- 1C64 0E 3717 .db #0x0E ; 14
- 1C65 02 3718 .db #0x02 ; 2
- 1C66 02 3719 .db #0x02 ; 2
- 1C67 0E 3720 .db #0x0E ; 14
- 1C68 02 3721 .db #0x02 ; 2
- 1C69 02 3722 .db #0x02 ; 2
- 1C6A 0E 3723 .db #0x0E ; 14
- 1C6B 02 3724 .db #0x02 ; 2
- 1C6C 02 3725 .db #0x02 ; 2
- 1C6D 0E 3726 .db #0x0E ; 14
- 1C6E 02 3727 .db #0x02 ; 2
- 1C6F 02 3728 .db #0x02 ; 2
- 1C70 FE 3729 .db #0xFE ; 254
- 1C71 02 3730 .db #0x02 ; 2
- 1C72 02 3731 .db #0x02 ; 2
- 1C73 0E 3732 .db #0x0E ; 14
- 1C74 02 3733 .db #0x02 ; 2
- 1C75 02 3734 .db #0x02 ; 2
- 1C76 0E 3735 .db #0x0E ; 14
- 1C77 02 3736 .db #0x02 ; 2
- 1C78 02 3737 .db #0x02 ; 2
- 1C79 0E 3738 .db #0x0E ; 14
- 1C7A 02 3739 .db #0x02 ; 2
- 1C7B 02 3740 .db #0x02 ; 2
- 1C7C 0E 3741 .db #0x0E ; 14
- 1C7D 02 3742 .db #0x02 ; 2
- 1C7E 02 3743 .db #0x02 ; 2
- 1C7F FE 3744 .db #0xFE ; 254
- 1C80 02 3745 .db #0x02 ; 2
- 1C81 02 3746 .db #0x02 ; 2
- 1C82 0E 3747 .db #0x0E ; 14
- 1C83 02 3748 .db #0x02 ; 2
- 1C84 02 3749 .db #0x02 ; 2
- 1C85 0E 3750 .db #0x0E ; 14
- 1C86 02 3751 .db #0x02 ; 2
- 1C87 02 3752 .db #0x02 ; 2
- 1C88 0E 3753 .db #0x0E ; 14
- 1C89 02 3754 .db #0x02 ; 2
- 1C8A 02 3755 .db #0x02 ; 2
- 1C8B 0E 3756 .db #0x0E ; 14
- 1C8C 02 3757 .db #0x02 ; 2
- 1C8D 02 3758 .db #0x02 ; 2
- 1C8E FE 3759 .db #0xFE ; 254
- 1C8F 02 3760 .db #0x02 ; 2
- 1C90 02 3761 .db #0x02 ; 2
- 1C91 0E 3762 .db #0x0E ; 14
- 1C92 02 3763 .db #0x02 ; 2
- 1C93 02 3764 .db #0x02 ; 2
- 1C94 0E 3765 .db #0x0E ; 14
- 1C95 02 3766 .db #0x02 ; 2
- 1C96 02 3767 .db #0x02 ; 2
- 1C97 0E 3768 .db #0x0E ; 14
- 1C98 02 3769 .db #0x02 ; 2
- 1C99 02 3770 .db #0x02 ; 2
- 1C9A 0E 3771 .db #0x0E ; 14
- 1C9B 02 3772 .db #0x02 ; 2
- 1C9C 02 3773 .db #0x02 ; 2
- 1C9D FE 3774 .db #0xFE ; 254
- 1C9E 02 3775 .db #0x02 ; 2
- 1C9F 02 3776 .db #0x02 ; 2
- 1CA0 0E 3777 .db #0x0E ; 14
- 1CA1 02 3778 .db #0x02 ; 2
- 1CA2 02 3779 .db #0x02 ; 2
- 1CA3 0E 3780 .db #0x0E ; 14
- 1CA4 02 3781 .db #0x02 ; 2
- 1CA5 02 3782 .db #0x02 ; 2
- 1CA6 0E 3783 .db #0x0E ; 14
- 1CA7 02 3784 .db #0x02 ; 2
- 1CA8 02 3785 .db #0x02 ; 2
- 1CA9 0E 3786 .db #0x0E ; 14
- 1CAA 02 3787 .db #0x02 ; 2
- 1CAB 02 3788 .db #0x02 ; 2
- 1CAC FE 3789 .db #0xFE ; 254
- 1CAD 02 3790 .db #0x02 ; 2
- 1CAE 02 3791 .db #0x02 ; 2
- 1CAF 0E 3792 .db #0x0E ; 14
- 1CB0 02 3793 .db #0x02 ; 2
- 1CB1 02 3794 .db #0x02 ; 2
- 1CB2 0E 3795 .db #0x0E ; 14
- 1CB3 02 3796 .db #0x02 ; 2
- 1CB4 02 3797 .db #0x02 ; 2
- 1CB5 0E 3798 .db #0x0E ; 14
- 1CB6 02 3799 .db #0x02 ; 2
- 1CB7 02 3800 .db #0x02 ; 2
- 1CB8 0E 3801 .db #0x0E ; 14
- 1CB9 02 3802 .db #0x02 ; 2
- 1CBA 02 3803 .db #0x02 ; 2
- 1CBB FE 3804 .db #0xFE ; 254
- 1CBC 02 3805 .db #0x02 ; 2
- 1CBD 02 3806 .db #0x02 ; 2
- 1CBE 0E 3807 .db #0x0E ; 14
- 1CBF 02 3808 .db #0x02 ; 2
- 1CC0 02 3809 .db #0x02 ; 2
- 1CC1 0E 3810 .db #0x0E ; 14
- 1CC2 02 3811 .db #0x02 ; 2
- 1CC3 02 3812 .db #0x02 ; 2
- 1CC4 0E 3813 .db #0x0E ; 14
- 1CC5 02 3814 .db #0x02 ; 2
- 1CC6 02 3815 .db #0x02 ; 2
- 1CC7 0E 3816 .db #0x0E ; 14
- 1CC8 02 3817 .db #0x02 ; 2
- 1CC9 02 3818 .db #0x02 ; 2
- 1CCA FE 3819 .db #0xFE ; 254
- 1CCB 02 3820 .db #0x02 ; 2
- 1CCC 02 3821 .db #0x02 ; 2
- 1CCD 0E 3822 .db #0x0E ; 14
- 1CCE 02 3823 .db #0x02 ; 2
- 1CCF 02 3824 .db #0x02 ; 2
- 1CD0 0E 3825 .db #0x0E ; 14
- 1CD1 02 3826 .db #0x02 ; 2
- 1CD2 02 3827 .db #0x02 ; 2
- 1CD3 0E 3828 .db #0x0E ; 14
- 1CD4 02 3829 .db #0x02 ; 2
- 1CD5 02 3830 .db #0x02 ; 2
- 1CD6 0E 3831 .db #0x0E ; 14
- 1CD7 02 3832 .db #0x02 ; 2
- 1CD8 02 3833 .db #0x02 ; 2
- 1CD9 FE 3834 .db #0xFE ; 254
- 1CDA 02 3835 .db #0x02 ; 2
- 1CDB 02 3836 .db #0x02 ; 2
- 1CDC 0E 3837 .db #0x0E ; 14
- 1CDD 02 3838 .db #0x02 ; 2
- 1CDE 02 3839 .db #0x02 ; 2
- 1CDF 3840 __str_0:
- 1CDF 25 64 3841 .ascii "%d"
- 1CE1 00 3842 .db 0x00
- 1CE2 3843 __str_1:
- 1CE2 25 64 20 20 25 64 3844 .ascii "%d %d %d %d"
- 20 20 25 64 20 20
- 25 64
- 1CF0 00 3845 .db 0x00
- 3846 .area XINIT (CODE)
- 3847 .area CABS (ABS,CODE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement