说清楚
1、是汇编语言程序吗?
2、再次按K1又怎么了?
追问是单片机89c51的汇编语言及Keil Vision2的仿真图
2.
追答K1 BIT P2.0
K2 BIT P2.1
K3 BIT P2.2
ORG 00H
MOV P2,#255
MAIN: JNB K1,D1OK
JNB K2,left
JNB K3,right
JMP MAIN
D1OK:
CLR P0.0
JMP MAIN
left:
MOV A,P0
RL A
MOV P0,A
JMP MAIN
right:
MOV A,P0
RR A
MOV P0,A
JMP MAIN
END
本回答被提问者采纳