Arrays in JAVA JAVA by Ravinder Nath Rajotiya - April 17, 20210 arrays IN java An array is a container object that holds fixed number of values of single type. An array is used to store collection of data of same type. A link to an array is established after an array is created after creation the link is fixed. Syntax: int X []; or int []X; both mean the same int []numbers =new int[10]; // declare numbers as an array that can store 10 elements, and then assign values of same types at index values 0,1,2,3.... as: int number[0]=5; int number[1]= 10; int number[2]=15;...and so on position or index for array are from 0,1,2... up till 9, making size of array as 10. So we cannot write the value at index 10 because that
Experiment-5 Reading a number from One Port and Sending it to another Port 8086 Programming by Ravinder Nath Rajotiya - April 15, 2021May 9, 20220 Aim: Write a Program to read 16 bit Data from a port and display the same in another port. Objectives: [ To learn configuring of Key board and display module with 8086 microprocessor using 8255PPI Design algorithm and develop a program for accepting data from oneport and displaying it to LCD connected to other port. Equipment Require: 8255 Display Module, 8086 trainer Kit Theory: A Simple approach We can make use of the 8086 IN and OUT instruction to read the data from the device attached to a port and send the data to another port. We can access the ports using direct addressing or indirect addressing Direct address can be provided in the instruction Indirect address is loaded in DX register. here is simple program statements for the