Mode_Detect.lst
上传用户:xmyjxjd
上传日期:2013-05-04
资源大小:1517k
文件大小:371k
- 0128 L?0435:
- 0128 120000 E LCALL ?C?ULDIV
- 012B 8E00 E MOV Data,R6
- 012D 8F00 E MOV Data+01H,R7
- 012F 22 RET
- 0130 L?0436:
- 0130 18 DEC R0
- 0131 36 ADDC A,@R0
- 0132 7800 R MOV R0,#LOW usVsync+01H
- 0134 L?0437:
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 44
- 0134 FE MOV R6,A
- 0135 E6 MOV A,@R0
- 0136 247E ADD A,#07EH
- 0138 FD MOV R5,A
- 0139 18 DEC R0
- 013A E4 CLR A
- 013B 36 ADDC A,@R0
- 013C CD XCH A,R5
- 013D C3 CLR C
- 013E 9F SUBB A,R7
- 013F 22 RET
- 0140 L?0438:
- 0140 L?0439:
- 0140 7800 E MOV R0,#LOW usIPV_ACT_LEN
- 0142 L?0440:
- 0142 E6 MOV A,@R0
- 0143 FE MOV R6,A
- 0144 08 INC R0
- 0145 E6 MOV A,@R0
- 0146 FF MOV R7,A
- 0147 C3 CLR C
- 0148 22 RET
- 0149 L?0441:
- 0149 FB MOV R3,A
- 014A L?0442:
- 014A 7A04 MOV R2,#04H
- 014C F9 MOV R1,A
- 014D F8 MOV R0,A
- 014E 020000 E LJMP ?C?LMUL
- 0151 L?0443:
- 0151 7801 MOV R0,#01H
- 0153 L?0444:
- 0153 AF00 E MOV R7,Data+0FH
- 0155 AE00 E MOV R6,Data+0EH
- 0157 AD00 E MOV R5,Data+0DH
- 0159 AC00 E MOV R4,Data+0CH
- 015B 020000 E LJMP ?C?ULSHR
- 015E L?0445:
- 015E L?0446:
- 015E 7800 R MOV R0,#LOW usHsync
- 0160 E6 MOV A,@R0
- 0161 FE MOV R6,A
- 0162 08 INC R0
- 0163 E6 MOV A,@R0
- 0164 FF MOV R7,A
- 0165 22 RET
- 0166 L?0447:
- 0166 L?0448:
- 0166 7800 R MOV R0,#LOW ucMode_Curr
- 0168 E6 MOV A,@R0
- 0169 75F00A MOV B,#0AH
- 016C A4 MUL AB
- 016D 22 RET
- 016E L?0449:
- 016E E4 CLR A
- 016F F500 E MOV Data+01H,A
- 0171 750006 E MOV Data+02H,#06H
- 0174 7800 E MOV R0,#LOW usIPH_ACT_STA+01H
- 0176 L?0450:
- 0176 E6 MOV A,@R0
- 0177 F500 E MOV Data+03H,A
- 0179 18 DEC R0
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 45
- 017A E6 MOV A,@R0
- 017B F500 E MOV Data+04H,A
- 017D 22 RET
- 017E L?0451:
- 017E L?0452:
- 017E AE00 R MOV R6,usDispLen
- 0180 AF00 R MOV R7,usDispLen+01H
- 0182 AB07 MOV R3,AR7
- 0184 AA06 MOV R2,AR6
- 0186 E4 CLR A
- 0187 F9 MOV R1,A
- 0188 F8 MOV R0,A
- 0189 22 RET
- 018A L?0453:
- 018A FF MOV R7,A
- 018B 7A68 MOV R2,#068H
- 018D 7926 MOV R1,#026H
- 018F L?0454:
- 018F E4 CLR A
- 0190 FC MOV R4,A
- 0191 FD MOV R5,A
- 0192 FB MOV R3,A
- 0193 F8 MOV R0,A
- 0194 020000 E LJMP ?C?LMUL
- 0197 L?0455:
- 0197 75F00C MOV B,#0CH
- 019A EE MOV A,R6
- 019B A4 MUL AB
- 019C 2400 E ADD A,#LOW VGA_Mode
- 019E F582 MOV DPL,A
- 01A0 E5F0 MOV A,B
- 01A2 3400 E ADDC A,#HIGH VGA_Mode
- 01A4 F583 MOV DPH,A
- 01A6 7800 R MOV R0,#LOW usHsync
- 01A8 22 RET
- 01A9 L?0456:
- 01A9 7800 R MOV R0,#LOW usVsync
- 01AB L?0457:
- 01AB E6 MOV A,@R0
- 01AC FC MOV R4,A
- 01AD 08 INC R0
- 01AE E6 MOV A,@R0
- 01AF FD MOV R5,A
- 01B0 D3 SETB C
- 01B1 22 RET
- 01B2 L?0458:
- 01B2 FF MOV R7,A
- 01B3 24FF ADD A,#0FFH
- 01B5 FD MOV R5,A
- 01B6 EE MOV A,R6
- 01B7 34FF ADDC A,#0FFH
- 01B9 FC MOV R4,A
- 01BA E6 MOV A,@R0
- 01BB FA MOV R2,A
- 01BC 08 INC R0
- 01BD E6 MOV A,@R0
- 01BE FB MOV R3,A
- 01BF C3 CLR C
- 01C0 9D SUBB A,R5
- 01C1 EA MOV A,R2
- 01C2 9C SUBB A,R4
- 01C3 22 RET
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 46
- 01C4 L?0459:
- 01C4 7800 R MOV R0,#LOW ucMode_Curr
- 01C6 E6 MOV A,@R0
- 01C7 14 DEC A
- 01C8 13 RRC A
- 01C9 13 RRC A
- 01CA 13 RRC A
- 01CB 541F ANL A,#01FH
- 01CD 7800 R MOV R0,#LOW ucfrist
- 01CF F6 MOV @R0,A
- 01D0 FD MOV R5,A
- 01D1 7B01 MOV R3,#01H
- 01D3 7FAE MOV R7,#0AEH
- 01D5 22 RET
- 01D6 L?0460:
- 01D6 7C00 MOV R4,#00H
- 01D8 120000 E LCALL ?C?IMUL
- 01DB L?0461:
- 01DB 7800 R MOV R0,#LOW usHsync
- 01DD E6 MOV A,@R0
- 01DE FC MOV R4,A
- 01DF 08 INC R0
- 01E0 E6 MOV A,@R0
- 01E1 FD MOV R5,A
- 01E2 22 RET
- 01E3 L?0462:
- 01E3 75F00C MOV B,#0CH
- 01E6 EE MOV A,R6
- 01E7 A4 MUL AB
- 01E8 2400 E ADD A,#LOW VGA_Mode+06H
- 01EA F582 MOV DPL,A
- 01EC E5F0 MOV A,B
- 01EE 3400 E ADDC A,#HIGH VGA_Mode+06H
- 01F0 F583 MOV DPH,A
- 01F2 C3 CLR C
- 01F3 22 RET
- 01F4 L?0463:
- 01F4 7800 E MOV R0,#LOW usIPH_ACT_STA
- 01F6 A606 MOV @R0,AR6
- 01F8 08 INC R0
- 01F9 A607 MOV @R0,AR7
- 01FB 22 RET
- 01FC L?0464:
- 01FC C3 CLR C
- 01FD L?0465:
- 01FD E500 R MOV A,usDispLen+01H
- 01FF 7800 E MOV R0,#LOW usIPV_ACT_LEN+01H
- 0201 96 SUBB A,@R0
- 0202 E500 R MOV A,usDispLen
- 0204 18 DEC R0
- 0205 96 SUBB A,@R0
- 0206 22 RET
- 0207 L?0467:
- 0207 75F00C MOV B,#0CH
- 020A EE MOV A,R6
- 020B A4 MUL AB
- 020C 2400 E ADD A,#LOW VGA_Mode+02H
- 020E F582 MOV DPL,A
- 0210 E5F0 MOV A,B
- 0212 3400 E ADDC A,#HIGH VGA_Mode+02H
- 0214 F583 MOV DPH,A
- 0216 22 RET
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 47
- 0217 L?0468:
- 0217 L?0469:
- 0217 7800 R MOV R0,#LOW usVsync
- 0219 E6 MOV A,@R0
- 021A FE MOV R6,A
- 021B 08 INC R0
- 021C E6 MOV A,@R0
- 021D FF MOV R7,A
- 021E 22 RET
- 021F L?0470:
- 021F 7800 E MOV R0,#LOW ucV_Max_Margin
- 0221 E6 MOV A,@R0
- 0222 2B ADD A,R3
- 0223 FF MOV R7,A
- 0224 E4 CLR A
- 0225 3A ADDC A,R2
- 0226 FE MOV R6,A
- 0227 C3 CLR C
- 0228 747E MOV A,#07EH
- 022A 9F SUBB A,R7
- 022B 7401 MOV A,#01H
- 022D 9E SUBB A,R6
- 022E 22 RET
- 022F L?0471:
- 022F 7800 R MOV R0,#LOW usHsync
- 0231 A600 E MOV @R0,Data+02H
- 0233 08 INC R0
- 0234 A600 E MOV @R0,Data+03H
- 0236 7800 R MOV R0,#LOW usVsync
- 0238 A600 E MOV @R0,Data+04H
- 023A 08 INC R0
- 023B A600 E MOV @R0,Data+05H
- 023D 22 RET
- 023E L?0472:
- 023E 7910 MOV R1,#010H
- 0240 L?0473:
- 0240 FB MOV R3,A
- 0241 FA MOV R2,A
- 0242 F8 MOV R0,A
- 0243 020000 E LJMP ?C?LMUL
- 0246 L?0474:
- 0246 AE00 R MOV R6,DispLen
- 0248 AF00 R MOV R7,DispLen+01H
- 024A L?0475:
- 024A E4 CLR A
- 024B FC MOV R4,A
- 024C FD MOV R5,A
- 024D 020000 E LJMP ?C?LMUL
- 0250 L?0476:
- 0250 E500 E MOV A,Data
- 0252 7800 E MOV R0,#LOW usIPH_ACT_STA+01H
- 0254 L?0477:
- 0254 26 ADD A,@R0
- 0255 FF MOV R7,A
- 0256 E4 CLR A
- 0257 18 DEC R0
- 0258 36 ADDC A,@R0
- 0259 CF XCH A,R7
- 025A 22 RET
- 025B L?0478:
- 025B C3 CLR C
- 025C L?0479:
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 48
- 025C 748A MOV A,#08AH
- 025E 9500 E SUBB A,Data+01H
- 0260 E4 CLR A
- 0261 9500 E SUBB A,Data
- 0263 22 RET
- 0264 L?0480:
- 0264 E6 MOV A,@R0
- 0265 2401 ADD A,#01H
- 0267 FF MOV R7,A
- 0268 E4 CLR A
- 0269 33 RLC A
- 026A A2E7 MOV C,ACC.7
- 026C 13 RRC A
- 026D EF MOV A,R7
- 026E 13 RRC A
- 026F FF MOV R7,A
- 0270 22 RET
- 0271 L?0481:
- 0271 ED MOV A,R5
- 0272 2402 ADD A,#02H
- 0274 FB MOV R3,A
- 0275 E4 CLR A
- 0276 3C ADDC A,R4
- 0277 FA MOV R2,A
- 0278 C3 CLR C
- 0279 EB MOV A,R3
- 027A 9F SUBB A,R7
- 027B EA MOV A,R2
- 027C 9E SUBB A,R6
- 027D 22 RET
- 027E L?0482:
- 027E EF MOV A,R7
- 027F 2403 ADD A,#03H
- 0281 FF MOV R7,A
- 0282 E4 CLR A
- 0283 3E ADDC A,R6
- 0284 FE MOV R6,A
- 0285 D3 SETB C
- 0286 EB MOV A,R3
- 0287 9F SUBB A,R7
- 0288 EA MOV A,R2
- 0289 9E SUBB A,R6
- 028A 22 RET
- 028B L?0483:
- 028B 7BF4 MOV R3,#0F4H
- 028D F9 MOV R1,A
- 028E L?0484:
- 028E 7A01 MOV R2,#01H
- 0290 F8 MOV R0,A
- 0291 020000 E LJMP ?C?LMUL
- 0294 L?0485:
- 0294 L?0486:
- 0294 750005 E MOV Data,#05H
- 0297 E4 CLR A
- 0298 F500 E MOV Data+01H,A
- 029A 22 RET
- 029B L?0487:
- 029B 748A MOV A,#08AH
- 029D L?0488:
- 029D C3 CLR C
- 029E 9500 E SUBB A,Data+03H
- 02A0 E4 CLR A
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 49
- 02A1 9500 E SUBB A,Data+02H
- 02A3 22 RET
- 02A4 L?0489:
- 02A4 L?0490:
- 02A4 7800 R MOV R0,#LOW ucMode_Curr
- 02A6 E6 MOV A,@R0
- 02A7 FF MOV R7,A
- 02A8 75F00A MOV B,#0AH
- 02AB 22 RET
- 02AC L?0491:
- 02AC 7A60 MOV R2,#060H
- 02AE L?0492:
- 02AE FB MOV R3,A
- 02AF F9 MOV R1,A
- 02B0 F8 MOV R0,A
- 02B1 020000 E LJMP ?C?LMUL
- 02B4 L?0493:
- 02B4 L?0494:
- 02B4 E6 MOV A,@R0
- 02B5 24FE ADD A,#0FEH
- 02B7 18 DEC R0
- 02B8 E6 MOV A,@R0
- 02B9 34FF ADDC A,#0FFH
- 02BB 22 RET
- 02BC L?0498:
- 02BC E500 E MOV A,Data
- 02BE A2E3 MOV C,ACC.3
- 02C0 9200 R MOV bVpole_Curr,C
- 02C2 A2E2 MOV C,ACC.2
- 02C4 9200 R MOV bHpole_Curr,C
- 02C6 22 RET
- 02C7 L?0501:
- 02C7 D3 SETB C
- 02C8 E500 R MOV A,HS_Pulse+01H
- 02CA 942D SUBB A,#02DH
- 02CC E500 R MOV A,HS_Pulse
- 02CE 9400 SUBB A,#00H
- 02D0 22 RET
- 02D1 L?0502:
- 02D1 A4 MUL AB
- 02D2 2400 E ADD A,#LOW Mode_Preset+06H
- 02D4 F582 MOV DPL,A
- 02D6 E5F0 MOV A,B
- 02D8 3400 E ADDC A,#HIGH Mode_Preset+06H
- 02DA 22 RET
- 02DB L?0503:
- 02DB L?0504:
- 02DB 750007 E MOV Data,#07H
- 02DE E4 CLR A
- 02DF F500 E MOV Data+01H,A
- 02E1 22 RET
- 02E2 L?0505:
- 02E2 E500 E MOV A,Data+0FH
- 02E4 5401 ANL A,#01H
- 02E6 FF MOV R7,A
- 02E7 E4 CLR A
- 02E8 FE MOV R6,A
- 02E9 FD MOV R5,A
- 02EA FC MOV R4,A
- 02EB 22 RET
- 02EC L?0506:
- 02EC 75000E E MOV Data,#0EH
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 50
- 02EF E4 CLR A
- 02F0 F500 E MOV Data+01H,A
- 02F2 750075 E MOV Data+02H,#075H
- 02F5 22 RET
- 02F6 L?0507:
- 02F6 7900 E MOV R1,#LOW usIPV_ACT_STA+01H
- 02F8 E7 MOV A,@R1
- 02F9 7800 E MOV R0,#LOW usIPV_ACT_LEN+01H
- 02FB 26 ADD A,@R0
- 02FC FF MOV R7,A
- 02FD 19 DEC R1
- 02FE E7 MOV A,@R1
- 02FF 22 RET
- 0300 L?0508:
- 0300 C3 CLR C
- 0301 747E MOV A,#07EH
- 0303 7800 E MOV R0,#LOW ucDV_Delay
- 0305 96 SUBB A,@R0
- 0306 7900 E MOV R1,#LOW ucV_Max_Margin
- 0308 F7 MOV @R1,A
- 0309 22 RET
- ; FUNCTION Com0188 (END)
- ; FUNCTION Mode_Detector (BEGIN)
- ; SOURCE LINE # 18
- ; SOURCE LINE # 19
- ; SOURCE LINE # 21
- 0000 E500 E MOV A,stGUD1+01H
- 0002 5407 ANL A,#07H
- 0004 14 DEC A
- 0005 6003 JZ ?C0003
- 0007 04 INC A
- 0008 701B JNZ ?C0007
- ; SOURCE LINE # 22
- ; SOURCE LINE # 23
- ; SOURCE LINE # 24
- 000A ?C0003:
- ; SOURCE LINE # 26
- 000A A200 R MOV C,bHpole_Curr
- 000C 9200 R MOV bHpole_Prev,C
- ; SOURCE LINE # 27
- 000E A200 R MOV C,bVpole_Curr
- 0010 9200 R MOV bVpole_Prev,C
- ; SOURCE LINE # 29
- 0012 7800 R MOV R0,#LOW ucMode_Curr
- 0014 E6 MOV A,@R0
- 0015 FF MOV R7,A
- 0016 6003 JZ ?C0005
- 0018 B4FF05 CJNE A,#0FFH,?C0004
- 001B ?C0005:
- ; SOURCE LINE # 30
- 001B 120000 R LCALL Detect_Input_Mode
- 001E 8016 SJMP ?C0001
- 0020 ?C0004:
- ; SOURCE LINE # 32
- 0020 120000 R LCALL Check_Input_Mode
- ; SOURCE LINE # 33
- 0023 8011 SJMP ?C0001
- ; SOURCE LINE # 35
- 0025 ?C0007:
- ; SOURCE LINE # 36
- 0025 7800 R MOV R0,#LOW ucMode_Curr
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 51
- 0027 E6 MOV A,@R0
- 0028 FF MOV R7,A
- 0029 6003 JZ ?C0009
- 002B B4FF05 CJNE A,#0FFH,?C0008
- 002E ?C0009:
- ; SOURCE LINE # 37
- 002E 120000 R LCALL Detect_Video_Mode
- 0031 8003 SJMP ?C0001
- 0033 ?C0008:
- ; SOURCE LINE # 39
- 0033 120000 R LCALL Check_Video_Mode
- ; SOURCE LINE # 40
- ; SOURCE LINE # 41
- 0036 ?C0001:
- ; SOURCE LINE # 43
- 0036 020000 R LJMP Measure_Mode
- ; FUNCTION Mode_Detector (END)
- ; FUNCTION Measure_Mode (BEGIN)
- ; SOURCE LINE # 46
- ; SOURCE LINE # 47
- ; SOURCE LINE # 50
- 0000 E500 E MOV A,stGUD1+01H
- 0002 5407 ANL A,#07H
- 0004 14 DEC A
- 0005 6010 JZ ?C0017
- 0007 04 INC A
- 0008 700D JNZ ?C0017
- ; SOURCE LINE # 51
- ; SOURCE LINE # 52
- ; SOURCE LINE # 53
- 000A ?C0013:
- ; SOURCE LINE # 54
- 000A 7800 R MOV R0,#LOW ucSync_Type
- 000C E6 MOV A,@R0
- 000D 7004 JNZ ?C0014
- 000F 7D02 MOV R5,#02H
- 0011 8006 SJMP ?C0368
- 0013 ?C0014:
- 0013 7D32 MOV R5,#032H
- 0015 ?C0015:
- ; SOURCE LINE # 55
- 0015 8002 SJMP ?C0368
- ; SOURCE LINE # 57
- ; SOURCE LINE # 72
- 0017 ?C0017:
- ; SOURCE LINE # 73
- 0017 7D02 MOV R5,#02H
- 0019 ?C0368:
- 0019 7F4C MOV R7,#04CH
- 001B 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 74
- ; SOURCE LINE # 75
- ; SOURCE LINE # 77
- 001E ?C0018:
- 001E 22 RET
- ; FUNCTION Measure_Mode (END)
- ; FUNCTION _Measure_Source (BEGIN)
- ; SOURCE LINE # 83
- ;---- Variable 'SOURCE' assigned to Register 'R7' ----
- ; SOURCE LINE # 84
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 52
- ; SOURCE LINE # 85
- 0000 EF MOV A,R7
- 0001 14 DEC A
- 0002 600E JZ ?C0021
- 0004 14 DEC A
- 0005 6014 JZ ?C0022
- 0007 14 DEC A
- 0008 601A JZ ?C0023
- 000A 2403 ADD A,#03H
- 000C 7020 JNZ ?C0019
- ; SOURCE LINE # 86
- ; SOURCE LINE # 87
- 000E ?C0020:
- ; SOURCE LINE # 88
- 000E 7D01 MOV R5,#01H
- ; SOURCE LINE # 89
- 0010 8002 SJMP ?C0369
- ; SOURCE LINE # 90
- 0012 ?C0021:
- ; SOURCE LINE # 91
- 0012 7D03 MOV R5,#03H
- 0014 ?C0369:
- 0014 7F4A MOV R7,#04AH
- 0016 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 92
- 0019 8013 SJMP ?C0019
- ; SOURCE LINE # 93
- 001B ?C0022:
- ; SOURCE LINE # 94
- ; SOURCE LINE # 95
- 001B 120000 R LCALL L?0495
- 001E 7A00 E MOV R2,#HIGH AV_DETECT
- 0020 7900 E MOV R1,#LOW AV_DETECT
- ; SOURCE LINE # 96
- 0022 8007 SJMP ?C0370
- ; SOURCE LINE # 97
- 0024 ?C0023:
- ; SOURCE LINE # 98
- ; SOURCE LINE # 99
- 0024 120000 R LCALL L?0495
- 0027 7A00 E MOV R2,#HIGH SV_DETECT
- 0029 7900 E MOV R1,#LOW SV_DETECT
- 002B ?C0370:
- 002B 120000 E LCALL _I2CWrite
- ; SOURCE LINE # 100
- ; SOURCE LINE # 101
- 002E ?C0019:
- ; SOURCE LINE # 106
- 002E E500 E MOV A,stGUD1+01H
- 0030 5407 ANL A,#07H
- 0032 7009 JNZ ?C0024
- 0034 7800 R MOV R0,#LOW ucSync_Type
- 0036 E6 MOV A,@R0
- 0037 6004 JZ ?C0024
- ; SOURCE LINE # 107
- 0039 7D32 MOV R5,#032H
- 003B 8002 SJMP ?C0371
- 003D ?C0024:
- ; SOURCE LINE # 109
- 003D 7D02 MOV R5,#02H
- 003F ?C0371:
- 003F 7F4C MOV R7,#04CH
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 53
- 0041 120000 E LCALL _RTDSetByte
- 0044 ?C0025:
- ; SOURCE LINE # 111
- 0044 7F23 MOV R7,#023H
- 0046 020000 E LJMP _Delay_Xms
- ; SOURCE LINE # 115
- 0049 L?0495:
- 0049 7BFF MOV R3,#0FFH
- 004B 7A00 E MOV R2,#HIGH V_ENABLE
- 004D 7900 E MOV R1,#LOW V_ENABLE
- 004F 120000 E LCALL _I2CWrite
- 0052 7BFF MOV R3,#0FFH
- 0054 22 RET
- ; FUNCTION _Measure_Source (END)
- ; FUNCTION _VGA_Mode_Search (BEGIN)
- ; SOURCE LINE # 118
- 0000 8E00 R MOV HS_Pulse,R6
- 0002 8F00 R MOV HS_Pulse+01H,R7
- ; SOURCE LINE # 119
- ; SOURCE LINE # 121
- 0004 7D0C MOV R5,#0CH
- 0006 120000 R LCALL L?0460
- 0009 120000 E LCALL ?C?UIDIV
- 000C 8F00 E MOV Data,R7
- ; SOURCE LINE # 123
- ;---- Variable 'ucMode_Temp' assigned to Register 'R7' ----
- 000E 7FFF MOV R7,#0FFH
- ; SOURCE LINE # 126
- ;---- Variable 'm' assigned to Register 'R6' ----
- 0010 7E2C MOV R6,#02CH
- 0012 ?C0029:
- ; SOURCE LINE # 129
- ; SOURCE LINE # 130
- 0012 120000 R LCALL L?0455
- 0015 E6 MOV A,@R0
- 0016 FC MOV R4,A
- 0017 08 INC R0
- 0018 C3 CLR C
- 0019 120000 R LCALL L?0404
- 001C 4003 JC $ + 5H
- 001E 020000 R LJMP ?C0027
- 0021 120000 R LCALL L?0467
- 0024 D3 SETB C
- 0025 120000 R LCALL L?0405
- 0028 5003 JNC $ + 5H
- 002A 020000 R LJMP ?C0027
- ; SOURCE LINE # 131
- ; SOURCE LINE # 132
- 002D 120000 R LCALL L?0402
- 0030 4003 JC $ + 5H
- 0032 020000 R LJMP ?C0027
- 0035 120000 R LCALL L?0462
- 0038 120000 R LCALL L?0405
- 003B 5003 JNC $ + 5H
- 003D 020000 R LJMP ?C0027
- ; SOURCE LINE # 133
- ; SOURCE LINE # 134
- 0040 BE2C0E CJNE R6,#02CH,?C0032
- ; SOURCE LINE # 135
- ; SOURCE LINE # 136
- 0043 A200 R MOV C,bHpole_Curr
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 54
- 0045 7200 R ORL C,bVpole_Curr
- 0047 5003 JNC $ + 5H
- 0049 020000 R LJMP ?C0034
- 004C 7E2B MOV R6,#02BH
- ; SOURCE LINE # 137
- 004E 020000 R LJMP ?C0034
- 0051 ?C0032:
- ; SOURCE LINE # 138
- 0051 BE200E CJNE R6,#020H,?C0035
- ; SOURCE LINE # 139
- ; SOURCE LINE # 140
- 0054 A200 R MOV C,bHpole_Curr
- 0056 7200 R ORL C,bVpole_Curr
- 0058 5003 JNC $ + 5H
- 005A 020000 R LJMP ?C0034
- 005D 7E1F MOV R6,#01FH
- ; SOURCE LINE # 141
- 005F 020000 R LJMP ?C0034
- 0062 ?C0035:
- ; SOURCE LINE # 142
- 0062 EE MOV A,R6
- 0063 640E XRL A,#0EH
- 0065 702A JNZ ?C0038
- 0067 A200 R MOV C,bVpole_Curr
- 0069 300001 R JNB bHpole_Curr,?C0350
- 006C B3 CPL C
- 006D ?C0350:
- 006D 5022 JNC ?C0038
- ; SOURCE LINE # 143
- ; SOURCE LINE # 148
- 006F 30000F R JNB bHpole_Curr,?C0039
- ; SOURCE LINE # 149
- 0072 E500 E MOV A,Data
- 0074 6004 JZ ?C0040
- 0076 7D03 MOV R5,#03H
- 0078 8002 SJMP ?C0041
- 007A ?C0040:
- 007A 7D43 MOV R5,#043H
- 007C ?C0041:
- 007C AE05 MOV R6,AR5
- 007E 020000 R LJMP ?C0034
- 0081 ?C0039:
- ; SOURCE LINE # 151
- 0081 E500 E MOV A,stGUD1
- 0083 30E404 JNB ACC.4,?C0043
- 0086 7D04 MOV R5,#04H
- 0088 8002 SJMP ?C0044
- 008A ?C0043:
- 008A 7D44 MOV R5,#044H
- 008C ?C0044:
- 008C AE05 MOV R6,AR5
- ; SOURCE LINE # 153
- 008E 020000 R LJMP ?C0034
- 0091 ?C0038:
- ; SOURCE LINE # 154
- 0091 EE MOV A,R6
- 0092 640D XRL A,#0DH
- 0094 7028 JNZ ?C0046
- 0096 A200 R MOV C,bVpole_Curr
- 0098 300001 R JNB bHpole_Curr,?C0351
- 009B B3 CPL C
- 009C ?C0351:
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 55
- 009C 5020 JNC ?C0046
- ; SOURCE LINE # 155
- ; SOURCE LINE # 160
- 009E 30000E R JNB bHpole_Curr,?C0047
- ; SOURCE LINE # 161
- 00A1 E500 E MOV A,Data
- 00A3 6004 JZ ?C0048
- 00A5 7D01 MOV R5,#01H
- 00A7 8002 SJMP ?C0049
- 00A9 ?C0048:
- 00A9 7D41 MOV R5,#041H
- 00AB ?C0049:
- 00AB AE05 MOV R6,AR5
- 00AD 806C SJMP ?C0034
- 00AF ?C0047:
- ; SOURCE LINE # 163
- 00AF E500 E MOV A,stGUD1
- 00B1 30E404 JNB ACC.4,?C0051
- 00B4 7D02 MOV R5,#02H
- 00B6 8002 SJMP ?C0052
- 00B8 ?C0051:
- 00B8 7D42 MOV R5,#042H
- 00BA ?C0052:
- 00BA AE05 MOV R6,AR5
- ; SOURCE LINE # 165
- 00BC 805D SJMP ?C0034
- 00BE ?C0046:
- ; SOURCE LINE # 166
- 00BE BE0C13 CJNE R6,#0CH,?C0054
- ; SOURCE LINE # 167
- ; SOURCE LINE # 168
- 00C1 300007 R JNB bHpole_Curr,?C0055
- 00C4 200004 R JB bVpole_Curr,?C0055
- ; SOURCE LINE # 169
- 00C7 7E0A MOV R6,#0AH
- 00C9 8050 SJMP ?C0034
- 00CB ?C0055:
- ; SOURCE LINE # 170
- 00CB E500 E MOV A,stGUD1
- 00CD 30E44B JNB ACC.4,?C0034
- ; SOURCE LINE # 171
- 00D0 7E0B MOV R6,#0BH
- ; SOURCE LINE # 172
- 00D2 8047 SJMP ?C0034
- 00D4 ?C0054:
- ; SOURCE LINE # 173
- 00D4 EE MOV A,R6
- 00D5 6409 XRL A,#09H
- 00D7 701D JNZ ?C0059
- ; SOURCE LINE # 174
- ; SOURCE LINE # 175
- 00D9 300011 R JNB bHpole_Curr,?C0060
- 00DC 20000E R JB bVpole_Curr,?C0060
- ; SOURCE LINE # 176
- 00DF E500 E MOV A,Data
- 00E1 6004 JZ ?C0061
- 00E3 7D06 MOV R5,#06H
- 00E5 8002 SJMP ?C0062
- 00E7 ?C0061:
- 00E7 7D07 MOV R5,#07H
- 00E9 ?C0062:
- 00E9 AE05 MOV R6,AR5
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 56
- 00EB 802E SJMP ?C0034
- 00ED ?C0060:
- ; SOURCE LINE # 177
- 00ED E500 E MOV A,stGUD1
- 00EF 20E429 JB ACC.4,?C0034
- ; SOURCE LINE # 179
- 00F2 7E08 MOV R6,#08H
- ; SOURCE LINE # 180
- 00F4 8025 SJMP ?C0034
- 00F6 ?C0059:
- ; SOURCE LINE # 181
- 00F6 BE1B09 CJNE R6,#01BH,?C0066
- ; SOURCE LINE # 182
- ; SOURCE LINE # 183
- 00F9 120000 R LCALL L?0501
- 00FC 401D JC ?C0034
- ; SOURCE LINE # 184
- 00FE 7E1A MOV R6,#01AH
- ; SOURCE LINE # 185
- 0100 8019 SJMP ?C0034
- 0102 ?C0066:
- ; SOURCE LINE # 186
- 0102 BE1A09 CJNE R6,#01AH,?C0069
- ; SOURCE LINE # 187
- ; SOURCE LINE # 188
- 0105 120000 R LCALL L?0501
- 0108 5011 JNC ?C0034
- ; SOURCE LINE # 189
- 010A 7E1B MOV R6,#01BH
- ; SOURCE LINE # 190
- 010C 800D SJMP ?C0034
- 010E ?C0069:
- ; SOURCE LINE # 191
- 010E BE1E0A CJNE R6,#01EH,?C0034
- ; SOURCE LINE # 192
- ; SOURCE LINE # 193
- 0111 7800 R MOV R0,#LOW ucRefresh
- 0113 E6 MOV A,@R0
- 0114 D3 SETB C
- 0115 9447 SUBB A,#047H
- 0117 5002 JNC ?C0034
- ; SOURCE LINE # 194
- 0119 7E1D MOV R6,#01DH
- ; SOURCE LINE # 195
- 011B ?C0034:
- ; SOURCE LINE # 197
- 011B AF06 MOV R7,AR6
- ; SOURCE LINE # 198
- ; SOURCE LINE # 199
- ; SOURCE LINE # 200
- 011D ?C0027:
- ; SOURCE LINE # 201
- 011D 1E DEC R6
- 011E EE MOV A,R6
- 011F 6007 JZ ?C0028
- 0121 EF MOV A,R7
- 0122 F4 CPL A
- 0123 7003 JNZ $ + 5H
- 0125 020000 R LJMP ?C0029
- 0128 ?C0028:
- ; SOURCE LINE # 204
- 0128 EF MOV A,R7
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 57
- 0129 F4 CPL A
- 012A 703F JNZ ?C0075
- ; SOURCE LINE # 205
- ; SOURCE LINE # 206
- 012C 7800 E MOV R0,#LOW usIPV_ACT_LEN
- 012E F6 MOV @R0,A
- 012F 08 INC R0
- 0130 F6 MOV @R0,A
- ; SOURCE LINE # 208
- 0131 7E3A MOV R6,#03AH
- 0133 ?C0078:
- ; SOURCE LINE # 211
- ; SOURCE LINE # 212
- 0133 120000 R LCALL L?0402
- 0136 5028 JNC ?C0076
- 0138 120000 R LCALL L?0462
- 013B 120000 R LCALL L?0405
- 013E 4020 JC ?C0076
- ; SOURCE LINE # 213
- ; SOURCE LINE # 214
- 0140 EE MOV A,R6
- 0141 120000 R LCALL L?0420
- 0144 120000 R LCALL L?0432
- 0147 7800 E MOV R0,#LOW usIPV_ACT_LEN
- 0149 A604 MOV @R0,AR4
- 014B 08 INC R0
- 014C F6 MOV @R0,A
- ; SOURCE LINE # 216
- 014D 120000 R LCALL L?0455
- 0150 120000 R LCALL L?0403
- 0153 500B JNC ?C0076
- 0155 120000 R LCALL L?0467
- 0158 C3 CLR C
- 0159 120000 R LCALL L?0405
- 015C 4002 JC ?C0076
- ; SOURCE LINE # 217
- ; SOURCE LINE # 218
- 015E AF06 MOV R7,AR6
- ; SOURCE LINE # 219
- ; SOURCE LINE # 220
- ; SOURCE LINE # 221
- 0160 ?C0076:
- ; SOURCE LINE # 222
- 0160 1E DEC R6
- 0161 7433 MOV A,#033H
- 0163 D3 SETB C
- 0164 9E SUBB A,R6
- 0165 5004 JNC ?C0075
- 0167 EF MOV A,R7
- 0168 F4 CPL A
- 0169 60C8 JZ ?C0078
- ; SOURCE LINE # 223
- 016B ?C0075:
- ; SOURCE LINE # 225
- ; SOURCE LINE # 227
- 016B ?C0082:
- 016B 22 RET
- ; FUNCTION _VGA_Mode_Search (END)
- ; FUNCTION Partial_Display (BEGIN)
- ; SOURCE LINE # 229
- ; SOURCE LINE # 230
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 58
- ; SOURCE LINE # 233
- 0000 120000 R LCALL L?0438
- 0003 E4 CLR A
- 0004 9F SUBB A,R7
- 0005 7404 MOV A,#04H
- 0007 9E SUBB A,R6
- 0008 4003 JC $ + 5H
- 000A 020000 R LJMP ?C0083
- ; SOURCE LINE # 234
- ; SOURCE LINE # 238
- 000D 120000 R LCALL L?0412
- 0010 C004 PUSH AR4
- 0012 120000 R LCALL L?0397
- 0015 D000 POP AR0
- 0017 120000 E LCALL ?C?LMUL
- 001A C004 PUSH AR4
- 001C C005 PUSH AR5
- 001E C006 PUSH AR6
- 0020 C007 PUSH AR7
- 0022 900000 E MOV DPTR,#Mode_Preset+0262H
- 0025 120000 R LCALL L?0396
- 0028 120000 R LCALL L?0453
- 002B D003 POP AR3
- 002D D002 POP AR2
- 002F D001 POP AR1
- 0031 D000 POP AR0
- 0033 120000 R LCALL L?0434
- ; SOURCE LINE # 240
- 0036 120000 R LCALL L?0478
- 0039 504C JNC ?C0084
- ; SOURCE LINE # 241
- ; SOURCE LINE # 246
- 003B 120000 R LCALL L?0425
- 003E FE MOV R6,A
- 003F 120000 R LCALL L?0412
- 0042 C004 PUSH AR4
- 0044 120000 R LCALL L?0397
- 0047 D000 POP AR0
- 0049 120000 E LCALL ?C?LMUL
- 004C C004 PUSH AR4
- 004E C005 PUSH AR5
- 0050 C006 PUSH AR6
- 0052 C007 PUSH AR7
- 0054 900000 E MOV DPTR,#Mode_Preset+0262H
- 0057 120000 R LCALL L?0396
- 005A FF MOV R7,A
- 005B E4 CLR A
- 005C FC MOV R4,A
- 005D FD MOV R5,A
- 005E 7BA0 MOV R3,#0A0H
- 0060 7927 MOV R1,#027H
- 0062 120000 R LCALL L?0484
- 0065 D003 POP AR3
- 0067 D002 POP AR2
- 0069 D001 POP AR1
- 006B D000 POP AR0
- 006D 120000 E LCALL ?C?ULDIV
- 0070 8E00 E MOV Data+02H,R6
- 0072 8F00 E MOV Data+03H,R7
- ; SOURCE LINE # 248
- 0074 120000 R LCALL L?0487
- 0077 5009 JNC ?C0085
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 59
- ; SOURCE LINE # 249
- ; SOURCE LINE # 251
- 0079 7800 E MOV R0,#LOW usIPV_ACT_LEN
- 007B 7604 MOV @R0,#04H
- 007D 08 INC R0
- 007E 7600 MOV @R0,#00H
- ; SOURCE LINE # 252
- 0080 8008 SJMP ?C0083
- 0082 ?C0085:
- ; SOURCE LINE # 254
- ; SOURCE LINE # 255
- 0082 7500BD R MOV ucMode_Temp,#0BDH
- ; SOURCE LINE # 256
- ; SOURCE LINE # 257
- 0085 8003 SJMP ?C0083
- 0087 ?C0084:
- ; SOURCE LINE # 259
- 0087 75003D R MOV ucMode_Temp,#03DH
- ; SOURCE LINE # 260
- 008A ?C0083:
- ; SOURCE LINE # 262
- 008A 120000 R LCALL L?0438
- 008D E4 CLR A
- 008E 9F SUBB A,R7
- 008F 7404 MOV A,#04H
- 0091 9E SUBB A,R6
- 0092 5003 JNC $ + 5H
- 0094 020000 R LJMP ?C0088
- ; SOURCE LINE # 263
- ; SOURCE LINE # 265
- 0097 120000 R LCALL L?0413
- 009A C004 PUSH AR4
- 009C 120000 R LCALL L?0398
- 009F D000 POP AR0
- 00A1 120000 E LCALL ?C?LMUL
- 00A4 C004 PUSH AR4
- 00A6 C005 PUSH AR5
- 00A8 C006 PUSH AR6
- 00AA C007 PUSH AR7
- 00AC 900000 E MOV DPTR,#Mode_Preset+0258H
- 00AF 120000 R LCALL L?0396
- 00B2 120000 R LCALL L?0453
- 00B5 D003 POP AR3
- 00B7 D002 POP AR2
- 00B9 D001 POP AR1
- 00BB D000 POP AR0
- 00BD 120000 R LCALL L?0434
- ; SOURCE LINE # 267
- 00C0 120000 R LCALL L?0478
- 00C3 5075 JNC ?C0089
- ; SOURCE LINE # 268
- ; SOURCE LINE # 269
- 00C5 120000 R LCALL L?0425
- 00C8 FE MOV R6,A
- 00C9 C3 CLR C
- 00CA 7410 MOV A,#010H
- 00CC 9F SUBB A,R7
- 00CD 7404 MOV A,#04H
- 00CF 9E SUBB A,R6
- 00D0 4027 JC ?C0090
- ; SOURCE LINE # 270
- ; SOURCE LINE # 272
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 60
- 00D2 120000 R LCALL L?0413
- 00D5 C004 PUSH AR4
- 00D7 120000 R LCALL L?0398
- 00DA D000 POP AR0
- 00DC 120000 E LCALL ?C?LMUL
- 00DF C004 PUSH AR4
- 00E1 C005 PUSH AR5
- 00E3 C006 PUSH AR6
- 00E5 C007 PUSH AR7
- 00E7 900000 E MOV DPTR,#Mode_Preset+0258H
- 00EA 120000 R LCALL L?0396
- 00ED FF MOV R7,A
- 00EE E4 CLR A
- 00EF FC MOV R4,A
- 00F0 FD MOV R5,A
- 00F1 7BA0 MOV R3,#0A0H
- 00F3 7A01 MOV R2,#01H
- 00F5 7927 MOV R1,#027H
- ; SOURCE LINE # 273
- 00F7 801F SJMP ?C0372
- 00F9 ?C0090:
- ; SOURCE LINE # 275
- ; SOURCE LINE # 277
- 00F9 7800 R MOV R0,#LOW usHsync
- 00FB 120000 R LCALL L?0400
- 00FE 120000 R LCALL L?0414
- 0101 C004 PUSH AR4
- 0103 C005 PUSH AR5
- 0105 C006 PUSH AR6
- 0107 C007 PUSH AR7
- 0109 900000 E MOV DPTR,#Mode_Preset+0258H
- 010C 120000 R LCALL L?0396
- 010F FF MOV R7,A
- 0110 E4 CLR A
- 0111 FC MOV R4,A
- 0112 FD MOV R5,A
- 0113 7B9A MOV R3,#09AH
- 0115 7A09 MOV R2,#09H
- 0117 F9 MOV R1,A
- 0118 ?C0372:
- 0118 F8 MOV R0,A
- 0119 120000 E LCALL ?C?LMUL
- 011C D003 POP AR3
- 011E D002 POP AR2
- 0120 D001 POP AR1
- 0122 D000 POP AR0
- 0124 120000 E LCALL ?C?ULDIV
- 0127 8E00 E MOV Data+02H,R6
- 0129 8F00 E MOV Data+03H,R7
- ; SOURCE LINE # 278
- 012B ?C0091:
- ; SOURCE LINE # 280
- 012B 120000 R LCALL L?0487
- 012E 5005 JNC ?C0092
- ; SOURCE LINE # 281
- 0130 7500FF R MOV ucMode_Temp,#0FFH
- 0133 8008 SJMP ?C0088
- 0135 ?C0092:
- ; SOURCE LINE # 283
- 0135 7500BC R MOV ucMode_Temp,#0BCH
- ; SOURCE LINE # 284
- 0138 8003 SJMP ?C0088
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 61
- 013A ?C0089:
- ; SOURCE LINE # 286
- 013A 75003C R MOV ucMode_Temp,#03CH
- ; SOURCE LINE # 287
- 013D ?C0088:
- ; SOURCE LINE # 289
- 013D AF00 R MOV R7,ucMode_Temp
- ; SOURCE LINE # 291
- 013F ?C0095:
- 013F 22 RET
- ; FUNCTION Partial_Display (END)
- ; FUNCTION Sync_Type_Switch (BEGIN)
- ; SOURCE LINE # 293
- ; SOURCE LINE # 294
- ; SOURCE LINE # 295
- 0000 7800 R MOV R0,#LOW ucMode_Curr
- 0002 E6 MOV A,@R0
- 0003 7032 JNZ ?C0101
- ; SOURCE LINE # 296
- ; SOURCE LINE # 297
- 0005 7800 R MOV R0,#LOW ucSync_Type
- 0007 E6 MOV A,@R0
- 0008 B4100C CJNE A,#010H,?C0097
- ; SOURCE LINE # 298
- ; SOURCE LINE # 299
- 000B 7E00 E MOV R6,#HIGH VGA_SET_SS
- 000D 7F00 E MOV R7,#LOW VGA_SET_SS
- ; SOURCE LINE # 301
- ; SOURCE LINE # 302
- 000F 120000 R LCALL L?0496
- ; SOURCE LINE # 303
- 0012 E4 CLR A
- 0013 7800 R MOV R0,#LOW ucSync_Type
- 0015 F6 MOV @R0,A
- ; SOURCE LINE # 305
- 0016 22 RET
- 0017 ?C0097:
- ; SOURCE LINE # 306
- 0017 7800 R MOV R0,#LOW ucSync_Type
- 0019 E6 MOV A,@R0
- 001A 700C JNZ ?C0099
- ; SOURCE LINE # 307
- ; SOURCE LINE # 308
- 001C 7E00 E MOV R6,#HIGH VGA_SET_SOG
- 001E 7F00 E MOV R7,#LOW VGA_SET_SOG
- ; SOURCE LINE # 310
- ; SOURCE LINE # 311
- 0020 120000 R LCALL L?0496
- ; SOURCE LINE # 312
- 0023 7800 R MOV R0,#LOW ucSync_Type
- 0025 7620 MOV @R0,#020H
- ; SOURCE LINE # 316
- 0027 22 RET
- 0028 ?C0099:
- ; SOURCE LINE # 318
- ; SOURCE LINE # 319
- 0028 7E00 E MOV R6,#HIGH VGA_SET_CS
- 002A 7F00 E MOV R7,#LOW VGA_SET_CS
- 002C 120000 E LCALL _RTDCodeW
- ; SOURCE LINE # 321
- 002F D200 R SETB bVpole_Curr
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 62
- ; SOURCE LINE # 322
- 0031 D200 R SETB bHpole_Curr
- ; SOURCE LINE # 323
- 0033 7800 R MOV R0,#LOW ucSync_Type
- 0035 7610 MOV @R0,#010H
- ; SOURCE LINE # 327
- ; SOURCE LINE # 328
- ; SOURCE LINE # 329
- 0037 ?C0101:
- 0037 22 RET
- 0038 L?0496:
- 0038 120000 E LCALL _RTDCodeW
- 003B D200 R SETB bVpole_Curr
- 003D D200 R SETB bHpole_Curr
- 003F 22 RET
- ; FUNCTION Sync_Type_Switch (END)
- ; FUNCTION Sync_Type_Confirm (BEGIN)
- ; SOURCE LINE # 331
- ; SOURCE LINE # 332
- ; SOURCE LINE # 426
- 0000 22 RET
- ; FUNCTION Sync_Type_Confirm (END)
- ; FUNCTION Detect_Input_Mode (BEGIN)
- ; SOURCE LINE # 430
- ; SOURCE LINE # 431
- ; SOURCE LINE # 435
- 0000 E4 CLR A
- 0001 FB MOV R3,A
- 0002 7D09 MOV R5,#09H
- 0004 7F4C MOV R7,#04CH
- 0006 120000 E LCALL _RTDRead
- ; SOURCE LINE # 437
- 0009 E500 E MOV A,Data
- 000B 30E114 JNB ACC.1,?C0103
- ; SOURCE LINE # 438
- ; SOURCE LINE # 440
- 000E E500 E MOV A,stGUD1+01H
- 0010 5407 ANL A,#07H
- 0012 7004 JNZ ?C0104
- 0014 7D20 MOV R5,#020H
- 0016 8002 SJMP ?C0105
- 0018 ?C0104:
- 0018 7D00 MOV R5,#00H
- 001A ?C0105:
- 001A 7F4C MOV R7,#04CH
- 001C 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 443
- ; SOURCE LINE # 444
- 001F 020000 R LJMP ?C0373
- 0022 ?C0103:
- ; SOURCE LINE # 446
- ; SOURCE LINE # 462
- 0022 120000 R LCALL L?0445
- 0025 7800 R MOV R0,#LOW usStdHS
- 0027 A606 MOV @R0,AR6
- 0029 08 INC R0
- 002A A607 MOV @R0,AR7
- ; SOURCE LINE # 463
- 002C 120000 R LCALL L?0468
- 002F 7800 R MOV R0,#LOW usStdVS
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 63
- 0031 A606 MOV @R0,AR6
- 0033 08 INC R0
- 0034 A607 MOV @R0,AR7
- ; SOURCE LINE # 465
- ; SOURCE LINE # 466
- 0036 120000 R LCALL L?0498
- ; SOURCE LINE # 468
- ; SOURCE LINE # 469
- ; SOURCE LINE # 470
- ; SOURCE LINE # 471
- ; SOURCE LINE # 472
- ; SOURCE LINE # 473
- 0039 120000 R LCALL L?0428
- ; SOURCE LINE # 475
- ; SOURCE LINE # 476
- 003C 120000 R LCALL L?0471
- ; SOURCE LINE # 478
- 003F E500 E MOV A,stGUD1+01H
- 0041 5407 ANL A,#07H
- 0043 7006 JNZ ?C0107
- ; SOURCE LINE # 479
- 0045 850000 R MOV usHS_Pulse,Data+06H
- 0048 850000 R MOV usHS_Pulse+01H,Data+07H
- 004B ?C0107:
- ; SOURCE LINE # 485
- 004B 7800 R MOV R0,#LOW usHsync
- 004D 120000 R LCALL L?0400
- 0050 C004 PUSH AR4
- 0052 120000 R LCALL L?0411
- 0055 120000 R LCALL L?0468
- 0058 E4 CLR A
- 0059 D000 POP AR0
- ; SOURCE LINE # 486
- 005B 120000 R LCALL L?0418
- ; SOURCE LINE # 487
- 005E 30E005 JNB ACC.0,?C0108
- 0061 120000 R LCALL L?0480
- 0064 8006 SJMP ?C0109
- 0066 ?C0108:
- 0066 7800 R MOV R0,#LOW ucRefresh
- 0068 E6 MOV A,@R0
- 0069 C3 CLR C
- 006A 13 RRC A
- 006B FF MOV R7,A
- 006C ?C0109:
- 006C 7800 R MOV R0,#LOW ucRefresh
- 006E A607 MOV @R0,AR7
- ; SOURCE LINE # 490
- 0070 120000 R LCALL L?0445
- 0073 7800 R MOV R0,#LOW usStdHS
- 0075 120000 R LCALL L?0457
- 0078 9F SUBB A,R7
- 0079 EC MOV A,R4
- 007A 9E SUBB A,R6
- 007B 500C JNC ?C0110
- 007D 120000 R LCALL L?0481
- 0080 4007 JC ?C0110
- 0082 7800 R MOV R0,#LOW usHsync
- 0084 A604 MOV @R0,AR4
- 0086 08 INC R0
- 0087 A605 MOV @R0,AR5
- 0089 ?C0110:
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 64
- ; SOURCE LINE # 491
- 0089 120000 R LCALL L?0469
- 008C 7800 R MOV R0,#LOW usStdVS
- 008E 120000 R LCALL L?0457
- 0091 9F SUBB A,R7
- 0092 EC MOV A,R4
- 0093 9E SUBB A,R6
- 0094 500C JNC ?C0111
- 0096 120000 R LCALL L?0481
- 0099 4007 JC ?C0111
- 009B 7800 R MOV R0,#LOW usVsync
- 009D A604 MOV @R0,AR4
- 009F 08 INC R0
- 00A0 A605 MOV @R0,AR5
- 00A2 ?C0111:
- ; SOURCE LINE # 494
- 00A2 A200 R MOV C,bVpole_Curr
- 00A4 300001 R JNB bVpole_Prev,?C0352
- 00A7 B3 CPL C
- 00A8 ?C0352:
- 00A8 4008 JC ?C0113
- 00AA A200 R MOV C,bHpole_Curr
- 00AC 300001 R JNB bHpole_Prev,?C0353
- 00AF B3 CPL C
- 00B0 ?C0353:
- 00B0 5044 JNC ?C0112
- 00B2 ?C0113:
- ; SOURCE LINE # 495
- ; SOURCE LINE # 496
- 00B2 7B01 MOV R3,#01H
- 00B4 7D01 MOV R5,#01H
- 00B6 7F05 MOV R7,#05H
- 00B8 120000 E LCALL _RTDRead
- ; SOURCE LINE # 498
- 00BB E500 E MOV A,stGUD1+01H
- 00BD 5407 ANL A,#07H
- 00BF FF MOV R7,A
- 00C0 7019 JNZ ?C0114
- ; SOURCE LINE # 499
- ; SOURCE LINE # 500
- 00C2 5300D7 E ANL Data,#0D7H
- ; SOURCE LINE # 502
- 00C5 200003 R JB bHpole_Curr,?C0115
- 00C8 430020 E ORL Data,#020H
- 00CB ?C0115:
- ; SOURCE LINE # 504
- 00CB 200008 R JB bVpole_Curr,?C0116
- 00CE 7800 R MOV R0,#LOW ucSync_Type
- 00D0 E6 MOV A,@R0
- 00D1 7003 JNZ ?C0116
- 00D3 430008 E ORL Data,#08H
- 00D6 ?C0116:
- ; SOURCE LINE # 506
- 00D6 7500FF R MOV ucMode_Temp,#0FFH
- ; SOURCE LINE # 507
- 00D9 8012 SJMP ?C0117
- 00DB ?C0114:
- ; SOURCE LINE # 508
- 00DB BF010F CJNE R7,#01H,?C0117
- ; SOURCE LINE # 509
- ; SOURCE LINE # 510
- 00DE 5300F3 E ANL Data,#0F3H
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 65
- ; SOURCE LINE # 512
- 00E1 200003 R JB bVpole_Curr,?C0119
- 00E4 430008 E ORL Data,#08H
- 00E7 ?C0119:
- ; SOURCE LINE # 513
- 00E7 200003 R JB bHpole_Curr,?C0117
- 00EA 430004 E ORL Data,#04H
- ; SOURCE LINE # 514
- 00ED ?C0117:
- ; SOURCE LINE # 515
- 00ED AD00 E MOV R5,Data
- 00EF 7F05 MOV R7,#05H
- 00F1 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 518
- 00F4 8074 SJMP ?C0106
- 00F6 ?C0112:
- ; SOURCE LINE # 520
- ; SOURCE LINE # 521
- 00F6 120000 R LCALL L?0446
- 00F9 D3 SETB C
- 00FA 74FF MOV A,#0FFH
- 00FC 9F SUBB A,R7
- 00FD 7407 MOV A,#07H
- 00FF 9E SUBB A,R6
- 0100 4013 JC ?C0123
- 0102 120000 R LCALL L?0456
- 0105 74FF MOV A,#0FFH
- 0107 9D SUBB A,R5
- 0108 7407 MOV A,#07H
- 010A 9C SUBB A,R4
- 010B 4008 JC ?C0123
- 010D EF MOV A,R7
- 010E 4E ORL A,R6
- 010F 6004 JZ ?C0123
- 0111 ED MOV A,R5
- 0112 4C ORL A,R4
- 0113 7005 JNZ ?C0122
- 0115 ?C0123:
- ; SOURCE LINE # 522
- ; SOURCE LINE # 523
- 0115 ?C0373:
- 0115 E4 CLR A
- 0116 F500 R MOV ucMode_Temp,A
- ; SOURCE LINE # 524
- 0118 8050 SJMP ?C0106
- 011A ?C0122:
- ; SOURCE LINE # 526
- ; SOURCE LINE # 527
- 011A E500 E MOV A,stGUD1+01H
- 011C 5407 ANL A,#07H
- 011E 7009 JNZ ?C0125
- 0120 AF00 R MOV R7,usHS_Pulse+01H
- 0122 AE00 R MOV R6,usHS_Pulse
- 0124 120000 R LCALL _VGA_Mode_Search
- 0127 8002 SJMP ?C0126
- 0129 ?C0125:
- 0129 7FFF MOV R7,#0FFH
- 012B ?C0126:
- 012B 8F00 R MOV ucMode_Temp,R7
- ; SOURCE LINE # 530
- 012D 7800 R MOV R0,#LOW ucRefresh
- 012F E6 MOV A,@R0
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 66
- 0130 FF MOV R7,A
- 0131 7430 MOV A,#030H
- 0133 D3 SETB C
- 0134 9F SUBB A,R7
- 0135 5006 JNC ?C0128
- 0137 744C MOV A,#04CH
- 0139 C3 CLR C
- 013A 9F SUBB A,R7
- 013B 5005 JNC ?C0127
- 013D ?C0128:
- ; SOURCE LINE # 531
- ; SOURCE LINE # 532
- 013D 7500FF R MOV ucMode_Temp,#0FFH
- ; SOURCE LINE # 533
- 0140 8028 SJMP ?C0106
- 0142 ?C0127:
- ; SOURCE LINE # 534
- 0142 E500 R MOV A,ucMode_Temp
- 0144 B4FF14 CJNE A,#0FFH,?C0130
- 0147 7800 E MOV R0,#LOW usIPV_ACT_LEN+01H
- 0149 E6 MOV A,@R0
- 014A 18 DEC R0
- 014B 46 ORL A,@R0
- 014C 600D JZ ?C0130
- 014E E500 E MOV A,stGUD1+01H
- 0150 5407 ANL A,#07H
- 0152 7007 JNZ ?C0130
- ; SOURCE LINE # 535
- ; SOURCE LINE # 536
- 0154 120000 R LCALL Partial_Display
- 0157 8F00 R MOV ucMode_Temp,R7
- ; SOURCE LINE # 537
- 0159 800F SJMP ?C0106
- 015B ?C0130:
- ; SOURCE LINE # 538
- 015B E500 E MOV A,stGUD1+01H
- 015D 5407 ANL A,#07H
- 015F FF MOV R7,A
- 0160 BF0107 CJNE R7,#01H,?C0106
- ; SOURCE LINE # 539
- 0163 AF00 R MOV R7,ucMode_Temp
- 0165 120000 R LCALL _Seek_DVI_Mode
- 0168 8F00 R MOV ucMode_Temp,R7
- ; SOURCE LINE # 542
- ; SOURCE LINE # 543
- ; SOURCE LINE # 544
- 016A ?C0106:
- ; SOURCE LINE # 546
- 016A E500 E MOV A,stGUD1+01H
- 016C 5407 ANL A,#07H
- 016E FB MOV R3,A
- 016F 7019 JNZ ?C0133
- ; SOURCE LINE # 547
- ; SOURCE LINE # 548
- 0171 7800 R MOV R0,#LOW ucSync_Type
- 0173 E6 MOV A,@R0
- 0174 B42013 CJNE A,#020H,?C0133
- 0177 AE00 R MOV R6,usHS_Pulse
- 0179 AF00 R MOV R7,usHS_Pulse+01H
- 017B 7D07 MOV R5,#07H
- 017D 120000 R LCALL L?0460
- 0180 120000 E LCALL ?C?UIDIV
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 67
- 0183 EF MOV A,R7
- 0184 4E ORL A,R6
- 0185 6003 JZ ?C0133
- ; SOURCE LINE # 549
- ; SOURCE LINE # 552
- 0187 E4 CLR A
- 0188 F500 R MOV ucMode_Temp,A
- ; SOURCE LINE # 553
- ; SOURCE LINE # 554
- 018A ?C0133:
- ; SOURCE LINE # 557
- 018A E500 R MOV A,ucMode_Temp
- 018C F4 CPL A
- 018D 6004 JZ ?C0136
- 018F E500 R MOV A,ucMode_Temp
- 0191 7069 JNZ ?C0135
- 0193 ?C0136:
- ; SOURCE LINE # 558
- ; SOURCE LINE # 560
- 0193 EB MOV A,R3
- 0194 7009 JNZ ?C0137
- ; SOURCE LINE # 561
- ; SOURCE LINE # 562
- 0196 7800 R MOV R0,#LOW ucSync_Type
- 0198 E6 MOV A,@R0
- 0199 B42003 CJNE A,#020H,?C0137
- ; SOURCE LINE # 563
- 019C E4 CLR A
- 019D F500 R MOV ucMode_Temp,A
- ; SOURCE LINE # 564
- 019F ?C0137:
- ; SOURCE LINE # 566
- 019F 7800 R MOV R0,#LOW ucMode_Found
- 01A1 E6 MOV A,@R0
- 01A2 FF MOV R7,A
- 01A3 F4 CPL A
- 01A4 6007 JZ ?C0139
- 01A6 EF MOV A,R7
- 01A7 6004 JZ ?C0139
- 01A9 E4 CLR A
- 01AA 7800 R MOV R0,#LOW ucMode_Times
- 01AC F6 MOV @R0,A
- 01AD ?C0139:
- ; SOURCE LINE # 568
- 01AD 7800 R MOV R0,#LOW ucMode_Found
- 01AF A600 R MOV @R0,ucMode_Temp
- ; SOURCE LINE # 570
- 01B1 7405 MOV A,#05H
- 01B3 D3 SETB C
- 01B4 7800 R MOV R0,#LOW ucMode_Times
- 01B6 96 SUBB A,@R0
- 01B7 4013 JC ?C0140
- ; SOURCE LINE # 571
- ; SOURCE LINE # 573
- 01B9 06 INC @R0
- ; SOURCE LINE # 575
- 01BA E500 E MOV A,stGUD1+01H
- 01BC 5407 ANL A,#07H
- 01BE 6401 XRL A,#01H
- 01C0 6003 JZ $ + 5H
- 01C2 020000 R LJMP ?C0157
- ; SOURCE LINE # 576
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 68
- ; SOURCE LINE # 578
- 01C5 7D03 MOV R5,#03H
- 01C7 7FFF MOV R7,#0FFH
- 01C9 020000 E LJMP _RTDSetByte
- ; SOURCE LINE # 579
- ; SOURCE LINE # 580
- 01CC ?C0140:
- ; SOURCE LINE # 582
- ; SOURCE LINE # 583
- 01CC E500 E MOV A,stGUD1+01H
- 01CE 5407 ANL A,#07H
- 01D0 FF MOV R7,A
- 01D1 BF0107 CJNE R7,#01H,?C0143
- ; SOURCE LINE # 584
- ; SOURCE LINE # 586
- 01D4 E4 CLR A
- 01D5 FD MOV R5,A
- 01D6 7FFF MOV R7,#0FFH
- 01D8 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 587
- 01DB ?C0143:
- ; SOURCE LINE # 589
- 01DB 7800 R MOV R0,#LOW ucMode_Found
- 01DD E6 MOV A,@R0
- 01DE FF MOV R7,A
- 01DF 7800 R MOV R0,#LOW ucMode_Curr
- 01E1 E6 MOV A,@R0
- 01E2 B50703 CJNE A,AR7,?C0144
- 01E5 D3 SETB C
- 01E6 8001 SJMP ?C0145
- 01E8 ?C0144:
- 01E8 C3 CLR C
- 01E9 ?C0145:
- 01E9 9200 R MOV bStable,C
- ; SOURCE LINE # 590
- 01EB 7800 R MOV R0,#LOW ucMode_Curr
- 01ED A607 MOV @R0,AR7
- ; SOURCE LINE # 591
- 01EF 7800 R MOV R0,#LOW ucMode_Times
- 01F1 7603 MOV @R0,#03H
- ; SOURCE LINE # 593
- 01F3 E500 E MOV A,stGUD1+01H
- 01F5 5407 ANL A,#07H
- 01F7 7059 JNZ ?C0157
- ; SOURCE LINE # 594
- 01F9 020000 R LJMP Sync_Type_Switch
- ; SOURCE LINE # 596
- ; SOURCE LINE # 597
- 01FC ?C0135:
- ; SOURCE LINE # 599
- ; SOURCE LINE # 600
- 01FC 7800 R MOV R0,#LOW ucMode_Found
- 01FE E6 MOV A,@R0
- 01FF 6500 R XRL A,ucMode_Temp
- 0201 6011 JZ ?C0148
- ; SOURCE LINE # 601
- ; SOURCE LINE # 602
- 0203 7800 R MOV R0,#LOW ucMode_Times
- 0205 7601 MOV @R0,#01H
- ; SOURCE LINE # 603
- 0207 7800 R MOV R0,#LOW ucMode_Found
- 0209 A600 R MOV @R0,ucMode_Temp
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 69
- ; SOURCE LINE # 605
- 020B E500 E MOV A,stGUD1+01H
- 020D 5407 ANL A,#07H
- 020F 7041 JNZ ?C0157
- ; SOURCE LINE # 606
- 0211 020000 R LJMP Sync_Type_Confirm
- ; SOURCE LINE # 607
- 0214 ?C0148:
- ; SOURCE LINE # 609
- ; SOURCE LINE # 610
- 0214 E500 E MOV A,stGUD1+01H
- 0216 5407 ANL A,#07H
- 0218 ?C0151:
- 0218 7F03 MOV R7,#03H
- 021A ?C0152:
- 021A 8F00 E MOV Data,R7
- ; SOURCE LINE # 612
- 021C E500 E MOV A,Data
- 021E D3 SETB C
- 021F 7800 R MOV R0,#LOW ucMode_Times
- 0221 96 SUBB A,@R0
- 0222 4002 JC ?C0153
- ; SOURCE LINE # 613
- ; SOURCE LINE # 614
- 0224 06 INC @R0
- ; SOURCE LINE # 615
- 0225 22 RET
- 0226 ?C0153:
- ; SOURCE LINE # 617
- ; SOURCE LINE # 619
- 0226 900000 E MOV DPTR,#M512_Port51
- 0229 7401 MOV A,#01H
- 022B F0 MOVX @DPTR,A
- ; SOURCE LINE # 621
- 022C 7D40 MOV R5,#040H
- 022E 7F02 MOV R7,#02H
- 0230 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 622
- 0233 7E00 E MOV R6,#HIGH OSD_Reset
- 0235 7F00 E MOV R7,#LOW OSD_Reset
- 0237 120000 E LCALL _RTDOSDW
- ; SOURCE LINE # 624
- 023A 7800 R MOV R0,#LOW ucMode_Found
- 023C E6 MOV A,@R0
- 023D 7800 R MOV R0,#LOW ucMode_Curr
- 023F F6 MOV @R0,A
- ; SOURCE LINE # 625
- 0240 E4 CLR A
- 0241 7800 R MOV R0,#LOW ucMode_Times
- 0243 F6 MOV @R0,A
- ; SOURCE LINE # 626
- 0244 C200 R CLR bStable
- ; SOURCE LINE # 628
- 0246 E500 E MOV A,stGUD1+01H
- 0248 5407 ANL A,#07H
- 024A 7003 JNZ ?C0155
- ; SOURCE LINE # 629
- 024C 020000 R LJMP Display_VGA_Set
- 024F ?C0155:
- ; SOURCE LINE # 631
- 024F 120000 R LCALL Display_DVI_Set
- ; SOURCE LINE # 646
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 70
- ; SOURCE LINE # 647
- ; SOURCE LINE # 648
- ; SOURCE LINE # 649
- 0252 ?C0157:
- 0252 22 RET
- ; FUNCTION Detect_Input_Mode (END)
- ; FUNCTION Check_Input_Mode (BEGIN)
- ; SOURCE LINE # 652
- ; SOURCE LINE # 653
- ; SOURCE LINE # 654
- 0000 E4 CLR A
- 0001 FB MOV R3,A
- 0002 7D05 MOV R5,#05H
- 0004 7F4C MOV R7,#04CH
- 0006 120000 E LCALL _RTDRead
- ; SOURCE LINE # 656
- 0009 E500 E MOV A,Data
- 000B 30E110 JNB ACC.1,?C0158
- ; SOURCE LINE # 657
- ; SOURCE LINE # 658
- 000E E500 E MOV A,stGUD1+01H
- 0010 5407 ANL A,#07H
- 0012 7004 JNZ ?C0159
- 0014 7D20 MOV R5,#020H
- 0016 8002 SJMP ?C0160
- 0018 ?C0159:
- 0018 7D00 MOV R5,#00H
- 001A ?C0160:
- 001A 7F4C MOV R7,#04CH
- ; SOURCE LINE # 660
- ; SOURCE LINE # 661
- 001C 8055 SJMP ?C0374
- 001E ?C0158:
- ; SOURCE LINE # 663
- ; SOURCE LINE # 664
- ; SOURCE LINE # 665
- 001E 120000 R LCALL L?0498
- ; SOURCE LINE # 667
- ; SOURCE LINE # 668
- ; SOURCE LINE # 669
- ; SOURCE LINE # 670
- 0021 120000 R LCALL L?0429
- ; SOURCE LINE # 671
- ; SOURCE LINE # 672
- 0024 120000 R LCALL L?0471
- ; SOURCE LINE # 675
- 0027 A200 R MOV C,bVpole_Curr
- 0029 300001 R JNB bVpole_Prev,?C0354
- 002C B3 CPL C
- 002D ?C0354:
- 002D 4008 JC ?C0163
- 002F A200 R MOV C,bHpole_Curr
- 0031 300001 R JNB bHpole_Prev,?C0355
- 0034 B3 CPL C
- 0035 ?C0355:
- 0035 5041 JNC ?C0162
- 0037 ?C0163:
- ; SOURCE LINE # 676
- ; SOURCE LINE # 677
- 0037 7B01 MOV R3,#01H
- 0039 7D01 MOV R5,#01H
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 71
- 003B 7F05 MOV R7,#05H
- 003D 120000 E LCALL _RTDRead
- ; SOURCE LINE # 687
- 0040 E500 E MOV A,stGUD1+01H
- 0042 5407 ANL A,#07H
- 0044 FF MOV R7,A
- 0045 7016 JNZ ?C0164
- ; SOURCE LINE # 688
- ; SOURCE LINE # 689
- 0047 5300D7 E ANL Data,#0D7H
- ; SOURCE LINE # 691
- 004A 200003 R JB bHpole_Curr,?C0165
- 004D 430020 E ORL Data,#020H
- 0050 ?C0165:
- ; SOURCE LINE # 693
- 0050 20001C R JB bVpole_Curr,?C0167
- 0053 7800 R MOV R0,#LOW ucSync_Type
- 0055 E6 MOV A,@R0
- 0056 7017 JNZ ?C0167
- 0058 430008 E ORL Data,#08H
- ; SOURCE LINE # 694
- 005B 8012 SJMP ?C0167
- 005D ?C0164:
- ; SOURCE LINE # 695
- 005D BF010F CJNE R7,#01H,?C0167
- ; SOURCE LINE # 696
- ; SOURCE LINE # 697
- 0060 5300F3 E ANL Data,#0F3H
- ; SOURCE LINE # 699
- 0063 200003 R JB bVpole_Curr,?C0169
- 0066 430008 E ORL Data,#08H
- 0069 ?C0169:
- ; SOURCE LINE # 700
- 0069 200003 R JB bHpole_Curr,?C0167
- 006C 430004 E ORL Data,#04H
- ; SOURCE LINE # 701
- 006F ?C0167:
- ; SOURCE LINE # 703
- 006F AD00 E MOV R5,Data
- 0071 7F05 MOV R7,#05H
- 0073 ?C0374:
- 0073 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 705
- ; SOURCE LINE # 706
- 0076 8045 SJMP ?C0376
- 0078 ?C0162:
- ; SOURCE LINE # 708
- ; SOURCE LINE # 709
- 0078 120000 R LCALL L?0446
- 007B D3 SETB C
- 007C 74FF MOV A,#0FFH
- 007E 9F SUBB A,R7
- 007F 7407 MOV A,#07H
- 0081 9E SUBB A,R6
- 0082 4013 JC ?C0173
- 0084 120000 R LCALL L?0456
- 0087 74FF MOV A,#0FFH
- 0089 9D SUBB A,R5
- 008A 7407 MOV A,#07H
- 008C 9C SUBB A,R4
- 008D 4008 JC ?C0173
- 008F EF MOV A,R7
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 72
- 0090 4E ORL A,R6
- 0091 6004 JZ ?C0173
- 0093 ED MOV A,R5
- 0094 4C ORL A,R4
- 0095 7002 JNZ ?C0172
- 0097 ?C0173:
- ; SOURCE LINE # 710
- ; SOURCE LINE # 711
- 0097 ?C0375:
- ; SOURCE LINE # 712
- 0097 8024 SJMP ?C0376
- 0099 ?C0172:
- ; SOURCE LINE # 714
- ; SOURCE LINE # 715
- 0099 7800 R MOV R0,#LOW usStdHS
- 009B E6 MOV A,@R0
- 009C FE MOV R6,A
- 009D 08 INC R0
- 009E E6 MOV A,@R0
- 009F 7800 R MOV R0,#LOW usHsync
- 00A1 120000 R LCALL L?0458
- 00A4 4017 JC ?C0176
- 00A6 120000 R LCALL L?0482
- 00A9 5012 JNC ?C0176
- 00AB 7800 R MOV R0,#LOW usStdVS
- 00AD E6 MOV A,@R0
- 00AE FE MOV R6,A
- 00AF 08 INC R0
- 00B0 E6 MOV A,@R0
- 00B1 7800 R MOV R0,#LOW usVsync
- 00B3 120000 R LCALL L?0458
- 00B6 4005 JC ?C0176
- 00B8 120000 R LCALL L?0482
- 00BB 4006 JC ?C0175
- 00BD ?C0176:
- ; SOURCE LINE # 717
- ; SOURCE LINE # 718
- 00BD ?C0376:
- 00BD 7800 R MOV R0,#LOW ucMode_Found
- 00BF 76FF MOV @R0,#0FFH
- ; SOURCE LINE # 719
- 00C1 8006 SJMP ?C0161
- 00C3 ?C0175:
- ; SOURCE LINE # 721
- ; SOURCE LINE # 722
- 00C3 7800 R MOV R0,#LOW ucMode_Curr
- 00C5 E6 MOV A,@R0
- 00C6 7800 R MOV R0,#LOW ucMode_Found
- 00C8 F6 MOV @R0,A
- ; SOURCE LINE # 723
- ; SOURCE LINE # 724
- ; SOURCE LINE # 725
- ; SOURCE LINE # 726
- 00C9 ?C0161:
- ; SOURCE LINE # 728
- 00C9 7800 R MOV R0,#LOW ucMode_Found
- 00CB E6 MOV A,@R0
- 00CC B4FF03 CJNE A,#0FFH,?C0178
- ; SOURCE LINE # 729
- 00CF 020000 E LJMP Reset_Mode
- 00D2 ?C0178:
- ; SOURCE LINE # 731
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 73
- ; SOURCE LINE # 732
- 00D2 D200 R SETB bStable
- ; SOURCE LINE # 740
- ; SOURCE LINE # 742
- 00D4 ?C0180:
- 00D4 22 RET
- ; FUNCTION Check_Input_Mode (END)
- ; FUNCTION _Seek_DVI_Mode (BEGIN)
- ; SOURCE LINE # 747
- 0000 8F00 R MOV mode,R7
- ; SOURCE LINE # 748
- ; SOURCE LINE # 752
- 0002 7D03 MOV R5,#03H
- 0004 7F4C MOV R7,#04CH
- 0006 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 754
- 0009 75003C R MOV Wait_Time_Cnt,#03CH
- 000C ?C0183:
- ; SOURCE LINE # 756
- ; SOURCE LINE # 757
- 000C 7F01 MOV R7,#01H
- 000E 120000 E LCALL _Delay_Xms
- ; SOURCE LINE # 758
- 0011 E4 CLR A
- 0012 FB MOV R3,A
- 0013 7D07 MOV R5,#07H
- 0015 7F4C MOV R7,#04CH
- 0017 120000 E LCALL _RTDRead
- ; SOURCE LINE # 759
- ; SOURCE LINE # 760
- 001A E500 E MOV A,Data
- 001C 30E103 JNB ACC.1,?C0182
- 001F D500EA R DJNZ Wait_Time_Cnt,?C0183
- 0022 ?C0182:
- ; SOURCE LINE # 762
- ; SOURCE LINE # 763
- ; SOURCE LINE # 764
- ; SOURCE LINE # 765
- ; SOURCE LINE # 766
- ; SOURCE LINE # 767
- 0022 120000 R LCALL L?0428
- ; SOURCE LINE # 771
- 0025 E500 E MOV A,Data+03H
- 0027 4500 E ORL A,Data+02H
- 0029 6020 JZ ?C0186
- 002B D3 SETB C
- 002C 74FF MOV A,#0FFH
- 002E 9500 E SUBB A,Data+03H
- 0030 7407 MOV A,#07H
- 0032 9500 E SUBB A,Data+02H
- 0034 4015 JC ?C0186
- 0036 E500 E MOV A,Data+05H
- 0038 4500 E ORL A,Data+04H
- 003A 600F JZ ?C0186
- 003C D3 SETB C
- 003D 74FF MOV A,#0FFH
- 003F 9500 E SUBB A,Data+05H
- 0041 7407 MOV A,#07H
- 0043 9500 E SUBB A,Data+04H
- 0045 4004 JC ?C0186
- 0047 E500 R MOV A,Wait_Time_Cnt
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 74
- 0049 700A JNZ ?C0185
- 004B ?C0186:
- ; SOURCE LINE # 773
- ; SOURCE LINE # 774
- 004B E4 CLR A
- 004C FD MOV R5,A
- 004D 7F4C MOV R7,#04CH
- 004F 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 776
- 0052 7FFF MOV R7,#0FFH
- 0054 22 RET
- ; SOURCE LINE # 777
- 0055 ?C0185:
- ; SOURCE LINE # 780
- 0055 E500 E MOV A,Data+03H
- 0057 25E0 ADD A,ACC
- 0059 7900 E MOV R1,#LOW usADC_Clock+01H
- 005B F7 MOV @R1,A
- 005C E500 E MOV A,Data+02H
- 005E 33 RLC A
- 005F 19 DEC R1
- 0060 F7 MOV @R1,A
- ; SOURCE LINE # 783
- 0061 7800 E MOV R0,#LOW usIPV_ACT_LEN
- 0063 A600 E MOV @R0,Data+04H
- 0065 08 INC R0
- 0066 A600 E MOV @R0,Data+05H
- ; SOURCE LINE # 784
- 0068 E500 E MOV A,Data+07H
- 006A 25E0 ADD A,ACC
- 006C 7900 E MOV R1,#LOW usIPH_ACT_WID+01H
- 006E F7 MOV @R1,A
- 006F E500 E MOV A,Data+06H
- 0071 33 RLC A
- 0072 19 DEC R1
- 0073 F7 MOV @R1,A
- ; SOURCE LINE # 787
- 0074 D3 SETB C
- 0075 745E MOV A,#05EH
- 0077 9500 E SUBB A,Data+05H
- 0079 7401 MOV A,#01H
- 007B 9500 E SUBB A,Data+04H
- 007D 4003 JC ?C0188
- 007F 7FFF MOV R7,#0FFH
- 0081 22 RET
- 0082 ?C0188:
- ; SOURCE LINE # 790
- 0082 7800 E MOV R0,#LOW usIPH_ACT_WID
- 0084 E6 MOV A,@R0
- 0085 FE MOV R6,A
- 0086 08 INC R0
- 0087 E6 MOV A,@R0
- 0088 FF MOV R7,A
- 0089 5407 ANL A,#07H
- 008B FD MOV R5,A
- 008C C3 CLR C
- 008D 7402 MOV A,#02H
- 008F 9D SUBB A,R5
- 0090 E4 CLR A
- 0091 9400 SUBB A,#00H
- 0093 500A JNC ?C0189
- 0095 EF MOV A,R7
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 75
- 0096 2408 ADD A,#08H
- 0098 FF MOV R7,A
- 0099 E4 CLR A
- 009A 3E ADDC A,R6
- 009B FE MOV R6,A
- 009C EF MOV A,R7
- 009D 8006 SJMP ?C0377
- 009F ?C0189:
- 009F 7800 E MOV R0,#LOW usIPH_ACT_WID
- 00A1 E6 MOV A,@R0
- 00A2 FE MOV R6,A
- 00A3 08 INC R0
- 00A4 E6 MOV A,@R0
- 00A5 ?C0377:
- 00A5 54F8 ANL A,#0F8H
- 00A7 FF MOV R7,A
- 00A8 ?C0190:
- 00A8 7800 E MOV R0,#LOW usIPH_ACT_WID
- 00AA EE MOV A,R6
- 00AB F6 MOV @R0,A
- 00AC 08 INC R0
- 00AD EF MOV A,R7
- 00AE F6 MOV @R0,A
- ; SOURCE LINE # 793
- 00AF C3 CLR C
- 00B0 E4 CLR A
- 00B1 9F SUBB A,R7
- 00B2 7405 MOV A,#05H
- 00B4 9E SUBB A,R6
- 00B5 5006 JNC ?C0191
- 00B7 18 DEC R0
- 00B8 7605 MOV @R0,#05H
- 00BA 08 INC R0
- 00BB 7600 MOV @R0,#00H
- 00BD ?C0191:
- ; SOURCE LINE # 796
- 00BD 120000 R LCALL L?0426
- 00C0 FE MOV R6,A
- 00C1 E4 CLR A
- 00C2 FC MOV R4,A
- 00C3 FD MOV R5,A
- 00C4 120000 R LCALL L?0441
- 00C7 E4 CLR A
- 00C8 7B10 MOV R3,#010H
- 00CA 7A04 MOV R2,#04H
- 00CC F9 MOV R1,A
- 00CD F8 MOV R0,A
- 00CE 120000 R LCALL L?0435
- ; SOURCE LINE # 798
- 00D1 C3 CLR C
- 00D2 E500 E MOV A,Data+01H
- 00D4 7800 E MOV R0,#LOW usIPV_ACT_LEN+01H
- 00D6 96 SUBB A,@R0
- 00D7 E500 E MOV A,Data
- 00D9 18 DEC R0
- 00DA 96 SUBB A,@R0
- 00DB 5005 JNC ?C0192
- 00DD A600 E MOV @R0,Data
- 00DF 08 INC R0
- 00E0 A600 E MOV @R0,Data+01H
- 00E2 ?C0192:
- ; SOURCE LINE # 800
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 76
- 00E2 75003C R MOV mode,#03CH
- ; SOURCE LINE # 802
- 00E5 E500 R MOV A,mode
- 00E7 643C XRL A,#03CH
- 00E9 6003 JZ $ + 5H
- 00EB 020000 R LJMP ?C0193
- ; SOURCE LINE # 803
- ; SOURCE LINE # 805
- 00EE 750033 R MOV Wait_Time_Cnt,#033H
- 00F1 ?C0196:
- ; SOURCE LINE # 807
- ; SOURCE LINE # 808
- 00F1 120000 R LCALL L?0419
- 00F4 120000 R LCALL L?0395
- 00F7 FF MOV R7,A
- 00F8 120000 R LCALL L?0415
- 00FB 120000 R LCALL L?0432
- 00FE FD MOV R5,A
- 00FF C3 CLR C
- 0100 9F SUBB A,R7
- 0101 EC MOV A,R4
- 0102 9E SUBB A,R6
- 0103 502A JNC ?C0197
- ; SOURCE LINE # 809
- ; SOURCE LINE # 812
- 0105 7800 E MOV R0,#LOW usIPV_ACT_LEN
- 0107 E6 MOV A,@R0
- 0108 FE MOV R6,A
- 0109 08 INC R0
- 010A E6 MOV A,@R0
- 010B FF MOV R7,A
- 010C ED MOV A,R5
- 010D 9F SUBB A,R7
- 010E EC MOV A,R4
- 010F 9E SUBB A,R6
- 0110 4003 JC $ + 5H
- 0112 020000 R LJMP ?C0194
- 0115 120000 R LCALL L?0419
- 0118 F583 MOV DPH,A
- 011A 7401 MOV A,#01H
- 011C 93 MOVC A,@A+DPTR
- 011D 2418 ADD A,#018H
- 011F FD MOV R5,A
- 0120 E4 CLR A
- 0121 93 MOVC A,@A+DPTR
- 0122 3400 ADDC A,#00H
- 0124 FC MOV R4,A
- 0125 C3 CLR C
- 0126 ED MOV A,R5
- 0127 9F SUBB A,R7
- 0128 EC MOV A,R4
- 0129 9E SUBB A,R6
- 012A 5014 JNC ?C0200
- 012C 020000 R LJMP ?C0194
- ; SOURCE LINE # 813
- 012F ?C0197:
- ; SOURCE LINE # 815
- ; SOURCE LINE # 816
- 012F 120000 R LCALL L?0415
- 0132 F583 MOV DPH,A
- 0134 120000 R LCALL L?0439
- 0137 7401 MOV A,#01H
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 77
- 0139 93 MOVC A,@A+DPTR
- 013A 9F SUBB A,R7
- 013B E4 CLR A
- 013C 93 MOVC A,@A+DPTR
- 013D 9E SUBB A,R6
- 013E 4054 JC ?C0194
- ; SOURCE LINE # 817
- 0140 ?C0200:
- ; SOURCE LINE # 820
- 0140 75F00A MOV B,#0AH
- 0143 E500 R MOV A,Wait_Time_Cnt
- 0145 A4 MUL AB
- 0146 2400 E ADD A,#LOW Mode_Preset
- 0148 F582 MOV DPL,A
- 014A E5F0 MOV A,B
- 014C 3400 E ADDC A,#HIGH Mode_Preset
- 014E 120000 R LCALL L?0395
- 0151 FF MOV R7,A
- 0152 E4 CLR A
- 0153 FC MOV R4,A
- 0154 FD MOV R5,A
- 0155 7B9A MOV R3,#09AH
- 0157 7A09 MOV R2,#09H
- 0159 120000 R LCALL L?0408
- 015C 120000 R LCALL L?0416
- 015F 120000 R LCALL L?0395
- 0162 FF MOV R7,A
- 0163 120000 R LCALL L?0475
- 0166 C004 PUSH AR4
- 0168 C005 PUSH AR5
- 016A C006 PUSH AR6
- 016C C007 PUSH AR7
- 016E 7800 E MOV R0,#LOW usIPV_ACT_LEN
- 0170 120000 R LCALL L?0400
- 0173 120000 R LCALL L?0414
- 0176 C004 PUSH AR4
- 0178 120000 R LCALL L?0398
- 017B D000 POP AR0
- 017D 120000 R LCALL L?0409
- 0180 D007 POP AR7
- 0182 D006 POP AR6
- 0184 D005 POP AR5
- 0186 D004 POP AR4
- 0188 120000 R LCALL L?0435
- ; SOURCE LINE # 823
- 018B D3 SETB C
- 018C 120000 R LCALL L?0479
- 018F 4003 JC ?C0194
- 0191 AF00 R MOV R7,Wait_Time_Cnt
- 0193 22 RET
- ; SOURCE LINE # 824
- 0194 ?C0194:
- ; SOURCE LINE # 825
- 0194 0500 R INC Wait_Time_Cnt
- 0196 743B MOV A,#03BH
- 0198 C3 CLR C
- 0199 9500 R SUBB A,Wait_Time_Cnt
- 019B 4003 JC $ + 5H
- 019D 020000 R LJMP ?C0196
- ; SOURCE LINE # 827
- 01A0 120000 R LCALL Partial_Display
- 01A3 8F00 R MOV mode,R7
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 78
- ; SOURCE LINE # 830
- 01A5 ?C0193:
- ; SOURCE LINE # 833
- 01A5 AF00 R MOV R7,mode
- ; SOURCE LINE # 838
- 01A7 ?C0187:
- 01A7 22 RET
- ; FUNCTION _Seek_DVI_Mode (END)
- ; FUNCTION Detect_Video_Mode (BEGIN)
- ; SOURCE LINE # 843
- ; SOURCE LINE # 844
- ; SOURCE LINE # 1046
- 0000 020000 R LJMP Display_Video_Set
- ; FUNCTION Detect_Video_Mode (END)
- ; FUNCTION Check_Video_Mode (BEGIN)
- ; SOURCE LINE # 1052
- ; SOURCE LINE # 1053
- ; SOURCE LINE # 1100
- 0000 22 RET
- ; FUNCTION Check_Video_Mode (END)
- ; FUNCTION _Calculate_IVS2DVS_Delay (BEGIN)
- ; SOURCE LINE # 1103
- 0000 8F00 R MOV integer,R7
- 0002 8D00 R MOV fraction,R5
- 0004 8A00 R MOV DVStart,R2
- 0006 8B00 R MOV DVStart+01H,R3
- ; SOURCE LINE # 1104
- ; SOURCE LINE # 1105
- 0008 EF MOV A,R7
- 0009 FD MOV R5,A
- 000A 7C00 MOV R4,#00H
- 000C 7800 E MOV R0,#LOW usIPV_ACT_STA+01H
- 000E 26 ADD A,@R0
- 000F FB MOV R3,A
- 0010 EC MOV A,R4
- 0011 18 DEC R0
- 0012 36 ADDC A,@R0
- 0013 FA MOV R2,A
- 0014 E500 R MOV A,DVStart+01H
- 0016 AE00 R MOV R6,DVStart
- 0018 7806 MOV R0,#06H
- 001A ?C0356:
- 001A CE XCH A,R6
- 001B C3 CLR C
- 001C 13 RRC A
- 001D CE XCH A,R6
- 001E 13 RRC A
- 001F D8F9 DJNZ R0,?C0356
- 0021 FF MOV R7,A
- 0022 C3 CLR C
- 0023 EB MOV A,R3
- 0024 9F SUBB A,R7
- 0025 EA MOV A,R2
- 0026 9E SUBB A,R6
- 0027 501B JNC ?C0205
- ; SOURCE LINE # 1106
- ; SOURCE LINE # 1108
- 0029 C3 CLR C
- 002A EF MOV A,R7
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 79
- 002B 9D SUBB A,R5
- 002C 7800 E MOV R0,#LOW usIPV_ACT_STA+01H
- 002E F6 MOV @R0,A
- 002F EE MOV A,R6
- 0030 9C SUBB A,R4
- 0031 18 DEC R0
- 0032 F6 MOV @R0,A
- ; SOURCE LINE # 1110
- 0033 08 INC R0
- 0034 E6 MOV A,@R0
- 0035 FD MOV R5,A
- 0036 7F0A MOV R7,#0AH
- 0038 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 1111
- 003B 7800 E MOV R0,#LOW usIPV_ACT_STA
- 003D E6 MOV A,@R0
- 003E FD MOV R5,A
- 003F 7F0B MOV R7,#0BH
- 0041 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 1112
- 0044 ?C0205:
- ; SOURCE LINE # 1114
- 0044 E500 R MOV A,fraction
- 0046 75F040 MOV B,#040H
- 0049 A4 MUL AB
- 004A FF MOV R7,A
- 004B AEF0 MOV R6,B
- 004D 7C00 MOV R4,#00H
- 004F 7D0A MOV R5,#0AH
- 0051 120000 E LCALL ?C?UIDIV
- 0054 AC06 MOV R4,AR6
- 0056 AD07 MOV R5,AR7
- 0058 E500 R MOV A,integer
- 005A 7800 E MOV R0,#LOW usIPV_ACT_STA+01H
- 005C 26 ADD A,@R0
- 005D FF MOV R7,A
- 005E E4 CLR A
- 005F 18 DEC R0
- 0060 36 ADDC A,@R0
- 0061 FE MOV R6,A
- 0062 EF MOV A,R7
- 0063 7806 MOV R0,#06H
- 0065 ?C0357:
- 0065 C3 CLR C
- 0066 33 RLC A
- 0067 CE XCH A,R6
- 0068 33 RLC A
- 0069 CE XCH A,R6
- 006A D8F9 DJNZ R0,?C0357
- 006C 2D ADD A,R5
- 006D FF MOV R7,A
- 006E EC MOV A,R4
- 006F 3E ADDC A,R6
- 0070 CF XCH A,R7
- 0071 C3 CLR C
- 0072 9500 R SUBB A,DVStart+01H
- 0074 F500 E MOV Data+01H,A
- 0076 EF MOV A,R7
- 0077 9500 R SUBB A,DVStart
- 0079 F500 E MOV Data,A
- ; SOURCE LINE # 1117
- 007B E500 E MOV A,Data+01H
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 80
- 007D AE00 E MOV R6,Data
- 007F 7806 MOV R0,#06H
- 0081 ?C0358:
- 0081 CE XCH A,R6
- 0082 C3 CLR C
- 0083 13 RRC A
- 0084 CE XCH A,R6
- 0085 13 RRC A
- 0086 D8F9 DJNZ R0,?C0358
- 0088 7800 E MOV R0,#LOW ucDV_Delay
- 008A F6 MOV @R0,A
- ; SOURCE LINE # 1119
- 008B E6 MOV A,@R0
- 008C C4 SWAP A
- 008D 33 RLC A
- 008E 33 RLC A
- 008F 54C0 ANL A,#0C0H
- 0091 FF MOV R7,A
- 0092 C3 CLR C
- 0093 E500 E MOV A,Data+01H
- 0095 9F SUBB A,R7
- 0096 F500 E MOV Data+06H,A
- ; SOURCE LINE # 1121
- 0098 7800 E MOV R0,#LOW usADC_Clock
- 009A 120000 R LCALL L?0423
- 009D AF00 E MOV R7,Data+06H
- 009F FC MOV R4,A
- 00A0 FD MOV R5,A
- 00A1 FE MOV R6,A
- 00A2 120000 E LCALL ?C?LMUL
- 00A5 E4 CLR A
- 00A6 FB MOV R3,A
- 00A7 7A04 MOV R2,#04H
- 00A9 F9 MOV R1,A
- 00AA F8 MOV R0,A
- 00AB 120000 E LCALL ?C?ULDIV
- 00AE 8F00 E MOV Data+06H,R7
- ; SOURCE LINE # 1123
- 00B0 AD00 E MOV R5,Data+06H
- 00B2 7F1E MOV R7,#01EH
- 00B4 020000 E LJMP _RTDSetByte
- ; FUNCTION _Calculate_IVS2DVS_Delay (END)
- ; FUNCTION _Set_Dclk (BEGIN)
- ; SOURCE LINE # 1128
- 0000 8E00 R MOV DispLen,R6
- 0002 8F00 R MOV DispLen+01H,R7
- ; SOURCE LINE # 1129
- ; SOURCE LINE # 1130
- 0004 120000 R LCALL L?0489
- 0007 120000 R LCALL L?0502
- 000A F583 MOV DPH,A
- 000C 7401 MOV A,#01H
- 000E 93 MOVC A,@A+DPTR
- 000F 7002 JNZ ?C0359
- 0011 E4 CLR A
- 0012 93 MOVC A,@A+DPTR
- 0013 ?C0359:
- 0013 6024 JZ ?C0207
- ; SOURCE LINE # 1131
- ; SOURCE LINE # 1133
- 0015 750006 E MOV Data,#06H
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 81
- ; SOURCE LINE # 1134
- 0018 E4 CLR A
- 0019 F500 E MOV Data+01H,A
- ; SOURCE LINE # 1135
- 001B 7500D0 E MOV Data+02H,#0D0H
- ; SOURCE LINE # 1136
- 001E 750011 E MOV Data+03H,#011H
- ; SOURCE LINE # 1137
- 0021 75F00A MOV B,#0AH
- 0024 EF MOV A,R7
- 0025 120000 R LCALL L?0502
- 0028 120000 R LCALL L?0433
- 002B FD MOV R5,A
- 002C EC MOV A,R4
- 002D F500 E MOV Data+04H,A
- ; SOURCE LINE # 1138
- 002F 8D00 E MOV Data+05H,R5
- ; SOURCE LINE # 1139
- 0031 E4 CLR A
- 0032 F500 E MOV Data+06H,A
- ; SOURCE LINE # 1140
- 0034 7F00 E MOV R7,#LOW Data
- 0036 020000 E LJMP _RTDWrite
- ; SOURCE LINE # 1141
- 0039 ?C0207:
- ; SOURCE LINE # 1143
- ; SOURCE LINE # 1154
- 0039 7800 E MOV R0,#LOW usDH_Total
- 003B 120000 R LCALL L?0400
- 003E 7B80 MOV R3,#080H
- 0040 FA MOV R2,A
- 0041 120000 R LCALL L?0408
- 0044 120000 R LCALL L?0474
- 0047 C004 PUSH AR4
- 0049 C005 PUSH AR5
- 004B C006 PUSH AR6
- 004D C007 PUSH AR7
- 004F 7800 E MOV R0,#LOW usIPV_ACT_LEN
- 0051 120000 R LCALL L?0400
- 0054 C004 PUSH AR4
- 0056 120000 R LCALL L?0411
- 0059 120000 R LCALL L?0446
- 005C E4 CLR A
- 005D D000 POP AR0
- 005F 120000 R LCALL L?0409
- 0062 D007 POP AR7
- 0064 D006 POP AR6
- 0066 D005 POP AR5
- 0068 D004 POP AR4
- 006A 120000 R LCALL L?0435
- ; SOURCE LINE # 1163
- 006D E500 E MOV A,Data+01H
- 006F 7802 MOV R0,#02H
- 0071 ?C0360:
- 0071 CE XCH A,R6
- 0072 C3 CLR C
- 0073 13 RRC A
- 0074 CE XCH A,R6
- 0075 13 RRC A
- 0076 D8F9 DJNZ R0,?C0360
- 0078 F500 E MOV Data+0FH,A
- ; SOURCE LINE # 1164
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 82
- 007A FF MOV R7,A
- 007B 7E00 MOV R6,#00H
- 007D 7C00 MOV R4,#00H
- 007F 7D28 MOV R5,#028H
- 0081 120000 E LCALL ?C?IMUL
- 0084 7DB0 MOV R5,#0B0H
- 0086 120000 E LCALL ?C?UIDIV
- 0089 EF MOV A,R7
- 008A 24FB ADD A,#0FBH
- 008C F500 E MOV Data+05H,A
- ; SOURCE LINE # 1165
- 008E E4 CLR A
- 008F F500 E MOV Data+06H,A
- ; SOURCE LINE # 1166
- 0091 E500 E MOV A,Data+05H
- 0093 D3 SETB C
- 0094 943C SUBB A,#03CH
- 0096 4009 JC ?C0209
- ; SOURCE LINE # 1167
- ; SOURCE LINE # 1168
- 0098 74C4 MOV A,#0C4H
- 009A 2500 E ADD A,Data+05H
- 009C F500 E MOV Data+05H,A
- ; SOURCE LINE # 1169
- 009E 430080 E ORL Data+06H,#080H
- ; SOURCE LINE # 1170
- 00A1 ?C0209:
- ; SOURCE LINE # 1172
- 00A1 E500 E MOV A,Data+05H
- 00A3 D3 SETB C
- 00A4 9428 SUBB A,#028H
- 00A6 4009 JC ?C0210
- ; SOURCE LINE # 1173
- ; SOURCE LINE # 1174
- 00A8 74D8 MOV A,#0D8H
- 00AA 2500 E ADD A,Data+05H
- 00AC F500 E MOV Data+05H,A
- ; SOURCE LINE # 1175
- 00AE 430040 E ORL Data+06H,#040H
- ; SOURCE LINE # 1176
- 00B1 ?C0210:
- ; SOURCE LINE # 1178
- 00B1 E500 E MOV A,Data+05H
- 00B3 D3 SETB C
- 00B4 9414 SUBB A,#014H
- 00B6 4009 JC ?C0211
- ; SOURCE LINE # 1179
- ; SOURCE LINE # 1180
- 00B8 74EC MOV A,#0ECH
- 00BA 2500 E ADD A,Data+05H
- 00BC F500 E MOV Data+05H,A
- ; SOURCE LINE # 1181
- 00BE 430020 E ORL Data+06H,#020H
- ; SOURCE LINE # 1182
- 00C1 ?C0211:
- ; SOURCE LINE # 1184
- 00C1 E500 E MOV A,Data+05H
- 00C3 D3 SETB C
- 00C4 940A SUBB A,#0AH
- 00C6 4009 JC ?C0212
- ; SOURCE LINE # 1185
- ; SOURCE LINE # 1186
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 83
- 00C8 74F6 MOV A,#0F6H
- 00CA 2500 E ADD A,Data+05H
- 00CC F500 E MOV Data+05H,A
- ; SOURCE LINE # 1187
- 00CE 430010 E ORL Data+06H,#010H
- ; SOURCE LINE # 1188
- 00D1 ?C0212:
- ; SOURCE LINE # 1190
- 00D1 E500 E MOV A,Data+05H
- 00D3 D3 SETB C
- 00D4 9405 SUBB A,#05H
- 00D6 4009 JC ?C0213
- ; SOURCE LINE # 1191
- ; SOURCE LINE # 1192
- 00D8 74FB MOV A,#0FBH
- 00DA 2500 E ADD A,Data+05H
- 00DC F500 E MOV Data+05H,A
- ; SOURCE LINE # 1193
- 00DE 430008 E ORL Data+06H,#08H
- ; SOURCE LINE # 1194
- 00E1 ?C0213:
- ; SOURCE LINE # 1197
- ; SOURCE LINE # 1198
- 00E1 120000 R LCALL L?0503
- ; SOURCE LINE # 1199
- 00E4 7500D0 E MOV Data+02H,#0D0H
- ; SOURCE LINE # 1200
- 00E7 850000 E MOV Data+03H,Data+06H
- ; SOURCE LINE # 1201
- 00EA E500 E MOV A,Data+0FH
- 00EC 24FE ADD A,#0FEH
- 00EE F500 E MOV Data+04H,A
- ; SOURCE LINE # 1202
- 00F0 75001E E MOV Data+05H,#01EH
- ; SOURCE LINE # 1204
- 00F3 750004 E MOV Data+06H,#04H
- ; SOURCE LINE # 1205
- 00F6 E4 CLR A
- 00F7 F500 E MOV Data+07H,A
- ; SOURCE LINE # 1206
- 00F9 7F00 E MOV R7,#LOW Data
- 00FB 120000 E LCALL _RTDWrite
- ; SOURCE LINE # 1213
- 00FE 120000 R LCALL L?0422
- 0101 FF MOV R7,A
- 0102 FE MOV R6,A
- 0103 7D77 MOV R5,#077H
- 0105 7C01 MOV R4,#01H
- 0107 120000 E LCALL ?C?ULDIV
- 010A 120000 R LCALL L?0410
- 010D 120000 R LCALL L?0474
- 0110 C006 PUSH AR6
- 0112 C007 PUSH AR7
- 0114 7800 R MOV R0,#LOW usHsync
- 0116 120000 R LCALL L?0423
- 0119 D007 POP AR7
- 011B D006 POP AR6
- 011D 120000 E LCALL ?C?ULDIV
- 0120 C004 PUSH AR4
- 0122 7800 E MOV R0,#LOW usDH_Total
- 0124 120000 R LCALL L?0399
- 0127 D000 POP AR0
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 84
- 0129 120000 E LCALL ?C?LMUL
- 012C 8F00 E MOV Data+03H,R7
- 012E 8E00 E MOV Data+02H,R6
- 0130 8D00 E MOV Data+01H,R5
- 0132 8C00 E MOV Data,R4
- ; SOURCE LINE # 1216
- 0134 E500 E MOV A,Data+0FH
- 0136 2401 ADD A,#01H
- 0138 FF MOV R7,A
- 0139 E4 CLR A
- 013A 33 RLC A
- 013B FE MOV R6,A
- 013C 7A80 MOV R2,#080H
- 013E 79BB MOV R1,#0BBH
- 0140 120000 R LCALL L?0454
- 0143 E4 CLR A
- 0144 7B10 MOV R3,#010H
- 0146 FA MOV R2,A
- 0147 F9 MOV R1,A
- 0148 F8 MOV R0,A
- 0149 120000 E LCALL ?C?ULDIV
- 014C 8F00 E MOV Data+07H,R7
- 014E 8E00 E MOV Data+06H,R6
- 0150 8D00 E MOV Data+05H,R5
- 0152 8C00 E MOV Data+04H,R4
- ; SOURCE LINE # 1218
- 0154 C3 CLR C
- 0155 E500 E MOV A,Data+07H
- 0157 9500 E SUBB A,Data+03H
- 0159 F500 E MOV Data+0BH,A
- 015B E500 E MOV A,Data+06H
- 015D 9500 E SUBB A,Data+02H
- 015F F500 E MOV Data+0AH,A
- 0161 E500 E MOV A,Data+05H
- 0163 9500 E SUBB A,Data+01H
- 0165 F500 E MOV Data+09H,A
- 0167 E500 E MOV A,Data+04H
- 0169 9500 E SUBB A,Data
- 016B F500 E MOV Data+08H,A
- ; SOURCE LINE # 1219
- 016D 780F MOV R0,#0FH
- 016F 120000 E LCALL ?C?ULSHR
- 0172 120000 R LCALL L?0407
- ; SOURCE LINE # 1221
- 0175 AF00 E MOV R7,Data+0BH
- 0177 AE00 E MOV R6,Data+0AH
- 0179 AD00 E MOV R5,Data+09H
- 017B AC00 E MOV R4,Data+08H
- 017D 7801 MOV R0,#01H
- 017F 120000 E LCALL ?C?LSHL
- 0182 AB00 E MOV R3,Data+0FH
- 0184 AA00 E MOV R2,Data+0EH
- 0186 A900 E MOV R1,Data+0DH
- 0188 A800 E MOV R0,Data+0CH
- 018A 120000 E LCALL ?C?ULDIV
- 018D EF MOV A,R7
- 018E F500 E MOV Data+0FH,A
- 0190 EE MOV A,R6
- 0191 540F ANL A,#0FH
- 0193 F500 E MOV Data+0EH,A
- 0195 E4 CLR A
- 0196 F500 E MOV Data+0DH,A
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 85
- 0198 F500 E MOV Data+0CH,A
- ; SOURCE LINE # 1224
- 019A AD00 E MOV R5,Data+0FH
- 019C 7F9A MOV R7,#09AH
- 019E 120000 E LCALL _RTDSetByte
- ; SOURCE LINE # 1227
- 01A1 7808 MOV R0,#08H
- 01A3 120000 R LCALL L?0444
- 01A6 EF MOV A,R7
- 01A7 4420 ORL A,#020H
- 01A9 FB MOV R3,A
- 01AA 7DF0 MOV R5,#0F0H
- 01AC 7F9B MOV R7,#09BH
- 01AE 120000 E LCALL _RTDSetBit
- ; SOURCE LINE # 1229
- 01B1 7B08 MOV R3,#08H
- 01B3 7DFF MOV R5,#0FFH
- 01B5 7F5A MOV R7,#05AH
- 01B7 120000 E LCALL _RTDSetBit
- ; SOURCE LINE # 1230
- 01BA 7B20 MOV R3,#020H
- 01BC 7DFF MOV R5,#0FFH
- 01BE 7FD2 MOV R7,#0D2H
- 01C0 120000 E LCALL _RTDSetBit
- ; SOURCE LINE # 1231
- 01C3 E4 CLR A
- 01C4 FB MOV R3,A
- 01C5 7D7F MOV R5,#07FH
- 01C7 7FD3 MOV R7,#0D3H
- 01C9 120000 E LCALL _RTDSetBit
- ; SOURCE LINE # 1232
- ; SOURCE LINE # 1233
- 01CC ?C0214:
- 01CC 22 RET
- ; FUNCTION _Set_Dclk (END)
- ; FUNCTION Initial_Mode (BEGIN)
- ; SOURCE LINE # 1235
- ; SOURCE LINE # 1236
- ; SOURCE LINE # 1242
- 0000 7800 R MOV R0,#LOW ucMode_Curr
- 0002 E6 MOV A,@R0
- 0003 FF MOV R7,A
- 0004 54C0 ANL A,#0C0H
- 0006 F500 R MOV ucOption,A
- ; SOURCE LINE # 1243
- 0008 EF MOV A,R7
- 0009 543F ANL A,#03FH
- 000B F6 MOV @R0,A
- ; SOURCE LINE # 1246
- 000C 7B02 MOV R3,#02H
- 000E 7DF9 MOV R5,#0F9H
- 0010 7F70 MOV R7,#070H
- 0012 120000 E LCALL _RTDSetBit
- ; SOURCE LINE # 1247
- 0015 E500 E MOV A,stGUD1+01H
- 0017 5407 ANL A,#07H
- 0019 FF MOV R7,A
- 001A BF011C CJNE R7,#01H,?C0215
- ; SOURCE LINE # 1248
- ; SOURCE LINE # 1249
- 001D E4 CLR A
- C51 COMPILER V7.06 MODE_DETECT 11/21/2005 13:47:38 PAGE 86
- 001E FB MOV R3,A
- 001F 7DF9 MOV R5,#0F9H
- 0021 7F70 MOV R7,#070H
- 0023 120000 E LCALL _RTDSetBit
- ; SOURCE LINE # 1251
- 0026 120000 R LCALL L?0447
- 0029 2400 E ADD A,#LOW CAP_WIN+02H
- 002B F582 MOV DPL,A
- 002D E5F0 MOV A,B
- 002F 3400 E ADDC A,#HIGH CAP_WIN+02H
- 0031 120000 R LCALL L?0395
- 0034 7800 E MOV R0,#LOW usIPH_ACT_STA
- ; SOURCE LINE # 1252
- 0036 020000 R LJMP ?C0384
- 0039 ?C0215:
- ; SOURCE LINE # 1254
- ; SOURCE LINE # 1256
- 0039 E500 R MOV A,ucOption
- 003B 30E629 JNB ACC.6,?C0217