Assembly language program

Status
Not open for further replies.

intisar

Newbie level 3
Joined
Dec 27, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,305
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:

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

**broken link removed**
 

sorry sir
i didn't understand
and i can't get the solution

can you explain more sir?!
 

Please help me

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

Please help me


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

Please
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…