Thanks Mr. Guest. That is one of those "Why didn't I think of that?"
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
and of course there is ......
Posted: Wed Apr 08, 2009 8:24 pm
output_J( ( input_j()&F8) | ( buffer[2]&7));
dcclark
Joined: 28 Jan 2009 Posts: 5
Re: and of course there is ......
Posted: Thu Apr 09, 2009 5:06 am
asmboy wrote:
output_J( ( input_j()&F8) | ( buffer[2]&7));
Thanks. By now it should be perfectly obvious to the most casual observer that I am transitioning from BASIC to C.
Thanks again Asmboy, now that is elegant C code.
dcclark
Joined: 28 Jan 2009 Posts: 5
Re Correct I/O
Posted: Thu Apr 09, 2009 5:22 am
And of course my CCS PCWHD compiler complained. The code should be thusly: output_j((input_j() & 0xF8) | (buffer[2] & 0x7));
Thanks again.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum