Shop OBEX P1 Docs P2 Docs Learn Events
bug with SxSim ? skip — Parallax Forums

bug with SxSim ? skip

Jean BrunetJean Brunet Posts: 10
edited 2006-01-17 22:42 in General Discussion
Hello,

I am a curious result with skip instruction. mad.gif
dat = ra.3
horl = ra.2

WriteByte
·········· mov·data,w
········· ·mov·temp,#8
:c3····· setb·Horl
·········· sb·data.7········· ; bit 7·at 1 ?
·········· jmp·:nobit
·········· setb·dat·········· ;· dat = 1
·········· skip
:nobit·· clrb·dat············ ; or dat = 0
·········· clc
········ · rl·data
········ ·call·tempoCom···· ; horl·high 5 us
······· · clrb·horl
······· · call·tempoCom····· ; horl·Low 5 us
······· · decsz·temp
······· · jmp·:c3
·ret

clrb dat (or clrb ra.3) is just a world, no ? smhair.gif
skip not jump when data.7 is set in this example. Why ?

Jean


·
Sign In or Register to comment.