Simple Assembly Language Question
tom90
Posts: 55
I am trying to learn assembly language by sending a control byte of 10010000 to an A/D chip.
I send:
mov outa, pin
to set the pin high for the first one.
How do I set the pin low for the next 0?
I know i can use XOR to toggle the output state, but this doesn't seem to be working very well.
in spin I would just say:
outa[noparse][[/noparse]Pin]:=0
Is there an assembly language equivalent to this?
Thanks
Tom
I send:
mov outa, pin
to set the pin high for the first one.
How do I set the pin low for the next 0?
I know i can use XOR to toggle the output state, but this doesn't seem to be working very well.
in spin I would just say:
outa[noparse][[/noparse]Pin]:=0
Is there an assembly language equivalent to this?
Thanks
Tom
Comments
Post Edited (Mike Green) : 10/9/2007 4:13:44 PM GMT
http://forums.parallax.com/showthread.php?p=647408
deSilva has also done an excellent tutorial on assembly that is well worth reading but I don't have the link to hand at the moment.
Graham
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?