Adil Khan 7 years ago
AdiKhanOfficial #Computer Organization

Assignment No 3 - Computer Organization and Assembly Language

 Assignment No 3: 

Q1.      Declare a symbolic constant using the equal-sign directive that contains the ASCII code (08h) for the Backspace key.

Ans:     BACKSPACE=08h

Q2.      Declare a symbolic constant named SecondsInDay using the equal-sign directive and assign it an arithmetic expression that calculates the number of seconds in a 24-hour period.

Ans:     SecondsInDay = 24 * 60 * 60

Q3.      Write a statement that causes the assembler to calculate the number of bytes in the following array, and assign the value to a symbolic constant named Array Size: my Array WORD 20 DUP (?)

Ans:     ArraySize = ($-myArray)

Q4.      Show how to calculate the number of elements in the following array, and assign the value to a symbolic constant named Array Size: myArray DWORD 30 DUP (?)

Ans:     ArraySize = ($-myArray) / TYPE DWORD

 Q5.     Use a TEXTEQU expression to redefine “PROC” as “PROCEDURE.”

Ans:     PROCEDURE TEXTEQU

Q6.     Use TEXTEQU to create a symbol named Sample for a string constant, and then uses the symbol when defining a string variable named MyString.

Ans:     Sample TEXTEQU <"This is a string">

MyString BYTE Sample

Q7.      Use TEXTEQU to assign the symbol SetupESI to the following line of code:mov esi,OFFSET myArray

Ans:     SetupESI TEXTEQU

 

Assignment No 3 _ 0.pdf

Download: Assignment No 3 _ 0.pdf

0
4.6K
Futuristic bionic leg for amputees

Artificial limbs, or prostheses, are used to replace a missing body part which may have be...

1675638330.png
Adil Khan
1 year ago
REAL TIME MONITORING OF PUBLIC PLACE TO PROTECT PEOPLE FROM A SUSPECTE...

Our project title is&nbsp;"REAL TIME MONITORING OF PUBLIC PLACE TO PROTECT PEOPLE FROM A S...

1675638330.png
Adil Khan
1 year ago
BIMGIS based integrated framework for Khewra salt mine Utility Managem...

This project is integrating subsurface stratum geology of Khewra salt mine with BIM (Build...

1675638330.png
Adil Khan
1 year ago
Civil Project Management System CPMS

&nbsp; Project Implementation Method (less than 2500 characters)

1675638330.png
Adil Khan
1 year ago
VIRTUAL REALITY MULTIDISCIPLINARY PLATFORM FOR E- LEARNING

&nbsp; In this project, we discuss the potential of using virtual reality collaborative pl...

1675638330.png
Adil Khan
1 year ago