# Assembly language program

Status
Not open for further replies.

#### intisar

##### Newbie level 3
hi

i need help pleeeeeeeeeeeeeeeeeeeeeeeeez

i am Network student

i need help in Subject :
Computer system disgn & architecture
we study assembly language in Intel 8086 processor architecture
i want the solution for this 2 program
pleeeeeeeeez help me before 1-1-2011

(1)
Assembly language propram to divide two numbers and store the remainder and quotient in general register

(2)
Assembly language propram to
solve the following sequence

R2=1+2+3+....N
note: get the N value frome keyboard and display the result R2

Last edited:

#### ckshivaram

##### Advanced Member level 5
Refer ramesh gaonkar for basics or just google it....

When dividing, you either divide a 16 bit number by an 8 bit number or a
32 bit number by a 16 bit number.

Dividing a 16 bit number by an 8 bit number:

The number to divide is to be in AX. The number to divide by (the
denominator) can be in any 8 bit register. The qotient is returned in AL
and the remainder in AH.

Example:

MOV AX,100
MOV CL,2
DIV CL

In a 32 bit by 16 bit divide, place the number to be divided (the numerator
in the AXX pair where AX is the low word). Divide by any other 16 bit
register.

Example:

MOV AX,0
MOV DX,1 ;the ax:dx 32 bit pair now contains the value 65536
DIV CX

The quotient is returned in AX and the remainder in DX.

---------- Post added at 19:26 ---------- Previous post was at 19:25 ----------

http://www.egyankosh.ac.in/bitstream/123456789/24758/1/Unit-4.pdf

#### intisar

##### Newbie level 3
sorry sir
i didn't understand
and i can't get the solution

can you explain more sir?!

#### intisar

##### Newbie level 3

---------- Post added at 08:40 ---------- Previous post was at 08:37 ----------

---------- Post added at 08:42 ---------- Previous post was at 08:40 ----------

#### intisar

##### Newbie level 3
thank you sir

Status
Not open for further replies.

Replies
10
Views
3K
Replies
3
Views
2K
Replies
0
Views
1K
Replies
0
Views
4K
Replies
28
Views
5K