Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assembly Language Lab 1 This will be the first programming assignment. It's a basic programming assignment. By the end of the program you will be

Assembly Language

Lab 1

This will be the first programming assignment. It's a basic programming assignment. By the end of the program you will be have program that displays a Hello World message and a performs some basic math.

The lab is broken into three parts: Hello World, Display Registers, Basic Math

50 pts Hello World

For Windows users download Visual Studio C++ Express or another ASM assembler.

Then go to http://kipirvine.com/asm/examples/index.htm to download the libraries from the text. I will assuming that they are stored in C:\irvinefor the rest of this class.

Copy Project_sample C:\Irvine\examples and place it in your own directory. To help me with my grading rename it yourname_lab1.

Currently the program outputs MASM program example

Modify the main.asm file so the program outputs Hello, Your Name

If the program runs with the correct output you get 50 pts out of 100

25 pts Display Registers

Below the Hello World part put the function DumpRegs so it displays what is in the registers.

Do this and the Hello World part you'll get 75 out of 100 pts

25 pts Basic Math

For this part, you will add the numbers 400 + 200 100 all in the EAX register.

Then call DumpRegs so you can see what the values are.

If you do this you 100 out of 100 pts.

_____________________________________________________________

25 pts Extra Credit Input Data

For extra credit, using Irvine's input from console functions read in function have the user input the three numbers that added and subtracted in your program instead of being hard coded in. Pg 145 from the book will help you out.

_________________________________________________________________________

This is what I have so far:

TITLE MASM Template (main.asm)

INCLUDE Irvine32.inc .data myMessage BYTE "Hello, Your name",0dh,0ah,0

.code main PROC call Clrscr

mov edx,OFFSET myMessage 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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Is SHRD compatible with individual career aspirations

Answered: 1 week ago