Hi Guys
I’m trying to port PBP code for Tetris I wrote some years ago to C,
and have come across this:
Does it do what I think it does and check any bit at offset (value + valueb) in the array?Code:digits var byte [4] ' D0 var digits[0] ' D1 var digits[1] ' D2 var digits[2] ' D3 var digits[3] ' IF D0.0(valuea + valueb) = 1 THEN ' valuec = 1 ' ENDIF ‘
At some stage I knew for sure It will take more trickery to do it in C, it’s not too accommodating at accessing bits.
Cheers, Brek.
Bookmarks