Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objective: Learn how to declare and define memory data and transferring data from memory to registers, and learn a program layout at the assembler level

Objective: Learn how to declare and define memory data and transferring data from memory to registers, and learn a program layout at the assembler level by looking at the structure and contents of a listing file.

Requirements:

(8 points) Implement the following expression in assembly language:

AX = val2 + 9 + val3 - val1

Assume that val1, val2, and val3 are 16-bit integer memory variables.

Besides, val2 and val3 are unsigned integer while val1 is signed integer.

Assign val2=11, val3=16, val1=6.

Use the debugger to verify the result in AX.

Report AX value in decimal as part of the Comment header:

Comment header for .ASM files:

Student: Awad Mussa

Class: CSC3210

Assignment#: 3-1

Description: This program .

Result: AX= in decimal

Submit the following:

Lastname1.asm

(7 points) Write a program that contains four instructions:

add the number 10 to the EAX register,

add 8 to the EDX register,

add 3 to ax register,

add 2 to al register.

Build the program and make sure it has no error.

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

Discuss all branches of science

Answered: 1 week ago