Division of 16 bit signed value in codewarrior for MC56F8356 controller application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Division of 16 bit signed value in codewarrior for MC56F8356 controller application

1,730 Views
Kanthi
Contributor II
Hello Pascal,
 
    Need your help of 16 bit division of integers in Code Warrior. I am unable to get a 16 bit division value, i am taking help of the file: ARTDIVS16UZ.asm from the math_support folder. Other than adding that asm file, should i need to do anything else?
 
   Can you please help me in this aspect?
 
Thank you,
Kanthi Uppala
Labels (1)
Tags (1)
0 Kudos
1 Reply

258 Views
trytohelp
NXP Employee
NXP Employee
Hello Kanthi,
 
ARTDIVS16UZ.asm file is included in the runtime function.
by default the runtime lib is included in the project.
You don't need to add the asm file in your project.
For instance:
 j=i/j;
is using this function.
 
Please have a look to the project attached.
 
Regards
Pascal
0 Kudos