Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

(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
Joined
Apr 21, 2008
Messages
5,070
Helped
2,149
Reputation
4,304
Reaction score
2,089
Trophy points
1,393
Location
villingen (Germany) / Bangalore
Activity points
30,097
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 AX:DX 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
Joined
Dec 27, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,305
sorry sir
i didn't understand
and i can't get the solution

can you explain more sir?!
 

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
Please help me

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

Please help me
:cry:

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

Please :(
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top