SAW-TOOTH WAVE GENERATION
PROGRAM:
ADDRESS
|
OPCODE
|
LABEL
|
MNEMONICS
|
OPERAND
|
COMMENT
|
80C0
|
|
|
MVI
|
A,80H
|
Load accu with
|
80C1
|
|
|
|
|
80h
|
80C2
|
|
|
OUT
|
43H
|
Load control reg with
|
80C3
|
|
|
|
|
Control word
|
80C4
|
|
UP
|
MVI
|
A,00H
|
Clear accumulator
|
80C5
|
|
|
|
|
|
80C6
|
|
PQR
|
OUT
|
40H
|
Output accumulator value
|
80C7
|
|
|
|
|
To port A
|
80C8
|
|
|
MVI
|
A,FFH
|
Load Accumulator
|
80C9
|
|
|
|
|
with FFH
|
80CA
|
|
|
OUT
|
40H
|
Output Accumulator value
|
80CB
|
|
|
|
|
To port A
|
80CC
|
|
XYZ
|
DCR
|
A
|
Decrement Accumulator
|
80CD
|
|
|
OUT
|
40H
|
Output accumulator value
|
80CE
|
|
|
|
|
To port A
|
80CF
|
|
|
CALL
|
DELAY
|
Goto Subroutine Delay
|
80D0
|
|
|
|
|
|
80D1
|
|
|
|
|
|
80D2
|
|
|
CPI
|
00
|
Compare Accumulator
|
80D3
|
|
|
|
|
Value with 00H
|
80D4
|
|
|
JNZ
|
XYZ
|
If A reg is not zero,
|
80D5
|
|
|
|
|
Goto XYZ
|
80D6
|
|
|
|
|
|
80D7
|
|
|
JMP
|
PQR
|
Jmp to PQR
|
80D8
|
|
|
JMP
|
UP
|
Unconditionally
|
ADDRESS
|
OPCODE
|
LABEL
|
MNEMONICS
|
OPERAND
|
COMMENT
|
80D9
|
|
|
|
|
|
80DA
|
|
DELAY
|
MVI
|
D,05H
|
Load D reg with 05h
|
80DB
|
|
|
|
|
|
80DC
|
|
ABC
|
DCR
|
D
|
Decrement D reg
|
80DD
|
|
|
JNZ
|
ABC
|
If D reg is not zero
|
80DE
|
|
|
|
|
Goto ABC
|
80DF
|
|
|
|
|
|
80E0
|
|
|
RET
|
|
Return to main program
|
|
|
|
|
|
|
|
|
|
|
|
|
OBSERVATION:
No comments:
Post a Comment