BLaacK89
Newbie level 4
- Joined
- Oct 29, 2014
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 46
Hello forum members,
I need to know formula of this loop.
Formula = 3+4.N+3.M.N ?
why the formula is not true ?
I need to know formula of this loop.
Code:
DELAY
MOVLW H’FF’(M) 1
MOVWF SAYAC1 1
Loop1
MOVLW H’90’(N) 1XM
MOVWF SAYAC2 1XM
Loop2
MOVLW H’50’(D) 1xNXM
MOVWF SAYAC3 1XNXM
Loop3
DECFSZ SAYAC3,F (D+1) .N.M
GOTO Loop3 (2.D-2) .N .M
DECFSZ SAYAC2,F (N+1) .M
GOTO Loop2 (2.N-2) . M
DECFSZ SAYAC1,F M+1
GOTO Loop1 2M-2
RETURN 2
Formula = 3+4.N+3.M.N ?
why the formula is not true ?