Question: CS-21, Fall 2018 Chapter 3 Assignment Project - Chapter 3: Simple Arithmetic Possible Points: 30 The Problem Let's do some arithmetic with different data types!
CS-21, Fall 2018 Chapter 3 Assignment Project - Chapter 3: Simple Arithmetic Possible Points: 30 The Problem Let's do some arithmetic with different data types! A. Create a Linux-based assembler language program (nasm) which: 1. Defines these variables: 1. A: A single byte 2. B: A word 3. C: A double word 4. D: A double word Using the eax register (and its sub-registers), process the following equations (ONLY using the mov, add and sub assembly keywords): 1. A+ (B+C) D 2, (A + C)-B-D 2. 3. Using the linux function library, print a string describing each equation, the values in each variable, and then the answer B. Create a Windows-based assembler language program (masm) which does everything that your linux program does (A), except, use the appropriate MASM keywords and the Irvine print functions Use the following values in your equation: A. 10h B. 2000h C. 30000h C. CS-21, Fall 2018 Chapter 3 Assignment Project - Chapter 3: Simple Arithmetic Possible Points: 30 The Problem Let's do some arithmetic with different data types! A. Create a Linux-based assembler language program (nasm) which: 1. Defines these variables: 1. A: A single byte 2. B: A word 3. C: A double word 4. D: A double word Using the eax register (and its sub-registers), process the following equations (ONLY using the mov, add and sub assembly keywords): 1. A+ (B+C) D 2, (A + C)-B-D 2. 3. Using the linux function library, print a string describing each equation, the values in each variable, and then the answer B. Create a Windows-based assembler language program (masm) which does everything that your linux program does (A), except, use the appropriate MASM keywords and the Irvine print functions Use the following values in your equation: A. 10h B. 2000h C. 30000h C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
