R
Rich Grise
Guest
"budgie" <me@privacy.net> wrote in message
news:rll8a016ba5b73cga5ghn59krhukj2laep@4ax.com...
Unless your BASIC interpreter does it different - for example,
FF AND 04 yields 04 on every system I've ever used, and every
book about it that I've read.
Or maybe 37A is open-collector (I'd have to look it up), in
which case if there are pullups, those bits will go high -
but not because of what's been output. (outputted?
)
And some of the bits are inverted, I also would have to look
up which bits - but the value of the data is as I said.
Thanks,
Rich
news:rll8a016ba5b73cga5ghn59krhukj2laep@4ax.com...
OK, it clears them all except the 04 bit, which it sets.On Fri, 14 May 2004 03:22:49 GMT, "Rich Grise" <null@example.net> wrote:
"budgie" <me@privacy.net> wrote in message
OUT 37A, (INP(37A) AND 04)
That way, whatever other bits are set/clear remain that way.
Actually, they don't - that code clears them all!
It doesn't actually. Try it some time.
Unless your BASIC interpreter does it different - for example,
FF AND 04 yields 04 on every system I've ever used, and every
book about it that I've read.
Or maybe 37A is open-collector (I'd have to look it up), in
which case if there are pullups, those bits will go high -
but not because of what's been output. (outputted?
And some of the bits are inverted, I also would have to look
up which bits - but the value of the data is as I said.
Thanks,
Rich