- UID
- 120388
- 性别
- 男
|
MOV A,@0
IOW R6
MOV A,@1
MOV PORT6,A
SHIFT_L:
RLC PORT6
CALL DELAY
JBS PORT6,7
JMP SHIFT_L
SHIFT_R:
RRC PORT6
CALL DELAY
JBS PORT6,7
JMP SHIFT_R
JMP SHIFT_L
DELAY:
MOV A,@200
MOV COUNT0,A
DLY_LP0:
MOV A,@200
MOV COUNT1,A
DLY-LP1:
NOP
NOP
NOP
DJZ CIUNT1
JMP DLY-LP1
DJZ COUNT0
JMP DLY_LP0
RET
上面的程序是EM78P458上写的,但我不知道DLY-LOP0和DLY-LP0需要在什么条件下运行,请各位高手指点一下 |
|