Page 1 of 1

Need help with FFD2 (CHROUT)

Posted: Sat Sep 02, 2017 2:43 am
by plbyrd
Has anyone ever encountered a situation where sending a value to FFD2 results in the wrong value being sent and with that wrong value returning in the Accumulator? If I do a READST immediately afterwards it returns $00

Re: Need help with FFD2 (CHROUT)

Posted: Sat Sep 02, 2017 3:22 am
by groepaz
have you traced it to see if that is what actually happens? sounds like the problem is unrelated to ffd2 :)

Re: Need help with FFD2 (CHROUT)

Posted: Sat Sep 02, 2017 5:19 am
by srowe
What device are you sending it to?

Re: Need help with FFD2 (CHROUT)

Posted: Sat Sep 02, 2017 7:33 am
by plbyrd
srowe wrote:What device are you sending it to?
Rs232 on device 2

Re: Need help with FFD2 (CHROUT)

Posted: Sat Sep 02, 2017 7:58 am
by plbyrd
groepaz wrote:have you traced it to see if that is what actually happens? sounds like the problem is unrelated to ffd2 :)
Thank you for the tip. Stepping through FFD2 I found it is using $FA and I happen to use it too. So I adjusted my prg not to use FA and now it works!!!