User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 402,674 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,345 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser: Programming Forums
Views: 1236 | Replies: 1
Reply
Join Date: Apr 2007
Posts: 5
Reputation: cjwenigma is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cjwenigma cjwenigma is offline Offline
Newbie Poster

8086 Assembly Problems Help

  #1  
Apr 25th, 2007
8086 Assembler ...I need the code for the following problems to do a few things.....try and include inline comments so i could understand them better... that could help me out..
PLEASE!..Thanks

1. Count the number of bits, in the double word that starts at memory location DS:1234h, that are 1. Place the count in register AL.

2. Count the number of bytes, between location 60000h and 60100h, that are an even number. Place the count in register BH.

3. Move the 100h bytes located from 60000h to 600FFh to locations 60200h to 602FFh, in reverse order. The byte located at 60000h is stored at location 602FFh and so on until the byte located at 600FFh is stored at location 60200h.

4. Move every byte of data from memory locations 60000h to 600FFh to memory addresses 601C0h to 602BFh. As the data is moved, count the number of bytes that are greater in magnitude than 7Fh, using register DX to hold the count.

5. Repeat Problem 4 for data of word length. Count the number of words that exceed 7FFFh in magnitude, using register DL to hold the count. State your assumptions as to how bytes of the word are stored in memory.

6. Count the number of bytes, stored from memory address 60000h to 60200h, that are smaller than or equal to the number 4Bh. Use register CX to hold the count.

7. Add together all of the 2-word numbers that are stored from address 60000h to 60FFFh in memory. Store the sum starting at location 61020h. Each 2-word number may range in size from 00000000h to FFFFFFFFh. State your assumptions as to how the words for each number are stored in memory and how large the final some can be.


Help would be so great right now.. my teacher is dumb as a box of rocks.. and i need to learn this stuff.... remember to inline comment everything if you could so i can understand the code....

Thanks again!!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 49
Reputation: Purple Avenger is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Purple Avenger Purple Avenger is offline Offline
Light Poster

Re: 8086 Assembly Problems Help

  #2  
Apr 27th, 2007
We're not going to do your homework for you. Show you made an effort, and then you may get some help.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Assembly Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Assembly Forum

All times are GMT -4. The time now is 4:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC