+1-415-315-9853

info@mywordsolution.com

## Programming

 C/C++ Java DOT NET Python Assembly C Sharp Perl COBOL Visual Basic CAD/CAM Object Oriented Programming Asp.NET PHP JSP Shell Scripting Java Script Ajax CSS/HTML Joomla Wordpress Megento Photoshop DBMS PL-SQL Oracle MS-SQL MS-ACCESS My-SQL SYBASE FOXPRO Excel Programming Language Mobile Applications

problem1)

Choose Array Elements to implement the following C++ code in assembly language, and use the block-structured IF and WHILE directives. Suppose that all variables are 32-bit signed integers: int array[] = {10,60,20,33,72,89,45,65,72,18}; int sample = 50; intArraySize = sizeof array / sizeof sample; int index = 0; int sum = 0; while( index

problem2)

Greatest common divisor (GCD) of two integers is the largest integer which will evenly divide both integers. GCD algorithm involves integer division in the loop, describeed by the following C++ code: intGCD(int x, int y) { x = abs(x); y = abs(y); do {   int n = x % y;   x = y;   y = n; } while (y > 0); return x; } // absolute value. Execute this function in an assembly language and prepare a test program which calls the function many times, passing it different values. Display all the results on the screen.

problem3)

Greatest Common Divisor prepare a recursive implementation of Euclid’s algorithm for finding the greatest common divisor (GCD) of two integers. Descriptions of this algorithm are available in algebra books and on the Web. prepare a test program which calls your GCD procedure five times, using the following pairs of integers: (5,20), (24,18), (11,7), (432,226), (26,13). After each procedure call, display the GCD.

Assembly, Programming

• Category:- Assembly
• Reference No.:- M9780

Have any Question?

## Related Questions in Assembly

### Problemyou have to write a subroutine assembly language

Problem: You have to write a subroutine (assembly language code using NASM) for the following equation. DX= (AX 2 + (AX-1) + 2*(AX+2))/2 Note: You cannot use MUL or DIV instructions, you have to perform multiplication an ...

### Assembly languagelab assignmentin this lab we will write an

Assembly Language Lab Assignment In this lab we will write an assembly program to implement a Finite State Machine (FSM) that recognizes hexadecimal integer constant that conforms to MASM syntax. The hexadecimal constant ...

### Binary is a numer system used by computers it consists of

Binary is a numer system used by computers. It consists of only two digits, 0 and 1, which represent off and on. In decimal numbers, there are ten digits, 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. When you write 247 in decimal, ...

### Questions statementyou have to write a subroutine assembly

Questions Statement You have to write a subroutine (assembly language code using NASM) for the following equation. DX= (AX 2 + (AX-1) + 2*(AX+2))/2 Note: You cannot use MUL or DIV instructions, you have to perform multip ...

### Assembly language labfibonacci numbers are integers 0 1 1 2

Assembly Language Lab Fibonacci numbers are integers 0, 1, 1, 2, 3, 5, 8, 13, 21 ... If function fib(n) represents the nth Fibonacci number, we have fib(n) = fib(n-1) + fib(n-2) for n > 2, and fib(1) = 0, fib(2) = 1. The ...

### Questions statementyou have to write a subroutine assembly

Questions Statement You have to write a subroutine (assembly language code using NASM) for the following equation. DX= (AX 2 + (AX-1) + 2*(AX+2))/2 Note: You cannot use MUL or DIV instructions, you have to perform multip ...

### Project marie start code at bottom of Project MARIE Start code at bottom of document 1.

Project MARIE Start code at bottom of document 1. Introduction The objective of this project is to reinforce your understanding of computer organization, instruction set architectures, and assembly language. You will acc ...

• 13,132 Experts

## Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

### Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

### Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

### Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

### Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

### Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen