Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS401 - Computer Architecture and Assembly Language Programming Assignment No 1,2014
#1

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.

.jpg   1.jpg (Size: 26 KB / Downloads: 1,768)

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


.jpg   2.jpg (Size: 64.13 KB / Downloads: 1,760)



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.



.jpg   3.jpg (Size: 87.29 KB / Downloads: 1,945)
Reply
#2
vuassignments Wrote:

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.
[Image: attachment.php?thumbnail=13137]

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

[Image: attachment.php?thumbnail=13138]



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.


[Image: attachment.php?thumbnail=13139]
sir please assignment ka solution chahye plz help me
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cs403 Assignment 3 Helping material May 8,2010 viki 1 5,208 04-28-2020, 03:19 PM
Last Post: ClaireBeauc
  cs301 assignment no 3 Solution 20 January 2016 Vuhelper 0 11,093 01-20-2016, 03:32 PM
Last Post: Vuhelper
  CS201 Assignment vo 3 Solution 20th January 2016 Vuhelper 2 2,601 01-20-2016, 03:28 PM
Last Post: Vuhelper
  CS101 Assignment no 3 Solution 20th January 2016 Vuhelper 0 2,284 01-20-2016, 03:25 PM
Last Post: Vuhelper
  SOC101 INTRODUCTION TO SOCIOLOGY assignment no 3 Solution 20 January 2016 Vuhelper 0 1,873 01-20-2016, 03:19 PM
Last Post: Vuhelper
  CS402 Assignment No 4 Solution & Discussion Xpert 0 2,105 08-01-2015, 02:33 AM
Last Post: Xpert
  cs101 Assignment No. 1 Solution 21 may spring 2015 semester Xpert 0 2,912 05-21-2015, 12:41 AM
Last Post: Xpert
  Assignment solution eng 301 due date 20 may 2015 rumesa khan 3 4,538 05-20-2015, 01:34 AM
Last Post: Xpert
  PHY301 Circuit Theory Assignment No. 1 idea Solution spring may 2015 semester Xpert 0 1,563 05-15-2015, 03:52 AM
Last Post: Xpert
  Assignment No. 01 Spring 2015 Information Systems CS507 idea solution spring 2015 Xpert 0 2,451 05-15-2015, 03:49 AM
Last Post: Xpert

Forum Jump:


Users browsing this thread: 1 Guest(s)