SX/B pause command compiled into assembly = confusion
Attached is a list file of how SX/B compiled a few pause commands into assembly.
Can anyone explain how this code works?
I know this is one way to do a delay:
········mov delay1,#24
oloop···clr delay
wloop·· djnz delay,wloop
········djnz delay1,oloop
The list file code is really confusing to me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Can anyone explain how this code works?
I know this is one way to do a delay:
········mov delay1,#24
oloop···clr delay
wloop·· djnz delay,wloop
········djnz delay1,oloop
The list file code is really confusing to me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Comments
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.sxlist.com/techref/piclist/codegen/delay.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
---
James Newton, Host of SXList.com
james@sxlist.com 1-619-652-0593 fax:1-208-279-8767
SX FAQ / Code / Tutorials / Documentation:
http://www.sxlist.com Pick faster!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔