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:
 

1. What is ASM?

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

2. 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.

3. 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.

4. 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.

5. 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

Replies
1
Views
576
  • Programming and Computer Science
Replies
1
Views
1K
  • Programming and Computer Science
Replies
21
Views
6K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
956
  • Programming and Computer Science
Replies
5
Views
6K
  • Programming and Computer Science
Replies
12
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
2K
  • Precalculus Mathematics Homework Help
Replies
7
Views
839
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
  • Programming and Computer Science
Replies
1
Views
606
Back
Top