## ARM thumb program to find first 10 fibonacci numbers

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 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 […]

## ARM code: Assembly code to add numbers from array

ARM processor is used in all the Embedded systems that are being built now. Here I explain ARM assembly program to add numbers declared in an array. ALGORITHM: Start Create an array of numbers Initialize a counter register to the number of elements in an array Load base address of an array to a register. […]

## 0-99 7 segment Counter on LPC2148 ARM7 Development Board

Fig 1 7 Segment LED Display   0 – 99 7 Segment(SSD) Counter on LPC2148 ARM7 Development Board What is 7 Segment Display(SSD)?  – A seven-segment display is a form of electronic display device for displaying decimal numbers (and some alphabets too). 7-segment displays are simply 7 LEDs placed in one same package.  To change the displayed value, we simply turn on or off […]