Comp 3350 HW # 3:  Theme: Data declarations, Small program solution

$25.00

Original Work ?

Download Details:

  • Name: Assignment-3-1.zip
  • Type: zip
  • Size: 252.45 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (1 vote)

 

  1. Declare the following:
  2. An un-initialized data declaration for a 32-bit usigned integer

 

  1. An initialized data declaration for a 32-bit unsigned integer with the value “1234h”

 

  1. A null terminated string variable containing your name and favorite vegetable

 

  1. A symbolic constant named “MinutesInMonth” using the equal-sign directive and assign it an arithmetic expression that calculates the total number of minutes in a month.

 

  1. Show the order of individual bytes in memory (lowest to highest) for the following double word variable (use little endian order): var1 DWORD 2233129887h

 

  1. Show the following using assembler directives:
  2. How to declare a signed double-word array of eight elements and initialize the array with the following values: 43h, 32h, 25h, 12h, 99h, 44h, 77h, 88h

 

  1. Using the array created in part A of this question, show how to calculate the number of elements contained and assign the value to a symbolic constant named “ArraySize

 

  1. Why is a string variable declared using the reserved word BYTE as opposed to WORD, DWORD or QWORD?

 

  1. Using the AddSub program from the textbook as a reference, write a program that adds three word sized integers using only 16-bit registers. Please embed program code into your homework submission.

 

  1. Write a program that prints War Eagle on your screen. You can use the following. Assemble and generate the output using MASM and Visual Studio.  Embed your output in your submission.