Micro processor Lab Manual / Generate Down Going Staircase wave form ALP

Program Name

Write a Assembly Language Program for Generate Down Going Staircase wave form .
Theory
Instruction Mnemonic Operand Comments
MVI A,80H Load Accumulator with immediate data 80H.
OUT CWR Send content of Accumulator to Control Word Register.
MVI A,FF Load initial count.
OUT P A Send data to port A.
OUT PB Send data to port B.
CALL DLY Call delay subroutine.
SUI 33H Subtract immediately from Accumulator.
CPI FFH Compare content of Accumulator with max (FF) count.
JNZ XY jump to XY if result of previous operation is not equal to zero.
JMP YZ Jump to YZ to repeat the process.


Delay Code
Instruction Mnemonic Operand Comments
MVI B,FF Load register B with FF.
DCR B Decrement count value.
JNZ YY Jump to YY if result of previous operation is not equal to zero.
RET Return to main program.
Program Code


Online compiler for 8085 Microprocess Compiler


Home     Back