Mathematics [ Mathematical libraries, for calculation and useful algorithms.. ]
Math Library
Author Intel
Description These assembler files contain various math functions for 8051 and compatible microcontrollers:

The file MATH32.A51 contains code for the following 32-bit math
functions:
  • Add a 16-bit value to the 32-bit 'accumulator'.
  • Add a 32-bit value to the 32-bit 'accumulator'.
  • Subtract a 16-bit value from the 32-bit 'accumulator'.
  • Subtract a 32-bit value from the 32-bit 'accumulator'.
  • Multiply the 32-bit 'accumulator' by a 16-bit value.
  • Divide the 32-bit 'accumulator' by a 16-bit value.


The file DIV16BY8.A51 contains code to divide a 16-bit dividend by an 8-bit divisor and produce a 16-bit quotient and an 8-bit remainder.

The file LONGDIV.A51 contains code to divide an N-byte dividend by an N-byte divisor and produce an M-byte quotient.
[skill]8051, Assembly, Maths[/skill][prlevel]3[/prlevel][summary]These assembler files contain various math functions for 8051 and compatible microcontrollers. The file MATH32.A51 contains code for the following 32-bit math
functions[/summary]
Image no image available
Filesize 96.92 kB
Date
Downloads 10386
Download
Rating
 9.5 - 2 votes  
<< Previous [Long Division In Assembly] Back to list [Square Root] Next >>


Comments
how can subtract 23hex from 78hex for 8051 by asm51 code please help me.

[ Comment by samarnath dev :: ]


how can subtract 24hex value from 78hex value for 8051 by asm51 , so please help me.

[ Comment by samarnath dev :: ]


@samarnath dev, both 0x23 and 0x78 are 8-bit values, use simple "SUBB" instruction to subtract them. Move one value in A and other in R0 or you can give direct data. Post in forum for help.

[ Comment by :: ]





You must be logged in to make comments on this site - please log in, or if you are not registered click here to signup