Trying to do a task in assembly, while using Microprocessor simulator V5.0. If i understand correctly it simulates 8051 microcontroller. For the task i have to make the motor to a full circle in 36sec and have start,stop buttons. I have very little experience with assembly.
Here is my current code:
;================================
;====Sammmootor-36s-p2rip2eva====
;================================
CLO:
OUT 05 ;Steppermotor
OUT 07 ;Keyboard
;====Liigutame-mootorit=========
SPIN:
mov al,1 out 05
mov al,2 out 05
mov al,4 out 05
mov al,8 out 05
mov al,9 out 05
mov al,1 out 05
mov al,3 out 05
mov al,2 out 05
mov al,6 out 05
mov al,4 out 05
mov al,c out 05
mov al,8 out 05
mov al,9 out 05
mov al,1 out 05
JMP SPIN
END
I have tried many diffrent things found on the web, from chatGPT to buying some documentations online but still havent gotten it to work.
Xypros is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.