Реферат: Блок управления двигателем на МК
nop
nop
djnz r2,st_1
djnz r1,st_2
ret
tabcod: db 0c0h,0f9h,0a4h,0b0h,99h,92h,82h,0f8h,80h,90h
db 0feh,0fdh,0fbh,0f7h,0efh,0dfh,0ffh
db 0c6h,0f8h,0c0h,0c8h,88h,8ch,86h,80h,89h,0ceh,91h,0b0h,82h
; клавиатура
klav: push acc
push p4
push psw
setb psw.3
mov r4,#00h
mov r7,#04h
mov r6,#0feh
loop: mov a,r6
mov p4,a
rl a
mov r6,a
mov a,p4
mov r5,#04h
swap a
rotate: rrc a
jnc dbnc
inc r4
djnz r5,rotate
djnz r7,loop
ljmp quit