ASM Newbie Question: 10/6 Byte Division

  • Thread starter Brazilian Fan
  • Start date
  • Tags
    Division
In summary, ASM (Assembly Language) is a low-level programming language used for specific hardware architectures. A "newbie" in ASM is someone new to programming in this language. "10/6 Byte Division" refers to a division operation involving 10 and 6 bytes of data, commonly used in ASM programming. To perform this operation, one would use the appropriate division instruction, such as DIV. Common mistakes made by ASM newbies when working with 10/6 Byte Division include not properly declaring and initializing variables, not properly setting up the division instruction, and not understanding the difference between signed and unsigned division.
  • #1
Brazilian Fan
2
0
Hi, I am new here and I got a newbie ASM Question:

How to divide, say, a 10 by 6 bytes number if the DIV (or IDIV) opcode only supports a 8 by 4 Bytes division?

Thanks in advance
 
Last edited:
Technology news on Phys.org
  • #2
One way would be to simply use the same algorithm you used in grade-school for long division.

- Warren
 
  • #3
Extended precision math can get tricky. Here's a link to a website that includes source and documentation:

http://www.apfloat.org
 
  • #4
Thanks for the help :smile:
 

FAQ: ASM Newbie Question: 10/6 Byte Division

What is ASM?

ASM (Assembly Language) is a low-level programming language that is used to write programs for specific hardware architectures.

What is a "newbie" in ASM?

A "newbie" in ASM refers to someone who is new to programming in Assembly Language and may not have prior experience with low-level languages.

What does the term "10/6 Byte Division" mean?

"10/6 Byte Division" refers to a mathematical operation, specifically division, involving 10 and 6 bytes of data. It is a common operation in ASM programming for manipulating data.

How do you perform 10/6 Byte Division in ASM?

To perform 10/6 Byte Division in ASM, you would use the appropriate division instruction, such as DIV, which takes two operands and divides the first operand by the second operand.

What are some common mistakes made by ASM newbies when working with 10/6 Byte Division?

Some common mistakes made by ASM newbies when working with 10/6 Byte Division include not properly declaring and initializing variables, not properly setting up the division instruction, and not understanding the difference between signed and unsigned division.

Similar threads

Back
Top