Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly Language DaWei Coder's Corner Lounge 0 Apr 26th, 2007 10:15 PM
management system problem l2u C# 4 Mar 19th, 2007 2:30 PM
Assembly, Assembler? v0id Assembly 15 May 4th, 2006 8:52 AM
Assembly without a compiler grimpirate Assembly 16 Sep 8th, 2005 6:07 AM
SPIM Assembly Programming Simulation Problem tsgrimey Assembly 1 Feb 9th, 2005 2:21 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:59 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC