Problem with Test instruction used to ina
Christof Eb.
Posts: 1,214
Hello,
during some experiments with adc, I tried:
test ina,inpin wz
to find the value of a certain pin and influence the zero flag. The code did not work.
Then I used:
mov help,ina 'read the input bit
test help,inpin wz
An this works.
What is the reason?
Christof
during some experiments with adc, I tried:
test ina,inpin wz
to find the value of a certain pin and influence the zero flag. The code did not work.
Then I used:
mov help,ina 'read the input bit
test help,inpin wz
An this works.
What is the reason?
Christof
spin
9K
Comments
And I tried:
test inpin,ina wz
which works.(!!)
Christof
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
I think, it would be good, to get a warning from the assembler!!
Can you implement that?
Christof