In this article let’s learn how to find the first 10 Fibonacci numbers.Usually Fibonacci numbers start from 0,1,1,2……In this, we can observe that the present number in Fibonacci is the summation of the previous two numbers. So in this, we should initialize the first two numbers as -1 and +1 so that our algorithm works […]

# ARM

## ARM assembly code to find number of ones and zeros in a 32 bit number

Hello guys! Today we will see how to find number of ones and zeros in a 32 bit number. Let’s first understand the algorithm later we see a example code. Algorithm: Start Store a 32 bit number in register(Rd). Initialize a counter register to 1Fh(32) Initialize one regiter(Ra) to zero to store number of ones, […]

## Embedded C to find the number of one's in a given 32bit number and optimize the code

Embedded C to find the number of one’s in a given 32bit number and optimize the code In this article let’s learn how to optimize a program.The program which is used for optimization is to find number of ones in a given 32bit number. First let’s write a simple code and then let’s see how […]

## ARM Assembly code to find number of positive numbers in an array

Let’s see how to write a ARM assembly code to find number of positive numbers in an array. ALGORITHM Start Load the base address of array. Initialize a counter register to number of elements in array. Initialize a register(Rd) to zero to store number of positive numbers. Load the value from array to a temporary […]

## ARM Assembly code to find number of negative numbers in an array

Let’s see how to write a ARM assembly code to find number of negative numbers in an array. ALGORITHM Start Load the base address of array. Initialize a counter register to number of elements in array. Initialize a register(Rd) to zero to store number of negative numbers. Load the value from array to a temporary […]

## ARM assembly code to find number of odd numbers in an array

Let’s see how to write a ARM assembly code to find number of odd numbers in an array. ALGORITHM Start Load the base address of the array. Initialize a counter register to the number of elements in the array. Initialize a register(Rd) to zero to store number of odd numbers. Load the value from array […]

## ARM Assembly code to find number of even numbers in an array

Let’s see how write a ARM assembly code to find number of even numbers in an array. ALGORITHM Start Load the base address of array. Initialize a counter register to number of elements in array. Initialize a register(Rd) to zero to store number of even numbers. Load the value from array to a temporary register. […]

## ARM Assembly code for block transfer of data

ARM processor is used in all the Embedded systems that are being built now.ARM has both 32-bit and 64-bit RISC multi-core processors. RISC processors are designed to perform a smaller number of types of computer instructions so that they can operate at a higher speed, performing more millions of instructions per second. By […]