Help me with Assembly Language for PIC18F4523

Status
Not open for further replies.
Can I use the 4 byte variables math routines from this site. http://avtanski.net/projects/math/

It gives math routines for any variable length, but doesn't know wheather the code will work or not, 'coz I don't understand the code
Code:
 M_STOR_STATUS REG_STATUS
. What does that line do?
 

Attachments

  • math (5).asm.txt
    6.3 KB · Views: 49

Hi,

The 18F has a lot more maths capabilties than the 16F chips; the MUL instruction gives 16 bit results etc.

The M_STOR_STATUS is the name of a Macro , REG_STATUS is a User Variable
See MPlab,HELP,Assmbler - Macro for details - basically the are just very small subroutines where you can also easily pass data them.

Cannot help with those maths routines, think opening another post, as you have done, will get you some fresh help.

What kind of values are you trying to compute ?
 

OK. I want to compute values like 25.876293764043789292 * 1.527289524220079.
 

No. I just want to do floatinf point math using pic asm.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…