Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cs401 assignment no 1 spring may 2015 solution for idea
#1
[h=1]CS401 - Computer Architecture and Assembly Language Programming Assignment No. 1 Solution and Discussion Spring 2015 Due Date: May 20, 2015 spring 2015 idea solution[/h]
Question 1 Marks 10

Suppose the current state of all registers, pointers and segments are provided through the AFD snap
[Image: attachment.php?attachmentid=24787&stc=1]
You are required to calculate Physical Addresses for the following two combinations:

  1. BX+SI+0xFF00
  2. BP+DI+0xA000


Question 2 Marks 10
Assume the following Pseudo Code and convert it into proper assembly language instructions that should be assembled and debugged using NASM.


  1. Declare an array named as P_NUM of 5 elements that contains first five prime numbers.
  2. Set CX to 5 in decimal.
  3. Move the first element of P_NUM array to the AX.
  4. Move the fourth element of P_NUM array to the BX.
  5. Move last element from P_NUM array to the DX.
  6. Add the values of AX and BX and store the result in AX.
  7. Add the values of new AX and DX and store the result in BX.


Attached Files
.jpg   CS401ComputerArchitectureandAssemblyLanguageProgrammingAssignmentNo.1Solution.jpg (Size: 148.24 KB / Downloads: 2,852)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cs403 Assignment 3 Helping material May 8,2010 viki 1 5,211 04-28-2020, 03:19 PM
Last Post: ClaireBeauc
  cs301 assignment no 3 Solution 20 January 2016 Vuhelper 0 11,096 01-20-2016, 03:32 PM
Last Post: Vuhelper
  CS201 Assignment vo 3 Solution 20th January 2016 Vuhelper 2 2,606 01-20-2016, 03:28 PM
Last Post: Vuhelper
  CS101 Assignment no 3 Solution 20th January 2016 Vuhelper 0 2,287 01-20-2016, 03:25 PM
Last Post: Vuhelper
  SOC101 INTRODUCTION TO SOCIOLOGY assignment no 3 Solution 20 January 2016 Vuhelper 0 1,879 01-20-2016, 03:19 PM
Last Post: Vuhelper
  virtual university research announcement for 2015-16 Xpert 0 1,822 09-07-2015, 12:18 AM
Last Post: Xpert
  CS402 Assignment No 4 Solution & Discussion Xpert 0 2,108 08-01-2015, 02:33 AM
Last Post: Xpert
  cs101 Assignment No. 1 Solution 21 may spring 2015 semester Xpert 0 2,916 05-21-2015, 12:41 AM
Last Post: Xpert
  Assignment solution eng 301 due date 20 may 2015 rumesa khan 3 4,539 05-20-2015, 01:34 AM
Last Post: Xpert
  PHY301 Circuit Theory Assignment No. 1 idea Solution spring may 2015 semester Xpert 0 1,566 05-15-2015, 03:52 AM
Last Post: Xpert

Forum Jump:


Users browsing this thread: 1 Guest(s)