1 ;-------------------------------------------------------- 2 ; File Created by SDCC : free open source ANSI-C Compiler 3 ; Version 4.2.0 #13081 (Linux) 4 ;-------------------------------------------------------- 5 .module timer 6 .optsdcc -mmcs51 --model-small 7 8 ;-------------------------------------------------------- 9 ; Public variables in this module 10 ;-------------------------------------------------------- 11 .globl _hook_sv 12 .globl _EIPX6 13 .globl _EIPX5 14 .globl _EIPX4 15 .globl _PI2C 16 .globl _PUSB 17 .globl _EIEX6 18 .globl _EIEX5 19 .globl _EIEX4 20 .globl _EI2C 21 .globl _EIUSB 22 .globl _SMOD1 23 .globl _ERESI 24 .globl _RESI 25 .globl _INT6 26 .globl _CY 27 .globl _AC 28 .globl _F0 29 .globl _RS1 30 .globl _RS0 31 .globl _OV 32 .globl _FL 33 .globl _P 34 .globl _TF2 35 .globl _EXF2 36 .globl _RCLK 37 .globl _TCLK 38 .globl _EXEN2 39 .globl _TR2 40 .globl _C_T2 41 .globl _CP_RL2 42 .globl _SM01 43 .globl _SM11 44 .globl _SM21 45 .globl _REN1 46 .globl _TB81 47 .globl _RB81 48 .globl _TI1 49 .globl _RI1 50 .globl _PS1 51 .globl _PT2 52 .globl _PS0 53 .globl _PT1 54 .globl _PX1 55 .globl _PT0 56 .globl _PX0 57 .globl _EA 58 .globl _ES1 59 .globl _ET2 60 .globl _ES0 61 .globl _ET1 62 .globl _EX1 63 .globl _ET0 64 .globl _EX0 65 .globl _SM0 66 .globl _SM1 67 .globl _SM2 68 .globl _REN 69 .globl _TB8 70 .globl _RB8 71 .globl _TI 72 .globl _RI 73 .globl _TF1 74 .globl _TR1 75 .globl _TF0 76 .globl _TR0 77 .globl _IE1 78 .globl _IT1 79 .globl _IE0 80 .globl _IT0 81 .globl _SEL 82 .globl _EIP 83 .globl _B 84 .globl _EIE 85 .globl _ACC 86 .globl _EICON 87 .globl _PSW 88 .globl _TH2 89 .globl _TL2 90 .globl _RCAP2H 91 .globl _RCAP2L 92 .globl _T2CON 93 .globl _SBUF1 94 .globl _SCON1 95 .globl _GPIFSGLDATLNOX 96 .globl _GPIFSGLDATLX 97 .globl _GPIFSGLDATH 98 .globl _GPIFTRIG 99 .globl _EP01STAT 100 .globl _IP 101 .globl _OEE 102 .globl _OED 103 .globl _OEC 104 .globl _OEB 105 .globl _OEA 106 .globl _IOE 107 .globl _IOD 108 .globl _AUTOPTRSETUP 109 .globl _EP68FIFOFLGS 110 .globl _EP24FIFOFLGS 111 .globl _EP2468STAT 112 .globl _IE 113 .globl _INT4CLR 114 .globl _INT2CLR 115 .globl _IOC 116 .globl _AUTODAT2 117 .globl _AUTOPTRL2 118 .globl _AUTOPTRH2 119 .globl _AUTODAT1 120 .globl _APTR1L 121 .globl _APTR1H 122 .globl _SBUF0 123 .globl _SCON0 124 .globl _MPAGE 125 .globl _EXIF 126 .globl _IOB 127 .globl _CKCON 128 .globl _TH1 129 .globl _TH0 130 .globl _TL1 131 .globl _TL0 132 .globl _TMOD 133 .globl _TCON 134 .globl _PCON 135 .globl _DPS 136 .globl _DPH1 137 .globl _DPL1 138 .globl _DPH 139 .globl _DPL 140 .globl _SP 141 .globl _IOA 142 .globl _EP8FIFOBUF 143 .globl _EP6FIFOBUF 144 .globl _EP4FIFOBUF 145 .globl _EP2FIFOBUF 146 .globl _EP1INBUF 147 .globl _EP1OUTBUF 148 .globl _EP0BUF 149 .globl _CT4 150 .globl _CT3 151 .globl _CT2 152 .globl _CT1 153 .globl _USBTEST 154 .globl _TESTCFG 155 .globl _DBUG 156 .globl _UDMACRCQUAL 157 .globl _UDMACRCL 158 .globl _UDMACRCH 159 .globl _GPIFHOLDAMOUNT 160 .globl _FLOWSTBHPERIOD 161 .globl _FLOWSTBEDGE 162 .globl _FLOWSTB 163 .globl _FLOWHOLDOFF 164 .globl _FLOWEQ1CTL 165 .globl _FLOWEQ0CTL 166 .globl _FLOWLOGIC 167 .globl _FLOWSTATE 168 .globl _GPIFABORT 169 .globl _GPIFREADYSTAT 170 .globl _GPIFREADYCFG 171 .globl _XGPIFSGLDATLNOX 172 .globl _XGPIFSGLDATLX 173 .globl _XGPIFSGLDATH 174 .globl _EP8GPIFTRIG 175 .globl _EP8GPIFPFSTOP 176 .globl _EP8GPIFFLGSEL 177 .globl _EP6GPIFTRIG 178 .globl _EP6GPIFPFSTOP 179 .globl _EP6GPIFFLGSEL 180 .globl _EP4GPIFTRIG 181 .globl _EP4GPIFPFSTOP 182 .globl _EP4GPIFFLGSEL 183 .globl _EP2GPIFTRIG 184 .globl _EP2GPIFPFSTOP 185 .globl _EP2GPIFFLGSEL 186 .globl _GPIFTCB0 187 .globl _GPIFTCB1 188 .globl _GPIFTCB2 189 .globl _GPIFTCB3 190 .globl _GPIFADRL 191 .globl _GPIFADRH 192 .globl _GPIFCTLCFG 193 .globl _GPIFIDLECTL 194 .globl _GPIFIDLECS 195 .globl _GPIFWFSELECT 196 .globl _SETUPDAT 197 .globl _SUDPTRCTL 198 .globl _SUDPTRL 199 .globl _SUDPTRH 200 .globl _EP8FIFOBCL 201 .globl _EP8FIFOBCH 202 .globl _EP6FIFOBCL 203 .globl _EP6FIFOBCH 204 .globl _EP4FIFOBCL 205 .globl _EP4FIFOBCH 206 .globl _EP2FIFOBCL 207 .globl _EP2FIFOBCH 208 .globl _EP8FIFOFLGS 209 .globl _EP6FIFOFLGS 210 .globl _EP4FIFOFLGS 211 .globl _EP2FIFOFLGS 212 .globl _EP8CS 213 .globl _EP6CS 214 .globl _EP4CS 215 .globl _EP2CS 216 .globl _EP1INCS 217 .globl _EP1OUTCS 218 .globl _EP0CS 219 .globl _EP8BCL 220 .globl _EP8BCH 221 .globl _EP6BCL 222 .globl _EP6BCH 223 .globl _EP4BCL 224 .globl _EP4BCH 225 .globl _EP2BCL 226 .globl _EP2BCH 227 .globl _EP1INBC 228 .globl _EP1OUTBC 229 .globl _EP0BCL 230 .globl _EP0BCH 231 .globl _FNADDR 232 .globl _MICROFRAME 233 .globl _USBFRAMEL 234 .globl _USBFRAMEH 235 .globl _TOGCTL 236 .globl _WAKEUPCS 237 .globl _SUSPEND 238 .globl _USBCS 239 .globl _XAUTODAT2 240 .globl _XAUTODAT1 241 .globl _I2CTL 242 .globl _I2DAT 243 .globl _I2CS 244 .globl _PORTECFG 245 .globl _PORTCCFG 246 .globl _PORTACFG 247 .globl _INTSETUP 248 .globl _INT4IVEC 249 .globl _INT2IVEC 250 .globl _CLRERRCNT 251 .globl _ERRCNTLIM 252 .globl _USBERRIRQ 253 .globl _USBERRIE 254 .globl _GPIFIRQ 255 .globl _GPIFIE 256 .globl _EPIRQ 257 .globl _EPIE 258 .globl _USBIRQ 259 .globl _USBIE 260 .globl _NAKIRQ 261 .globl _NAKIE 262 .globl _IBNIRQ 263 .globl _IBNIE 264 .globl _EP8FIFOIRQ 265 .globl _EP8FIFOIE 266 .globl _EP6FIFOIRQ 267 .globl _EP6FIFOIE 268 .globl _EP4FIFOIRQ 269 .globl _EP4FIFOIE 270 .globl _EP2FIFOIRQ 271 .globl _EP2FIFOIE 272 .globl _OUTPKTEND 273 .globl _INPKTEND 274 .globl _EP8ISOINPKTS 275 .globl _EP6ISOINPKTS 276 .globl _EP4ISOINPKTS 277 .globl _EP2ISOINPKTS 278 .globl _EP8FIFOPFL 279 .globl _EP8FIFOPFH 280 .globl _EP6FIFOPFL 281 .globl _EP6FIFOPFH 282 .globl _EP4FIFOPFL 283 .globl _EP4FIFOPFH 284 .globl _EP2FIFOPFL 285 .globl _EP2FIFOPFH 286 .globl _EP8AUTOINLENL 287 .globl _EP8AUTOINLENH 288 .globl _EP6AUTOINLENL 289 .globl _EP6AUTOINLENH 290 .globl _EP4AUTOINLENL 291 .globl _EP4AUTOINLENH 292 .globl _EP2AUTOINLENL 293 .globl _EP2AUTOINLENH 294 .globl _EP8FIFOCFG 295 .globl _EP6FIFOCFG 296 .globl _EP4FIFOCFG 297 .globl _EP2FIFOCFG 298 .globl _EP8CFG 299 .globl _EP6CFG 300 .globl _EP4CFG 301 .globl _EP2CFG 302 .globl _EP1INCFG 303 .globl _EP1OUTCFG 304 .globl _REVCTL 305 .globl _REVID 306 .globl _FIFOPINPOLAR 307 .globl _UART230 308 .globl _BPADDRL 309 .globl _BPADDRH 310 .globl _BREAKPT 311 .globl _FIFORESET 312 .globl _PINFLAGSCD 313 .globl _PINFLAGSAB 314 .globl _IFCONFIG 315 .globl _CPUCS 316 .globl _RES_WAVEDATA_END 317 .globl _GPIF_WAVE_DATA 318 .globl _hook_timer_tick 319 ;-------------------------------------------------------- 320 ; special function registers 321 ;-------------------------------------------------------- 322 .area RSEG (ABS,DATA) 000000 323 .org 0x0000 000080 324 _IOA = 0x0080 000081 325 _SP = 0x0081 000082 326 _DPL = 0x0082 000083 327 _DPH = 0x0083 000084 328 _DPL1 = 0x0084 000085 329 _DPH1 = 0x0085 000086 330 _DPS = 0x0086 000087 331 _PCON = 0x0087 000088 332 _TCON = 0x0088 000089 333 _TMOD = 0x0089 00008A 334 _TL0 = 0x008a 00008B 335 _TL1 = 0x008b 00008C 336 _TH0 = 0x008c 00008D 337 _TH1 = 0x008d 00008E 338 _CKCON = 0x008e 000090 339 _IOB = 0x0090 000091 340 _EXIF = 0x0091 000092 341 _MPAGE = 0x0092 000098 342 _SCON0 = 0x0098 000099 343 _SBUF0 = 0x0099 00009A 344 _APTR1H = 0x009a 00009B 345 _APTR1L = 0x009b 00009C 346 _AUTODAT1 = 0x009c 00009D 347 _AUTOPTRH2 = 0x009d 00009E 348 _AUTOPTRL2 = 0x009e 00009F 349 _AUTODAT2 = 0x009f 0000A0 350 _IOC = 0x00a0 0000A1 351 _INT2CLR = 0x00a1 0000A2 352 _INT4CLR = 0x00a2 0000A8 353 _IE = 0x00a8 0000AA 354 _EP2468STAT = 0x00aa 0000AB 355 _EP24FIFOFLGS = 0x00ab 0000AC 356 _EP68FIFOFLGS = 0x00ac 0000AF 357 _AUTOPTRSETUP = 0x00af 0000B0 358 _IOD = 0x00b0 0000B1 359 _IOE = 0x00b1 0000B2 360 _OEA = 0x00b2 0000B3 361 _OEB = 0x00b3 0000B4 362 _OEC = 0x00b4 0000B5 363 _OED = 0x00b5 0000B6 364 _OEE = 0x00b6 0000B8 365 _IP = 0x00b8 0000BA 366 _EP01STAT = 0x00ba 0000BB 367 _GPIFTRIG = 0x00bb 0000BD 368 _GPIFSGLDATH = 0x00bd 0000BE 369 _GPIFSGLDATLX = 0x00be 0000BF 370 _GPIFSGLDATLNOX = 0x00bf 0000C0 371 _SCON1 = 0x00c0 0000C1 372 _SBUF1 = 0x00c1 0000C8 373 _T2CON = 0x00c8 0000CA 374 _RCAP2L = 0x00ca 0000CB 375 _RCAP2H = 0x00cb 0000CC 376 _TL2 = 0x00cc 0000CD 377 _TH2 = 0x00cd 0000D0 378 _PSW = 0x00d0 0000D8 379 _EICON = 0x00d8 0000E0 380 _ACC = 0x00e0 0000E8 381 _EIE = 0x00e8 0000F0 382 _B = 0x00f0 0000F8 383 _EIP = 0x00f8 384 ;-------------------------------------------------------- 385 ; special function bits 386 ;-------------------------------------------------------- 387 .area RSEG (ABS,DATA) 000000 388 .org 0x0000 000086 389 _SEL = 0x0086 000088 390 _IT0 = 0x0088 000089 391 _IE0 = 0x0089 00008A 392 _IT1 = 0x008a 00008B 393 _IE1 = 0x008b 00008C 394 _TR0 = 0x008c 00008D 395 _TF0 = 0x008d 00008E 396 _TR1 = 0x008e 00008F 397 _TF1 = 0x008f 000098 398 _RI = 0x0098 000099 399 _TI = 0x0099 00009A 400 _RB8 = 0x009a 00009B 401 _TB8 = 0x009b 00009C 402 _REN = 0x009c 00009D 403 _SM2 = 0x009d 00009E 404 _SM1 = 0x009e 00009F 405 _SM0 = 0x009f 0000A8 406 _EX0 = 0x00a8 0000A9 407 _ET0 = 0x00a9 0000AA 408 _EX1 = 0x00aa 0000AB 409 _ET1 = 0x00ab 0000AC 410 _ES0 = 0x00ac 0000AD 411 _ET2 = 0x00ad 0000AE 412 _ES1 = 0x00ae 0000AF 413 _EA = 0x00af 0000B8 414 _PX0 = 0x00b8 0000B9 415 _PT0 = 0x00b9 0000BA 416 _PX1 = 0x00ba 0000BB 417 _PT1 = 0x00bb 0000BC 418 _PS0 = 0x00bc 0000BD 419 _PT2 = 0x00bd 0000BE 420 _PS1 = 0x00be 0000C0 421 _RI1 = 0x00c0 0000C1 422 _TI1 = 0x00c1 0000C2 423 _RB81 = 0x00c2 0000C3 424 _TB81 = 0x00c3 0000C4 425 _REN1 = 0x00c4 0000C5 426 _SM21 = 0x00c5 0000C6 427 _SM11 = 0x00c6 0000C7 428 _SM01 = 0x00c7 0000C8 429 _CP_RL2 = 0x00c8 0000C9 430 _C_T2 = 0x00c9 0000CA 431 _TR2 = 0x00ca 0000CB 432 _EXEN2 = 0x00cb 0000CC 433 _TCLK = 0x00cc 0000CD 434 _RCLK = 0x00cd 0000CE 435 _EXF2 = 0x00ce 0000CF 436 _TF2 = 0x00cf 0000D0 437 _P = 0x00d0 0000D1 438 _FL = 0x00d1 0000D2 439 _OV = 0x00d2 0000D3 440 _RS0 = 0x00d3 0000D4 441 _RS1 = 0x00d4 0000D5 442 _F0 = 0x00d5 0000D6 443 _AC = 0x00d6 0000D7 444 _CY = 0x00d7 0000DB 445 _INT6 = 0x00db 0000DC 446 _RESI = 0x00dc 0000DD 447 _ERESI = 0x00dd 0000DF 448 _SMOD1 = 0x00df 0000E8 449 _EIUSB = 0x00e8 0000E9 450 _EI2C = 0x00e9 0000EA 451 _EIEX4 = 0x00ea 0000EB 452 _EIEX5 = 0x00eb 0000EC 453 _EIEX6 = 0x00ec 0000F8 454 _PUSB = 0x00f8 0000F9 455 _PI2C = 0x00f9 0000FA 456 _EIPX4 = 0x00fa 0000FB 457 _EIPX5 = 0x00fb 0000FC 458 _EIPX6 = 0x00fc 459 ;-------------------------------------------------------- 460 ; overlayable register banks 461 ;-------------------------------------------------------- 462 .area REG_BANK_0 (REL,OVR,DATA) 000000 463 .ds 8 464 ;-------------------------------------------------------- 465 ; internal ram data 466 ;-------------------------------------------------------- 467 .area DSEG (DATA) 468 ;-------------------------------------------------------- 469 ; overlayable items in internal ram 470 ;-------------------------------------------------------- 471 ;-------------------------------------------------------- 472 ; indirectly addressable internal ram data 473 ;-------------------------------------------------------- 474 .area ISEG (DATA) 475 ;-------------------------------------------------------- 476 ; absolute internal ram data 477 ;-------------------------------------------------------- 478 .area IABS (ABS,DATA) 479 .area IABS (ABS,DATA) 480 ;-------------------------------------------------------- 481 ; bit data 482 ;-------------------------------------------------------- 483 .area BSEG (BIT) 484 ;-------------------------------------------------------- 485 ; paged external ram data 486 ;-------------------------------------------------------- 487 .area PSEG (PAG,XDATA) 488 ;-------------------------------------------------------- 489 ; external ram data 490 ;-------------------------------------------------------- 491 .area XSEG (XDATA) 00E400 492 _GPIF_WAVE_DATA = 0xe400 00E480 493 _RES_WAVEDATA_END = 0xe480 00E600 494 _CPUCS = 0xe600 00E601 495 _IFCONFIG = 0xe601 00E602 496 _PINFLAGSAB = 0xe602 00E603 497 _PINFLAGSCD = 0xe603 00E604 498 _FIFORESET = 0xe604 00E605 499 _BREAKPT = 0xe605 00E606 500 _BPADDRH = 0xe606 00E607 501 _BPADDRL = 0xe607 00E608 502 _UART230 = 0xe608 00E609 503 _FIFOPINPOLAR = 0xe609 00E60A 504 _REVID = 0xe60a 00E60B 505 _REVCTL = 0xe60b 00E610 506 _EP1OUTCFG = 0xe610 00E611 507 _EP1INCFG = 0xe611 00E612 508 _EP2CFG = 0xe612 00E613 509 _EP4CFG = 0xe613 00E614 510 _EP6CFG = 0xe614 00E615 511 _EP8CFG = 0xe615 00E618 512 _EP2FIFOCFG = 0xe618 00E619 513 _EP4FIFOCFG = 0xe619 00E61A 514 _EP6FIFOCFG = 0xe61a 00E61B 515 _EP8FIFOCFG = 0xe61b 00E620 516 _EP2AUTOINLENH = 0xe620 00E621 517 _EP2AUTOINLENL = 0xe621 00E622 518 _EP4AUTOINLENH = 0xe622 00E623 519 _EP4AUTOINLENL = 0xe623 00E624 520 _EP6AUTOINLENH = 0xe624 00E625 521 _EP6AUTOINLENL = 0xe625 00E626 522 _EP8AUTOINLENH = 0xe626 00E627 523 _EP8AUTOINLENL = 0xe627 00E630 524 _EP2FIFOPFH = 0xe630 00E631 525 _EP2FIFOPFL = 0xe631 00E632 526 _EP4FIFOPFH = 0xe632 00E633 527 _EP4FIFOPFL = 0xe633 00E634 528 _EP6FIFOPFH = 0xe634 00E635 529 _EP6FIFOPFL = 0xe635 00E636 530 _EP8FIFOPFH = 0xe636 00E637 531 _EP8FIFOPFL = 0xe637 00E640 532 _EP2ISOINPKTS = 0xe640 00E641 533 _EP4ISOINPKTS = 0xe641 00E642 534 _EP6ISOINPKTS = 0xe642 00E643 535 _EP8ISOINPKTS = 0xe643 00E648 536 _INPKTEND = 0xe648 00E649 537 _OUTPKTEND = 0xe649 00E650 538 _EP2FIFOIE = 0xe650 00E651 539 _EP2FIFOIRQ = 0xe651 00E652 540 _EP4FIFOIE = 0xe652 00E653 541 _EP4FIFOIRQ = 0xe653 00E654 542 _EP6FIFOIE = 0xe654 00E655 543 _EP6FIFOIRQ = 0xe655 00E656 544 _EP8FIFOIE = 0xe656 00E657 545 _EP8FIFOIRQ = 0xe657 00E658 546 _IBNIE = 0xe658 00E659 547 _IBNIRQ = 0xe659 00E65A 548 _NAKIE = 0xe65a 00E65B 549 _NAKIRQ = 0xe65b 00E65C 550 _USBIE = 0xe65c 00E65D 551 _USBIRQ = 0xe65d 00E65E 552 _EPIE = 0xe65e 00E65F 553 _EPIRQ = 0xe65f 00E660 554 _GPIFIE = 0xe660 00E661 555 _GPIFIRQ = 0xe661 00E662 556 _USBERRIE = 0xe662 00E663 557 _USBERRIRQ = 0xe663 00E664 558 _ERRCNTLIM = 0xe664 00E665 559 _CLRERRCNT = 0xe665 00E666 560 _INT2IVEC = 0xe666 00E667 561 _INT4IVEC = 0xe667 00E668 562 _INTSETUP = 0xe668 00E670 563 _PORTACFG = 0xe670 00E671 564 _PORTCCFG = 0xe671 00E672 565 _PORTECFG = 0xe672 00E678 566 _I2CS = 0xe678 00E679 567 _I2DAT = 0xe679 00E67A 568 _I2CTL = 0xe67a 00E67B 569 _XAUTODAT1 = 0xe67b 00E67C 570 _XAUTODAT2 = 0xe67c 00E680 571 _USBCS = 0xe680 00E681 572 _SUSPEND = 0xe681 00E682 573 _WAKEUPCS = 0xe682 00E683 574 _TOGCTL = 0xe683 00E684 575 _USBFRAMEH = 0xe684 00E685 576 _USBFRAMEL = 0xe685 00E686 577 _MICROFRAME = 0xe686 00E687 578 _FNADDR = 0xe687 00E68A 579 _EP0BCH = 0xe68a 00E68B 580 _EP0BCL = 0xe68b 00E68D 581 _EP1OUTBC = 0xe68d 00E68F 582 _EP1INBC = 0xe68f 00E690 583 _EP2BCH = 0xe690 00E691 584 _EP2BCL = 0xe691 00E694 585 _EP4BCH = 0xe694 00E695 586 _EP4BCL = 0xe695 00E698 587 _EP6BCH = 0xe698 00E699 588 _EP6BCL = 0xe699 00E69C 589 _EP8BCH = 0xe69c 00E69D 590 _EP8BCL = 0xe69d 00E6A0 591 _EP0CS = 0xe6a0 00E6A1 592 _EP1OUTCS = 0xe6a1 00E6A2 593 _EP1INCS = 0xe6a2 00E6A3 594 _EP2CS = 0xe6a3 00E6A4 595 _EP4CS = 0xe6a4 00E6A5 596 _EP6CS = 0xe6a5 00E6A6 597 _EP8CS = 0xe6a6 00E6A7 598 _EP2FIFOFLGS = 0xe6a7 00E6A8 599 _EP4FIFOFLGS = 0xe6a8 00E6A9 600 _EP6FIFOFLGS = 0xe6a9 00E6AA 601 _EP8FIFOFLGS = 0xe6aa 00E6AB 602 _EP2FIFOBCH = 0xe6ab 00E6AC 603 _EP2FIFOBCL = 0xe6ac 00E6AD 604 _EP4FIFOBCH = 0xe6ad 00E6AE 605 _EP4FIFOBCL = 0xe6ae 00E6AF 606 _EP6FIFOBCH = 0xe6af 00E6B0 607 _EP6FIFOBCL = 0xe6b0 00E6B1 608 _EP8FIFOBCH = 0xe6b1 00E6B2 609 _EP8FIFOBCL = 0xe6b2 00E6B3 610 _SUDPTRH = 0xe6b3 00E6B4 611 _SUDPTRL = 0xe6b4 00E6B5 612 _SUDPTRCTL = 0xe6b5 00E6B8 613 _SETUPDAT = 0xe6b8 00E6C0 614 _GPIFWFSELECT = 0xe6c0 00E6C1 615 _GPIFIDLECS = 0xe6c1 00E6C2 616 _GPIFIDLECTL = 0xe6c2 00E6C3 617 _GPIFCTLCFG = 0xe6c3 00E6C4 618 _GPIFADRH = 0xe6c4 00E6C5 619 _GPIFADRL = 0xe6c5 00E6CE 620 _GPIFTCB3 = 0xe6ce 00E6CF 621 _GPIFTCB2 = 0xe6cf 00E6D0 622 _GPIFTCB1 = 0xe6d0 00E6D1 623 _GPIFTCB0 = 0xe6d1 00E6D2 624 _EP2GPIFFLGSEL = 0xe6d2 00E6D3 625 _EP2GPIFPFSTOP = 0xe6d3 00E6D4 626 _EP2GPIFTRIG = 0xe6d4 00E6DA 627 _EP4GPIFFLGSEL = 0xe6da 00E6DB 628 _EP4GPIFPFSTOP = 0xe6db 00E6DC 629 _EP4GPIFTRIG = 0xe6dc 00E6E2 630 _EP6GPIFFLGSEL = 0xe6e2 00E6E3 631 _EP6GPIFPFSTOP = 0xe6e3 00E6E4 632 _EP6GPIFTRIG = 0xe6e4 00E6EA 633 _EP8GPIFFLGSEL = 0xe6ea 00E6EB 634 _EP8GPIFPFSTOP = 0xe6eb 00E6EC 635 _EP8GPIFTRIG = 0xe6ec 00E6F0 636 _XGPIFSGLDATH = 0xe6f0 00E6F1 637 _XGPIFSGLDATLX = 0xe6f1 00E6F2 638 _XGPIFSGLDATLNOX = 0xe6f2 00E6F3 639 _GPIFREADYCFG = 0xe6f3 00E6F4 640 _GPIFREADYSTAT = 0xe6f4 00E6F5 641 _GPIFABORT = 0xe6f5 00E6C6 642 _FLOWSTATE = 0xe6c6 00E6C7 643 _FLOWLOGIC = 0xe6c7 00E6C8 644 _FLOWEQ0CTL = 0xe6c8 00E6C9 645 _FLOWEQ1CTL = 0xe6c9 00E6CA 646 _FLOWHOLDOFF = 0xe6ca 00E6CB 647 _FLOWSTB = 0xe6cb 00E6CC 648 _FLOWSTBEDGE = 0xe6cc 00E6CD 649 _FLOWSTBHPERIOD = 0xe6cd 00E60C 650 _GPIFHOLDAMOUNT = 0xe60c 00E67D 651 _UDMACRCH = 0xe67d 00E67E 652 _UDMACRCL = 0xe67e 00E67F 653 _UDMACRCQUAL = 0xe67f 00E6F8 654 _DBUG = 0xe6f8 00E6F9 655 _TESTCFG = 0xe6f9 00E6FA 656 _USBTEST = 0xe6fa 00E6FB 657 _CT1 = 0xe6fb 00E6FC 658 _CT2 = 0xe6fc 00E6FD 659 _CT3 = 0xe6fd 00E6FE 660 _CT4 = 0xe6fe 00E740 661 _EP0BUF = 0xe740 00E780 662 _EP1OUTBUF = 0xe780 00E7C0 663 _EP1INBUF = 0xe7c0 00F000 664 _EP2FIFOBUF = 0xf000 00F400 665 _EP4FIFOBUF = 0xf400 00F800 666 _EP6FIFOBUF = 0xf800 00FC00 667 _EP8FIFOBUF = 0xfc00 668 ;-------------------------------------------------------- 669 ; absolute external ram data 670 ;-------------------------------------------------------- 671 .area XABS (ABS,XDATA) 672 ;-------------------------------------------------------- 673 ; external initialized ram data 674 ;-------------------------------------------------------- 675 .area HOME (CODE) 676 .area GSINIT0 (CODE) 677 .area GSINIT1 (CODE) 678 .area GSINIT2 (CODE) 679 .area GSINIT3 (CODE) 680 .area GSINIT4 (CODE) 681 .area GSINIT5 (CODE) 682 .area GSINIT (CODE) 683 .area GSFINAL (CODE) 684 .area CSEG (CODE) 685 ;-------------------------------------------------------- 686 ; global & static initialisations 687 ;-------------------------------------------------------- 688 .area HOME (CODE) 689 .area GSINIT (CODE) 690 .area GSFINAL (CODE) 691 .area GSINIT (CODE) 692 ;-------------------------------------------------------- 693 ; Home 694 ;-------------------------------------------------------- 695 .area HOME (CODE) 696 .area HOME (CODE) 697 ;-------------------------------------------------------- 698 ; code 699 ;-------------------------------------------------------- 700 .area CSEG (CODE) 701 ;------------------------------------------------------------ 702 ;Allocation info for local variables in function 'hook_timer_tick' 703 ;------------------------------------------------------------ 704 ;isr_tick_handler Allocated to registers r6 r7 705 ;------------------------------------------------------------ 706 ; timer.c:39: hook_timer_tick (unsigned short isr_tick_handler) 707 ; ----------------------------------------- 708 ; function hook_timer_tick 709 ; ----------------------------------------- 000000 710 _hook_timer_tick: 000007 711 ar7 = 0x07 000006 712 ar6 = 0x06 000005 713 ar5 = 0x05 000004 714 ar4 = 0x04 000003 715 ar3 = 0x03 000002 716 ar2 = 0x02 000001 717 ar1 = 0x01 000000 718 ar0 = 0x00 000000 AE 82 [24] 719 mov r6,dpl 000002 AF 83 [24] 720 mov r7,dph 721 ; timer.c:41: ET2 = 0; // disable timer 2 interrupts 722 ; assignBit 000004 C2 AD [12] 723 clr _ET2 724 ; timer.c:42: hook_sv (SV_TIMER_2, isr_tick_handler); 000006 8E*00 [24] 725 mov _hook_sv_PARM_2,r6 000008 8F*01 [24] 726 mov (_hook_sv_PARM_2 + 1),r7 00000A 75 82 2B [24] 727 mov dpl,#0x2b 00000D 12r00r00 [24] 728 lcall _hook_sv 729 ; timer.c:44: RCAP2H = RELOAD_VALUE >> 8; // setup the auto reload value 000010 75 CB 63 [24] 730 mov _RCAP2H,#0x63 731 ; timer.c:45: RCAP2L = RELOAD_VALUE; 000013 75 CA C0 [24] 732 mov _RCAP2L,#0xc0 733 ; timer.c:47: T2CON = 0x04; // interrupt on overflow; reload; run 000016 75 C8 04 [24] 734 mov _T2CON,#0x04 735 ; timer.c:48: ET2 = 1; // enable timer 2 interrupts 736 ; assignBit 000019 D2 AD [12] 737 setb _ET2 738 ; timer.c:49: } 00001B 22 [24] 739 ret 740 .area CSEG (CODE) 741 .area CONST (CODE) 742 .area CABS (ABS,CODE)