Instruction Mnemonic |
Operand |
Comments |
MVI |
A,80 |
Load accumulator with 80 to configure 8255. |
OUT |
CWR |
Configure CWR with 80 as output. |
MVI |
A,00 |
Initialize accumulator to 00H to display ongoing sawtooth
from 00. |
OUT |
PA |
Send value 00 through OUT port A. |
OUT |
PB |
Send value 00 through OUT port B. |
CALL |
DLY |
Call the delay function. |
MVI |
A,FF |
Initialize accumulator with FF to display ongoing square
waveform from bottom of screen. |
OUT |
Pa |
Send value FF through OUT port A. |
OUT |
PA |
Send value FF through OUT port B. |
CALL |
DLY |
Call delay function to continue the wave. |
JMP |
XY |
Jump back to initialize accumulator again (to get next wave). |