Thanks
I think the code didn’t ever make it try to look outside the first byte in the array anyway,
and the input value never added up to more than 7, but if it can look into other bytes, that’s useful.
Thanks
I think the code didn’t ever make it try to look outside the first byte in the array anyway,
and the input value never added up to more than 7, but if it can look into other bytes, that’s useful.
PBP doesn't check array limits. That is true for all variables types. So you can scan thru all pins of all ports with PORTA.0[i]...
That was interesting.
The Tetris was monochrome for an LED board, so the Tetris shapes and the well were all arrays of bits.
To write the same thing in C inflates the program, but uses no more RAM.
Rewriting it in C dealing with bytes instead of bits uses less program memory on the C platform, but much more RAM.
Bookmarks