![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jul 2007
Posts: 4
Rep Power: 0
![]() |
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! |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |