Instruction Mnemonic |
Operand |
Comments |
MVI |
A,80 |
Load accumulator with 80H to configure CWR. |
OUT |
CWR |
Configure CWR to display output with accumulator value. |
MVI |
A,00 |
Initialize accumulator with 00 to display up-going staircase
from the bottom of the CRO screen. |
OUT |
PA |
Send the value 00H through output port A. |
OUT |
PB |
Send the value 00H through output port B. |
CALL |
DELAY |
Call delay function to continue the wave. |
ADI |
33 |
Add 33H to the current accumulator value to print next
staircase. |
CPI |
FF |
Compare the incremented value of accumulator with FF to check
whether it has reached maximum value or not. |
JNZ |
XX |
If the accumulator value has not reached maximum jump back to
send value to output port. |