Assemby Language Samples??

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there any place to find assembly language samples?

 

I need a 32X32 multiply routine. 4 bytes time 4 bytes.

 

That's a 64 bit product. 8 bytes.

 

Bob Macklin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can do the old shift and add or use the mul instruction and add the sub products.
There was an old avr app note that has asm examples.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

which chip?  Some have a mul instruction, which simplifies, otherwise it's bit by bit fun

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here is one for the Atmel assembler, I think it is from ELM_Chan site

 

Edit oops looks like it needs a companion 16 bit routine or at least a bit of it.

Attachment(s): 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Fri. May 17, 2019 - 06:42 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks,

 

That will do it!

 

Bob Macklin

Seattle, Wa

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

cklinbob wrote:

Is there any place to find assembly language samples?

There is always www.avrbeginners.net and the early AVR application notes from Atmel.