Advanced Level     Skills: 8051, Assembly, Maths    
Author

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.

Tags 32bit math assemblymath div assembly32-bit div assembly16-bit multiply assembly32-bit multiply assemblymath routine assembly
  Filesize

96.92 kB

  Downloads

9000

  Rating
 

Comments

samarnath dev
19 Jun 2015: 14:41 PM
how can subtract 23hex from 78hex for 8051 by asm51 code please help me.
  
samarnath dev
19 Jun 2015: 14:43 PM
how can subtract 24hex value from 78hex value for 8051 by asm51 , so please help me.
  
ajay_bhargav
23 Jun 2015: 13:34 PM
@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.
  
(Required; Min length 5)
(Required; will not be displayed)

Conversation

Sat May 15 2021, 11:47 AM
Derek Wolcott
Geometric Energy Corporation announced the dogecoin-funded mission on Sunday, with DOGE-1 representing a 40 kilogram cube satellite flying as a payload on a Falcon 9 rocket.
Thu May 13 2021, 07:18 PM
Rufus
Pretty section of content. I just stumbled upon your weblog and in accession capital to assert that I get actually enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently quickly. https://mkfinstitute.com Trisha Trisha
Wed May 12 2021, 01:23 PM
Jed Roan
Now you can promote your site all over the internet for FREE: http://www3.listofsitesthatacceptfreeads.club
Wed May 12 2021, 08:20 AM
Edgardo
If some one wants to be updated with most recent technologies afterward he must be visit this web page and be up to date every day. annual credit report https://creditscoresetf.com
Wed May 12 2021, 06:11 AM
Laurinda
Great website. A lot of useful information here. I'm sending it to some pals ans also sharing in delicious. And of course, thanks on your effort! annual credit report https://creditscorecheckn.com

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 95, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123