Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need some help creating this assembly program. I understand how to do the first step but not the first step. We are using the

I need some help creating this assembly program. I understand how to do the first step but not the first step. We are using the x86 processor, and they all are 32 bit programs. The programming language is Assembly, and we are using visual studio community.

1) Create a definition of each data type listed below. Initialize each variable to a value that is consistent with its data type. Then move each variable into a register and step through your program to make sure that it works. Note: Make sure that your variable sizes match the register sizes. BYTE, SBYTE, WORD, SWORD, DWORD, SDWORD,REAL4 Variables are in memory. To see them, while paused in debug mode, add a Memory window to your view. You can type on addresses to find values. To find a variable by name, use & in front of it. (e.g. for a variable named bVar, use &bVar).

2) Declare an array of 60 uninitialized unsigned doubleword values. Create another array of 60 unsigned doublewords, initialized to abcd. Look at these arrays in the memory window and note how they are stored. (Intel architecture uses little - endian order).

This is some of the code I have done.

image text in transcribed

INCLUDE Irvine32.inc .data A_value BYTE 10,20,30 B_value SBYTE 10 C_value WORD 65 D_value SWORD +6 E_value DWORD 12 F_value SDWORD -6 G_value REAL4 1.2 .code Emain PROC Mova, A_value MOV bb, B_value MOV a,C_value mod ,D_value MON es ,E_value mov ed,F_value Old G_value invoke ExitProcess, o main ENDP Cond main INCLUDE Irvine32.inc .data A_value BYTE 10,20,30 B_value SBYTE 10 C_value WORD 65 D_value SWORD +6 E_value DWORD 12 F_value SDWORD -6 G_value REAL4 1.2 .code Emain PROC Mova, A_value MOV bb, B_value MOV a,C_value mod ,D_value MON es ,E_value mov ed,F_value Old G_value invoke ExitProcess, o main ENDP Cond 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

Big Data And Hadoop Fundamentals Tools And Techniques For Data Driven Success

Authors: Mayank Bhushan

2nd Edition

9355516665, 978-9355516664

More Books

Students also viewed these Databases questions

Question

What is the environment we are trying to create?

Answered: 1 week ago

Question

How can we visually describe our goals?

Answered: 1 week ago