bug with SxSim ? skip
Jean Brunet
Posts: 10
Hello,
I am a curious result with skip instruction.
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 ?
skip not jump when data.7 is set in this example. Why ?
Jean
·
I am a curious result with skip instruction.
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 ?
skip not jump when data.7 is set in this example. Why ?
Jean
·