assembly cmp help
mctrivia
Posts: 3,772
cmp ulMSec,ulDayLength 'See if day done if_b jmp :updateTime 'If day is done jump to end of routine
The manual says if ulMSec is less then ulDayLength then c=1
if c=1 then if_b should be true and execute command.
ulDayLength=86_400_000
ulMSec will almost always be less the that. why does the line after this execute every time?
Comments
It's because you haven't indicated which flag to set.
try
Here the C flag will be set if ulMSec is less than ulDayLength
regards,
Coley
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PropGFX - The home of the Hybrid Development System and PropGFX Lite
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PropGFX - The home of the Hybrid Development System and PropGFX Lite
jmp #:updateTime
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Prop Tools under Development or Completed (Index)
http://forums.parallax.com/showthread.php?p=753439
My cruising website http://www.bluemagic.biz
Address 0 is the first long
Address 1 is the second long.
There is no byte granularity or word.
To access ubDay I'll do this:
I'd recommend you download pPropellerSim (from sourceforge.org/projects/ppropellersim) and test them through.