AceOfHearts
New Member
Peace to all,
How do we implement it in assembly?
Say I want to jump if Accumulator is greater than 27D?
Is there a fool-proof way of doing it?
At the moment I am checking the Accumalator say for 28D, and when it reaches it I jump, this is using CJNE.
But its not giving me a reliable result as it may not be passing 28D due to other cycles being spent before the accululator being checked using CJNE so the 28D value may not be there when the CJNE instruction is being executed (though I have tried to implement ways to ensure 28D is reached on the CJNE instruction).
So is there a proper way to do it? ie. where whatever the value of Accumulator is, as long as it is greater than 28D, it will jump. Suppose it is 35D, it will jump...
Many thanks for your help.
This message board has been a great help!
How do we implement it in assembly?
Say I want to jump if Accumulator is greater than 27D?
Is there a fool-proof way of doing it?
At the moment I am checking the Accumalator say for 28D, and when it reaches it I jump, this is using CJNE.
But its not giving me a reliable result as it may not be passing 28D due to other cycles being spent before the accululator being checked using CJNE so the 28D value may not be there when the CJNE instruction is being executed (though I have tried to implement ways to ensure 28D is reached on the CJNE instruction).
So is there a proper way to do it? ie. where whatever the value of Accumulator is, as long as it is greater than 28D, it will jump. Suppose it is 35D, it will jump...
Many thanks for your help.
This message board has been a great help!
Last edited: