We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

CS401 Assignment No Solution & Discussion Due Date 16 May 2017

Computer Architecture and Assembly Language Programming (CS401)

Assignment # 02

 

Total marks = 20                                                                              

 

Deadline Date

16th of May,

2017

 

Please carefully read the following instructions before attempting assignment.

 

RULES FOR MARKING

It should be clear that your assignment would not get any credit if:

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or file is corrupt.
  • Strict action will be taken if submitted solution is copied from any other student or from the internet.

 

You should consult the recommended books to clarify your concepts as handouts are not sufficient.

 

You are supposed to submit your assignment in .doc or docx format.

Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.

 

Topic Covered:

  • Branching
  • Unconditional Jumps & Relative Addressing
  • Bit Manipulation
  • Multiplication
  • Bitwise Operations & Masking Operations

 

 

NOTE

 

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

 

If you people find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.

 

For any query, feel free to email at:

cs401@vu.edu.pk

 

 

 

Questions No 01                                                                               20 marks

An arithmetic progression (AP) or arithmetic sequence is a sequence of numbers such that the difference between the consecutive terms (An-1 & An) is constant “d”.

 

You are required to write assembly language code that has two different subroutines:

 

  • Subroutine to generate an Arithmetic Sequence

You will have to write a subroutine named as “A_Sequence”, which will use some local variables “ASeq” & “Ddiff”.

  • Where the “Ddiff” is a data word contains Dh (0xD).
  • The Arithmetic Sequence “ASeq” will start from a decimal number 3.

 

This subroutine will generate first 10 terms of Arithmetic Sequence (ASeq). So, Arithmetic Sequence (ASeq) will be shown as:

 

 

  • Subroutine to find the Arithmetic Sequence Term.

You will have to write a subroutine named as “N_Term”. In this subroutine, while using the Arithmetic Sequence (ASeq) and (Ddiff) from previous subroutine, you are required to find the value of 23rd term of arithmetic sequence.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 5686

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

What is this? iski to kuch smj nhe aa rhi. plz share in notepad.

CS401 Assignment Solution 

Attachments:

CS401 Assignment Solution...!!!

Attachments:

RSS

Latest Activity

afaq posted a discussion
2 hours ago
+ ! ! ! ! ! ! ! ! ! ! dReAm gIrL replied to Zain Kazimi's discussion Self Poetry Dedicated to Nasir Kazimi
3 hours ago
Zain Kazimi posted a discussion
3 hours ago
Azhar Sagar replied to Azhar Sagar's discussion use case diagrams of 4 projects
4 hours ago
+ ! ! ! ! ! ! ! ! STUDENTs +++ liked ♦_"Tooba"_♦'s discussion QUIZ NO 1
4 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU401 Contemporary Issues and Trends in Education
4 hours ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion EDU401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material
4 hours ago
+ M.Tariq Malik's 17 discussions were featured
4 hours ago
+ M.Tariq Malik added a discussion to the group EDU401 Contemporary Issues and Trends in Education
4 hours ago
+ M.Tariq Malik liked Zari's discussion cs502 important topics for mid
4 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU305 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU305 Classroom Management
4 hours ago
Isha Chuhdary and Areeha Chuhdary are now friends
4 hours ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.