masud58
Full Member level 2
- Joined
- May 19, 2002
- Messages
- 128
- Helped
- 13
- Reputation
- 26
- Reaction score
- 9
- Trophy points
- 1,308
- Location
- Dhaka, Bangladesh
- Activity points
- 798
Hi @pnjbtr
I'm trying to something like so call reserve engineering for this asm code to understand what is the function to calculate the feedback, based on each mode of operating. Can you please give me a hand about this?
In asm file, there's the code at LEVEL_88:
There's retlw .0 in this pieces of code. I think it'll return and load 0 value to w register. So the remaining code will not being used. Am I right?Code:btfsc 0x51,7 addwf 0x53,f rrf 0x53,f rrf 0x52,f [I][B] retlw .0[/B][/I] addlw .166 addlw .255 addlw .255 addlw .255 addlw .255 movlw .10
Hope to receive your comments soon!
Thanks and best regards,
This code is for MULTIPLICATION,
;**** Define a macro for adding & right shifting **
;Macro
MULT MACRO BIT ;MACRO FOR UNSIGNED MULTIPLICATION
btfsc mulplr,BIT
addwf RESULT_MSB,F
RRF RESULT_MSB,F
RRF RESULT_LSB,F
ENDM ;END OF MACRO FOR MULTIPLICATION
Attachments
Last edited: