, , , 197119 ( 196392) ?
:
- Delay_0 decfsz COUNT1
- goto Delay_0
- decfsz COUNT2
- goto Delay_0
, , count1, 255 , {255 3 } decfsz 2 . , , , (d1F) d1F = 255 * 3 + 2 = 767 . , decfsz count2. , , decfsz count2; decfsz count2, goto Delay_0, 'goto' ( d1F). , , decfsz count2, goto Delay_0 d1F, count2 255. ... 254, 253... count2 index 1. , 255 . , , decfsz count2 ( 0). decfsz count2 ' 2 1. , (d1F + 3) * 255 + 2. "3" ( ) decfsz goto .
, , :
- d2F = d1F + (d1F + 3) x255 + 2 = 767 + (767 + 3) x255 + 2 = 197119
, , :
- d (n) _F = d (n-1) _F + {d (n-1) _F + 3} x255 + 2 = 256xd (n-1) _F + 767
- d (n) _C = d (n-1) _C + {d (n-1) _F + 3} x {count_n-1} + 2
"F" d (n) _F d (n-1) _F , ZERO. 'C' d (n) _C , n- , . 'n' n- . 'n-1' (n-1) - .
, 2 , d (1) _F - , β1, "" (.. counter1 - ZERO 256); d (2) _F - - β 1 β 2 , 1 2 ZERO 256.
- d (1) _C - - # 1 , count1 , .
- d (2) _C - - β1 β 2 , count2 , .
, count_n INITIAL n- .
, ZERO, "256". , EIGHT. , count1 = 0, count1 = 256 ( 0).
- : d (0) _F = 0 d (0) _C = 0.
, 3- count1 = 1, count2 = 4 count3 = 2,
d (1) _F = 256xd (0) _F + 767 = 256x0 + 767 = 767
d (1) _C = 0 + {0 + 3} x {1 - 1} + 2 = 2
d (2) _F = 256xd (1) _F + 767 = 256x767 + 767 = 197119
d (2) _C = d (1) _C + {d (1) _F + 3} x {4 - 1} + 2 = 2 + {767 + 3} x3 + 2 = 2314
d (3) _F = 256xd (2) _F + 767 = 256x197119 + 767 = 50463231
d (3) _C = d (2) _C + {d (2) _F + 3} x {2 - 1} + 2 = 199438
:
- Delay_0 decfsz count1
- goto Delay_0
- decfsz count2
- goto Delay_0
- decfsz count3
- goto Delay_0
Kenny leong