Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.15 KB

File metadata and controls

31 lines (21 loc) · 1.15 KB

i should add to this

Bit arithmethic (which I should have remembered but /shrug whatever)

A mini catalogue of every bit manipulation trick I'll ever need

(recap: one byte = 8 bits = 2 nibbles)

32 bits = one word of memory for 32-bit systems

0000 0000 0000 0000 0000 0000 0000 0000
^ MSB                                 ^ LSB

Misc

Random thing I found useful (I always forget this)

const int NUM = 5;
int arr[NUM];

doesn't compile for reasons.