Sponsored Links


Results 1 to 2 of 2

Thread: CS401 - Computer Architecture and Assembly Language Programming Assignment No 1,2014

  1. #1
    Senior Member
    Join Date
    Oct 2012
    Posts
    323

    CS401 - Computer Architecture and Assembly Language Programming Assignment No 1,2014

    Sponsored Links1



    CS401 - Computer Architecture and Assembly Language Programming Assignment No 1 Solution Due Date: May 05, 2014

    AX = 0200h

    BX = 4336h

    CX = 1234h

    SI = 0100h

    CS = 0FE0h and

    DS = E000h

    You are required to calculate the physical address generated by each of the following instructions:

    MOV AX, [CS: BX + 100]
    MOV CX, [BX + SI + 0x0030]

    Note: Every instruction is independent of others.

    Question No. 2:



    Assemble the given program using NASM.



    ORG 0100H

    XOR AX, AX

    MOV BX, 55H

    Sponsored Links

    MOV AX, 42

    ADD AX, BX

    SUB BX, 02H

    ADD AX, BX

    SUB AX, EA12H

    MOV BX, 22H

    MOV AX, 0X4C00

    INT 0X21

    After that load the Debugger by typing AFD in command prompt as in Fig 1.
    1.jpg

    The AFD window will be opened. The complete description is given below in fig 2

    2.jpg



    When the program is loaded in the debugger, it is loaded at offset 0100, which displaces all memory accesses in our program. Execute the program step by step and examine how the memory is read, the registers are updated and how the instruction pointer moves forward.

    Now we execute the program with F2 key (instruction will move one by one) and write down the contents of the specified registers in the table given below.


    3.jpg

  2. #2

    sir please assignment ka solution chahye plz help me

    Quote Originally Posted by vuassignments View Post

    CS401 - Computer Architecture and Assembly Language Programming Assignment No 1 Solution Due Date: May 05, 2014

    AX = 0200h

    BX = 4336h

    CX = 1234h

    SI = 0100h

    CS = 0FE0h and

    DS = E000h

    You are required to calculate the physical address generated by each of the following instructions:

    MOV AX, [CS: BX + 100]
    MOV CX, [BX + SI + 0x0030]

    Note: Every instruction is independent of others.

    Question No. 2:



    Assemble the given program using NASM.



    ORG 0100H

    XOR AX, AX

    MOV BX, 55H

    MOV AX, 42

    ADD AX, BX

    SUB BX, 02H

    ADD AX, BX

    SUB AX, EA12H

    MOV BX, 22H

    MOV AX, 0X4C00

    INT 0X21

    After that load the Debugger by typing AFD in command prompt as in Fig 1.
    1.jpg

    The AFD window will be opened. The complete description is given below in fig 2

    2.jpg



    When the program is loaded in the debugger, it is loaded at offset 0100, which displaces all memory accesses in our program. Execute the program step by step and examine how the memory is read, the registers are updated and how the instruction pointer moves forward.

    Now we execute the program with F2 key (instruction will move one by one) and write down the contents of the specified registers in the table given below.


    3.jpg
    sir please assignment ka solution chahye plz help me

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 11-27-2014, 03:01 PM
  2. Replies: 0
    Last Post: 07-22-2014, 01:32 AM
  3. Replies: 2
    Last Post: 05-22-2014, 02:48 PM
  4. CS401 Assignment No: 2 Computer Architecture and Assembly Language Programming
    By vuassignments in forum Assignments & Solutions
    Replies: 0
    Last Post: 12-05-2013, 04:28 PM
  5. Replies: 11
    Last Post: 01-20-2011, 03:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft