?
@Volkard:
A: (nicht so gut) 40 Zyklen
118: counter=((counter+1)&0x7FFFFFFF);
000D 30FF MOVLW 0xFF
000E 00F0 MOVWF __pcstackCOMMON
000F 30FF MOVLW 0xFF
0010 00F1 MOVWF 0x71
0011 30FF MOVLW 0xFF
0012 00F2 MOVWF 0x72
0013 307F MOVLW 0x7F
0014 00F3 MOVWF 0x73
0015 3001 MOVLW 0x1
0016 00F4 MOVWF 0x74
0017 3000 MOVLW 0x0
0018 00F5 MOVWF 0x75
0019 3000 MOVLW 0x0
001A 00F6 MOVWF 0x76
001B 3000 MOVLW 0x0
001C 00F7 MOVWF 0x77
001D 082A MOVF counter, W
001E 07F4 ADDWF 0x74, F
001F 082B MOVF 0x2B, W
0020 3DF5 ADDWFC 0x75, F
0021 082C MOVF 0x2C, W
0022 3DF6 ADDWFC 0x76, F
0023 082D MOVF 0x2D, W
0024 3DF7 ADDWFC 0x77, F
0025 0874 MOVF 0x74, W
0026 05F0 ANDWF __pcstackCOMMON, F
0027 0875 MOVF 0x75, W
0028 05F1 ANDWF 0x71, F
0029 0876 MOVF 0x76, W
002A 05F2 ANDWF 0x72, F
002B 0877 MOVF 0x77, W
002C 05F3 ANDWF 0x73, F
002D 0873 MOVF 0x73, W
002E 00AD MOVWF 0x2D
002F 0872 MOVF 0x72, W
0030 00AC MOVWF 0x2C
0031 0871 MOVF 0x71, W
0032 00AB MOVWF 0x2B
0033 0870 MOVF __pcstackCOMMON, W
0034 00AA MOVWF counter
B: (ganz gut 12 Zylen) rekord:ü
119: ++counter;
000D 3001 MOVLW 0x1
000E 07AA ADDWF counter, F
000F 3000 MOVLW 0x0
0010 3DAB ADDWFC 0x2B, F
0011 3000 MOVLW 0x0
0012 3DAC ADDWFC 0x2C, F
0013 3000 MOVLW 0x0
0014 3DAD ADDWFC 0x2D, F
120: *((BYTE*)&counter+3) &= 0x7f;
0015 307F MOVLW 0x7F
0016 00F0 MOVWF __pcstackCOMMON
0017 0870 MOVF __pcstackCOMMON, W
0018 05AD ANDWF 0x2D, F
121: