Tuesday, 8 November 2011

program to rotate the stepper motor 360 degree if the value in memory location 3000h is FF else rotate 360 degree anti clockwise


mov al,80
out 0026,al
l3:mov cx,32
dec cx
l5:mov al,[3000]
cmp al,ff
jz l8
jmp l9
l8:mov si,1050
jmp l10
l9:mov si,1054
l10:mov bl,04
l2:mov al,[si]
out 0020,al
call l1
inc si
dec bl
jnz l2
jmp l7
l1:mov dx,0a03
l4:dec dx
jnz l4
ret
l7:loop l5
jz l6
l6:hlt

No comments:

Post a Comment