lien : cliquez ici.

Output Listing

……………….. min=255;
008D: MOVLW FF
008E: MOVWF 28
……………….. max=0;
008F: CLRF 29
……………….. incc=TRUE;
0090: BSF 2B,0
……………….. for(i=0;i<=30;++i) {
0091: CLRF 26
0092: MOVLW 1F
0093: SUBWF 26,W
0094: BTFSC 03,0
0095: GOTO 0AC
……………….. delay_ms(100);
0096: MOVLW 64
0097: MOVWF 2C
0098: GOTO 02D
……………….. value = Read_ADC();
0099: BSF 1F,2
009A: BTFSC 1F,2
009B: GOTO 09A
009C: MOVF 1E,W
009D: MOVWF 27
……………….. if(value < min)
009E: MOVF 28,W
009F: SUBWF 27,W
00A0: BTFSC 03,0
00A1: GOTO 0A4
……………….. min=value;
00A2: MOVF 27,W
00A3: MOVWF 28
……………….. if(value > max)
00A4: MOVF 27,W
00A5: SUBWF 29,W
00A6: BTFSC 03,0
00A7: GOTO 0AA
……………….. max=value;
00A8: MOVF 27,W
00A9: MOVWF 29
……………….. }
00AA: INCF 26,F

00AB: GOTO 092
……………….. if (incc)
00AC: BTFSC 2B,0
……………….. counter++;
00AD: INCF 2A,F