View Single Post
Old Jul 25th, 2007, 6:00 AM   #1
blitzmage_89
Newbie
 
Join Date: Jul 2007
Posts: 4
Rep Power: 0 blitzmage_89 is on a distinguished road
8088 assembly problem , half done need help

The problem :

An 8-byte ( 64-bit ) value is stored in a memory whose effective address is stored in CX. Another 8byte is stored in memory whose EA is DX. Write a function that adds the 2 8byte values and store the result to memory location whose effective address is stored in DI. Assume the most significant byte for each 8 byte value is stored in the highest memory location.
__________________
Can someone help me or provide the additional code needed? I made an assembly code in the past related to this but I can't figure out what to add to make it work
____________________--
Partial Code but not related to the problem above(Logic):
------------------------------...
MOV DS,AX
MOV ES,AX
MOV CX,2
MOV SI,0
L2: MOV AX,ALPHA[SI]
MOV BX,BETA[SI]
MOV DX,ALPHA[SI+2]
MOV DI,BETA[SI+2]
ADD BX , [TEMP]
ADD AX,BX
ADC DX,DI
MOV [TEMP],0
JNC L1
MOV [TEMP] , 1
L1:MOV wordptr RESULT [SI],AX
MOV wordptr RESULT [SI+2],DX
ADD SI , 4
LOOP L2
------------------------------...
Tnx guys , any help is appreciated!
blitzmage_89 is offline   Reply With Quote