“Swapping of integers is defined as the variables that are interchanged after swapping the variables,called as Swapping of integers” Example: If the input is given as a=5 and b=4 (before Swapping) The output will be as a=4 and b=5 (after Swapping). Input: a=20 and b=40, before swapping. Output: a=40 and b=20, after swapping. […]

# Author: Abhay

## 8051 Program to find 10 fibonacci numbers and store it an array.

Program to find 10 fibonacci numbers and store it an array. In this article let’s learn how to find fibonacci numbers and store it in an array. Basically fibonacci number is a series where each term is the sum of previous two numbers. Algorithm: 1)Store the memmory address in R0 and counter in R3. 2)Store […]

## 8051 Assembly code to find average of all numbers stored in array

We use Indirect addressing mode to access arrays in 8051, because it is efficient and has advantage of accessing adjacent address locations with one base address. So, lets see how to find average of all numbers stored in an array. ALGORITHM: Start Initialize a register with base address of memory location where array is stored […]