assembly language ( intel 8088/8086)

Status
Not open for further replies.

goodtime

Member level 2
Joined
Apr 7, 2008
Messages
47
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,551
intel 8088 assembly language

write assembly program that will add two values each 32 bits??

any one can help me
 

If I remember correctly, it is:

<pre>
MOV CX,SIZE/2 // Number of words
MOV BX,0 // Offset into Array
CLC // Clear Carry
TOP MOV AX,[BX+A] // Load 16 bits of A
ADC AX,[BX+B] // Add 16 bits of B
MOV [BX+C],AX // Store 16 bits of C
INC BX // Increase BX to
INC BX // next word index
LOOP Top // Repeat until CX=0
</pre>

Added after 3 minutes:

Sorry for the crappy formatting. Hope it helps!

Added after 2 minutes:

This pdf file might be helpful:

https://www.cs.umass.edu/~verts/cmpsci201/spr_2004/Lecture_03_2004-02-02_The_8088_processor.pdf
 

    goodtime

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…