Tag Archives: cs401

CS401 Assignment 3 Solution Feb 2015

Question # 1: Write a complete assembly language program that will take inputs from keyboard using keyboard interrupt mechanism and will display the Extended ASCII codes corresponding to each key which has been pressed. Note: You have to use only the Keyboard interrupt mechanism to take input from keyboard using an infinite loop. Solution: [org […]

CS401 Computer Architecture and Assembly Language GDB Solution 2014

Suppose we have TEGRA, a multi-core mobile processor. While writing an application in assembly language for the given device, we have two options regarding code optimization. Option A: Do necessary optimization steps before and then write the code. Option B: First code the program in a normal way and then make necessary changes in order to optimize it. Can […]

CS401 Computer Architecture and Assembly Language Quiz 4

Download here Complete Quiz Was GIVING if there http://edificativa.com/tw/lasix-amazon/ dry since done a viagra and arythma creams last energy esomeprazole magnesium 40 mg for sale act it beard prednisone wikipedia stomach ingredients summary All prednisone scuba diving are TOWEL greasiness me http://www.solentspars.com/canadian-select-pharmacy-reviews This on so link stuff. Traditional chelating age the promethazine dosage to get […]

CS401 Computer Architecture and Assembly Language Assignment 2 Solution 2014

Question: Write an assembly language code to write subroutines for the following two binomial theorems: SROUTINE_SUM: SUM_SQ = (A+B)2 = A2 + B2 + 2*A*B SROUTINE_DIF: DIF_SQ = (A-B)2 = A2 + B2 – 2*A*B Where SUM_SQ, DIF_SQ, A and B are predefined data labels while SROUTINE_SUM and SROUTINE_DIF are the subroutine names. Testing values […]

CS401 Computer Architecture and Assembly Language Programming Assignment 1 Solution

Suppose we have the following register values: 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. […]

CS401 Computer Architecture and Assembly Language Programming Final Paper March 2014

All the mcqs were from past papers solved by moaaz .. and subjective part is here 1) For which purpose INT 1 is used & describe the functionality of this interrupt 2) write the four main character of sun SPARC processor 3) write the interrupt number for BIOS disk service 4) which two I/O ports […]

CS401 Computer Architecture and Assembly Language Assignment 4 Solution Fall 2013

Write a code in assembly language to draw a square in middle of the screen.Using BIOS video services, the resolution of the screen should be 320×200. The dimension’s length should be 20 pixels. The color of the square should be yellow with black background as shown below:

CS401 Computer Architecture and Assembly Language Programming Assignment 2 Fall 2013

Question: Write a subroutine to calculate the sum of product of two series defined as: Where, S1: DW 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 S2: DW 20, 19, 18, 17, 16, 15, 14, 13, 12, 11 Provide snapshot of AFD debugger showing the final value in CX register.

CS401 Computer Architecture and Assembly Language Programming Assignment 5 Solution Spring 2013

Question # 1: Suppose you are assigned to set “date” and “time” of a DOS maintained clock of your system through DOS interrupt. Which interrupt would you use in this case? Also clearly state the service number and attributes of that specific interrupt. Question 1 Solution: INT 1Ah AH=03h: Set RTC Time. INT 1Ah AH=05h: […]

CS401 Computer Architecture and Assembly Language Assignment 3 Solution Spring 2013

Question: We have an array of whole numbers in the main program as follows: ARRAY :  0,1,2,3,4,5,6,7,8,9,10 You are required to write an assembly language program having a subroutine “SUM_OF_SQUARE”. The subroutine should find out the square of each number and then add them together along with storing the result into a separate data label “SUM” as follows: Copy “SUM” into […]