Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please show full work, thank you -ZOOM+ Comp 3350: Computer Organization & Assembly Language HW # 3: Theme: Data declarations, Small program All main questions

image text in transcribed

please show full work, thank you

-ZOOM+ Comp 3350: Computer Organization & Assembly Language HW # 3: Theme: Data declarations, Small program All main questions carry equal weight. (Credit awarded to only those answers with work shown) 1. Declare the following: A. An un-initialized data declaration for a 32-bit signed and unsigned integer B. An initialized data declaration for a 32-bit unsigned integer with the value "A45C2EBlh" and a signed integer with the value of your choice. A null terminated string variable containing the name of your favorite car an arithmetic expression that calculates the total number of hours in a Fortnight. C. D. A symbolic constant named "HoursinFortnight" using the equal-sign directive and assign it 2. Show the order of individual bytes in memory (lowest to highest) for the following double word variable (use little endian order): GoTigers DWORD AlB2C3D4h 3. assembler directives: Show the following using A. How to declare an unsigned dword array of five elements and initialize the array with the following values: 1Ah, 2Bh, 3Ch, 4Dh, 5Eh B. Using the array created in part A of this question, show how to calculate the number of elements contained and assign that t valuc to a symbolic constant named "ArraySize" 4. Why is a string variable declared using the reserved word BYTE as opposed to WORD, DWORD or QWORD? S. Using the AddVariables program from the textbook as a reference, write a program that adds three signed byte sized integers using only 8-bit registers. Plense embed program code into your homework submission. 6. Write a program that prints your on your screen. You can use the following. Assemble and generate the output using MASM and Visual Studio. Embed your output in your submission. TITLE My first assembly program INCLUDE Irvine32.inc DATA Message BYTE "FirstName Lastname"0 CODE main PROC mov edx, offset message Call WriteString exit main ENDP END main -ZOOM+ Comp 3350: Computer Organization & Assembly Language HW # 3: Theme: Data declarations, Small program All main questions carry equal weight. (Credit awarded to only those answers with work shown) 1. Declare the following: A. An un-initialized data declaration for a 32-bit signed and unsigned integer B. An initialized data declaration for a 32-bit unsigned integer with the value "A45C2EBlh" and a signed integer with the value of your choice. A null terminated string variable containing the name of your favorite car an arithmetic expression that calculates the total number of hours in a Fortnight. C. D. A symbolic constant named "HoursinFortnight" using the equal-sign directive and assign it 2. Show the order of individual bytes in memory (lowest to highest) for the following double word variable (use little endian order): GoTigers DWORD AlB2C3D4h 3. assembler directives: Show the following using A. How to declare an unsigned dword array of five elements and initialize the array with the following values: 1Ah, 2Bh, 3Ch, 4Dh, 5Eh B. Using the array created in part A of this question, show how to calculate the number of elements contained and assign that t valuc to a symbolic constant named "ArraySize" 4. Why is a string variable declared using the reserved word BYTE as opposed to WORD, DWORD or QWORD? S. Using the AddVariables program from the textbook as a reference, write a program that adds three signed byte sized integers using only 8-bit registers. Plense embed program code into your homework submission. 6. Write a program that prints your on your screen. You can use the following. Assemble and generate the output using MASM and Visual Studio. Embed your output in your submission. TITLE My first assembly program INCLUDE Irvine32.inc DATA Message BYTE "FirstName Lastname"0 CODE main PROC mov edx, offset message Call WriteString exit main ENDP END main

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899