Our Services

Get 15% Discount on your First Order

[rank_math_breadcrumb]

Computer Project assembly language software use masm and visual studio

COSC 2425 – Programming Project 1
You will write a simple assembly language program that performs a few
arithmetic operations. This will require you to establish your programming
environment and create the capability to assemble and execute the other
assembly programs that will be part of this course.
Your North Lake College student ID number which is ( 3711565 ) Begin by
splitting your student ID into two different values. Assign the four most
significant digits to a variable called ‘left’ and the three least significant
digits to a variable called ‘right’.
You must choose the data type that is appropriate for the range of decimal values each variable can store. You will choose a data type when you define
each of the variables in your program. Try to make efficient use of memory.
Calculate the sum of the two variables ‘left’ and ‘right’. Store this
result in a variable called ‘total’.
Calculate the positive difference between the variables ‘left’ and
‘right’. Store this result in a variable called ‘diff’.
Define a character string called ‘message’ that contains the characters,
“Hello World!”.
Define an array of data type WORD called ‘numbers’ that is initialized to
the following values: 1, 2, 4, 8, 16, 32, and 64.
Write assembly language code using what you know so far (do not look
ahead in the book just yet) to determine the length of ‘numbers’. Store this value in a variable called ‘arrayLength’.

Move the contents of the variable ‘left’ into the EAX register.
Move the contents of the variable ‘right’ into the EBX register.
Move the contents of the variable ‘total’ into the ECX register.
Move the contents of the variable ‘diff’ into the EDX register.
Move the contents of the variable ‘arrayLength’ into the ESI register.
Call the author’s DumpReg routine to display the contents of the registers.
Submit your assembly language source code and a screen shot of the
output. Call your file “XYProject1.asm” where “X” and “Y” are your first and
last initials respectively. If your name were John L. Smith, the file would be
called, “JSProject1.asm”.

1. Instruction

Use the Project32 provided by the textbook author (

here
). (Getting Started with MASM and Visual Studio is where you want to go.) Delete the .asm code provided in Project32, copy your .asm code and paste it into the project. Compile it by choosing Build >> Build Project . If it builds successfully then run it by choosing Debug >> Start without debugging. (This is also  how I will be grading your submitted projects.)

2. For this program you must include the Irvine library (INCLUDE Irvine32.inc). This is explained in Chapter 5 in our book.

3.

4. You also must call DumpRegs in your program. Your output will look something like the sample output below. 

Do NOT write your own DumpRegs. The point of this project is learning to use a library file from the Irvine library in addition to the other required elements.

image1.png

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Computer Science 2 Assignments

Operational Excellence Week 2 Assignment Information Systems for Business and Beyond Questions: · Chapter 3 – study questions 1-8, Exercise 2, 4 & 5 Information Technology and Organizational Learning Assignment: Chapter 3 – Complete the two essay assignments noted below:  · Review the strategic integration section.  Note what strategic integration is and how

Discussion 3: generative adversarial nets

  Generative adversarial nets are mentioned in 2014 by Ian Goodfellow et al.  Why is generative adversarial network a key turning point in the history of generative modeling? Why is the field of image generation important? 

Week 3 – Linear Regression & Business Decision Making

attached file.  An asset management company must replace the manager of its two signature mutual funds, who is about to retire. Two candidates have been short-listed. The management team is divided and cannot decide which of the two candidates would make the better mutual fund manager. The retiring manager presents

data science

Final Exam Due Saturday 11:59 pm (Week 15) You cannot use any of the datasets in our assignments, class notes, and your own midterm project. If you are using the same one, you will receive 0 for your final project. 1. Question Formulation (5 points): You need to devise a

Letter of Recommendations

Hi  Attached is the sample of Letter of recommendation  Please write about it accordingly  1. Write about author :AUTHOR WILL BE professor David Kimble I will give links about his Biography write accordingly or you can use your own search engines about him to write it. 2 . How the

Letter of Recommendations

Hi  Attached is the sample of Letter of recommendation  Please write about it accordingly  1. Write about author :AUTHOR WILL BE professor David Kimble I will give links about his Biography write accordingly or you can use your own search engines about him to write it. 2 . How the

data science

Final Exam Due Saturday 11:59 pm (Week 15) You cannot use any of the datasets in our assignments, class notes, and your own midterm project. If you are using the same one, you will receive 0 for your final project. 1. Question Formulation (5 points): You need to devise a

IT 202

5/15/24, 10:59 AM Assignment Information 1/3 IT 202 Project One Milestone Guidelines and Rubric Overview For the purposes of this assignment, imagine that you are a systems architect at a medium-sized publishing company with 130 employees. The company primarily publishes books, both in print and online. It also produces other

Assessments

Perimeter defense techniques Evaluate the types of assessments, select one that you might use, and explain why it is important. Of the top eight areas to research when conducting an assessment, select no less than three and explain how one should approach the research and why it should be approached

project ppt presentation

Project 3 – Ensemble Methods and Unsupervised Learning In this project you will explore some techniques in unsupervised learning as well as ensemble methods. It is important to realize that understanding an algorithm or technique requires understanding how it behaves under a variety of circumstances. You will go through the

Week 2 understanding on Python.

PDF for reference purpose other file is requirement Python Installation & Examples Atif Farid Mohammad PhD 1. Open any Browser 2. Go to 3. Click at Download button 4. Go to your Download Folder (In both Windows and Mac) a. In Windows you will have the file: Anaconda3-2022.05-Windows-x86_64.exe b. Double

Computer Science Assignments

Operational Excellence Week 2 Assignment information Systems for Business and Beyond Questions · Chapter 2 – study questions 1-10, Exercise 2      Information Technology and Organizational Learning Questions · Chapter 2 – Note why the IT organizational structure is an important concept to understand.  Also, note the role of

Computer Science IT project assignment

Pg. 01 Project I Project Deadline: Sunday 12/5/2024 @ 23:59 [Total Mark is 14] Introduction to Database IT244 College of Computing and Informatics Project Instructions · You can work on this project as a group (minimum 2 and maximum 3 students). Each group member must submit the project individually with

project ppt presentation

Project 3 – Ensemble Methods and Unsupervised Learning In this project you will explore some techniques in unsupervised learning as well as ensemble methods. It is important to realize that understanding an algorithm or technique requires understanding how it behaves under a variety of circumstances. You will go through the

coding

Assignment 6 Due Saturday 11:59 pm (Week 14) Part 1 (50 points) We will explore the Marvel Network Universe. The dataset which you will find in Blackboard consists of the hero’s networks. For this dataset, you will need to ask yourself 3 questions (i.e which superhero knows more superheroes?) ,

project ppt presentation

Project 3 – Ensemble Methods and Unsupervised Learning In this project you will explore some techniques in unsupervised learning as well as ensemble methods. It is important to realize that understanding an algorithm or technique requires understanding how it behaves under a variety of circumstances. You will go through the

How hackers get info

Identify at least two ways in which hackers gather information about companies. What can companies do to limit this access, specifically to the ways you have identified? Which type of information can be gathered with enumeration? How and why should companies protect themselves against enumeration attempts?