Explore BrainMass

Explore BrainMass

    Manually Assemble

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write and manually assemble the following programs. All memory addresses include the starting and ending addresses. Show comments and identified source codes.

    1. Clear (place 0s) in all memory locations from 2000h to 200Ah.
    2. Make every odd bit in memory addresses C000h and D000h a 0. Do not change any other bit at each address.

    © BrainMass Inc. brainmass.com March 4, 2021, 6:18 pm ad1c9bdddf

    Solution Preview

    The response is attached in MS WORD file named solution.doc.


    PART 1
    Mem. Mnemonics comments
    1000 MOV CX,000A(h) ; put total number of memory locations in CX

    1002 MOV BX, 2000h ;put address of first memory location in BX

    1004 MOV AX, DS:[BX] ; put contents of memory location specified by
    BX inAX

    1005 AND AX,0000h ; logically AND contents of memory location with
    0000h i.e. clear memory location

    Solution Summary

    The solution writes and manually assembles the following programs.