What is the value shown in memory


Assignment: Assembly Language Code

• Create a variable that is a BYTE with the value 67. What is the value shown in memory? Show work verifying the value that is set.

• Create a variable that uses 8-bits and correctly stores the value -83. Show what the memory contains and work verifying the result.

• Create an unsigned 16-bit number that stores the value 13330 (decimal). Show what the memory contains and work verifying the result.

• Create a signed 16-bit number and store the value -32 (decimal). Show what the memory contains and work verifying the result.

• Create a variable to hold the value 12345678h (unsigned). (i) Move that variable's value to the EAX register. (ii) Set the AH register to 12. (iii) Set the AL register to the value 34. Show the values of the EAX register before and after each parts (i)-(iii). Verify that data is being moved as expected and describe it.

• Write a program using signed 8-bit variables that computes finalVal = 2*X + 3*Y - Z. X, Y, and Z should be variables that are created in your .data section. Additionally, start with X = 1; Y should be set to five times the value of X. Z should be two times the value of X. Only X should be set in the data section; Y and Z should start uninitialized and then set in the main procedure as described. Create the program in assembly to compute finalVal. Does the value that is computed make sense (show work). In separate runs of the program double your value of X continuing to set the values for X, Y, and Z such that Y = 5X and Z = 2X until the value stored in finalVal no longer make sense. What are the values of X, Y, and Z before and after the result stored is correct. Show the contents in memory and describe why the value in finalVal no longer makes sense.

Format your assignment according to the give formatting requirements:

• The answer must be using Times New Roman font (size 12), double spaced, typed, with one-inch margins on all sides.

• The response also includes a cover page containing the student's name, the title of the assignment, the course title, and the date. The cover page is not included in the required page length.

• Also include a reference page. The references and Citations should follow APA format. The reference page is not included in the required page length.

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: What is the value shown in memory
Reference No:- TGS03174953

Expected delivery within 24 Hours