Computer Science, asked by umairhameed236, 7 months ago

write an 8051 assembly program (not in c language) to count all non zero bytes in the integer array of ten numbers stored in rom of 89c52 microcontroller.Store the count value in r7,and store the index value of each nonzero byte on to stack.furthermore store the odd numbers found in array on scratch pad

Answers

Answered by Anonymous
0

Answer:

To program any microcontroller available in this world, first you need to learn and understand it’s instruction sets. Instruction set contains a set of instructions that is available for the programmer to create any kind of program he likes. Or in another way, using the instruction set a programmer can create the program required for the specific application he is making. So first of all one needs to master all available instructions, how an instruction works, how the execution of an instruction affects the microcontroller (affecting the registers, psw, stack etc) and the way it is used in a program. Once the instruction set is mastered, you can start playing with programs. Before getting into programming, there are some prerequisites. If you are really new to micro controller and if 8051 is the first one you are playing with, please read the following articles first.

Similar questions