I can't get WRLONG to work right (fixed)
Bean
Posts: 8,129
Okay, I'm still working on my assembly blinkLED routine.
In the spin code you set a blinkDelay and a blinkCount and then set the blinkDone to 0,
then it wait for blinkDone to be 1.
The asm in the code waits for blinkDone to be zero, then reads the parameters and blinks the LED.
then it sets blinkDone to 1 to signal that it's done.
It seems my code is setting blinkDone to something non-zero, but not the value I want. Because even if I change the value (I think) is getting written to zero, it still works and it shouldn't.
Any ideas·what I'm doing wrong ?
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
COMING SOON "SD DATA LOGGER" www.sddatalogger.com
"I reject your reality, and substitute my own." Mythbusters
Post Edited (Bean (Hitt Consulting)) : 5/11/2006 2:59:45 AM GMT
In the spin code you set a blinkDelay and a blinkCount and then set the blinkDone to 0,
then it wait for blinkDone to be 1.
The asm in the code waits for blinkDone to be zero, then reads the parameters and blinks the LED.
then it sets blinkDone to 1 to signal that it's done.
It seems my code is setting blinkDone to something non-zero, but not the value I want. Because even if I change the value (I think) is getting written to zero, it still works and it shouldn't.
Any ideas·what I'm doing wrong ?
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
COMING SOON "SD DATA LOGGER" www.sddatalogger.com
"I reject your reality, and substitute my own." Mythbusters
Post Edited (Bean (Hitt Consulting)) : 5/11/2006 2:59:45 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
What does it do when it "isn't working"?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
Originally I was trying to write "1", and the spin code was "REPEAT UNTIL blinkDone = 1" and that would never happen.
It seems I am writing a non-zero value no matter what value I THINK I'm writing.
I get an error if I try "WRLONG #1,_cntTime"
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
COMING SOON "SD DATA LOGGER" www.sddatalogger.com
"I reject your reality, and substitute my own." Mythbusters
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
Thanks.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
COMING SOON "SD DATA LOGGER" www.sddatalogger.com
"I reject your reality, and substitute my own." Mythbusters
·