Talk:SmileBASIC (Petit Computer 3)/@comment-15296152-20141126001851/@comment-15296152-20141127050041

Yeah, it's like C. BIT0 is set to 1, and when multiplying by 2, it shifts it to BIT1, then BIT2, up to BIT 30. When it shifts one more time, it is set to BIT31, being the highest bit, and also an indicator that the vlue is negative. Shift it one more time would set it to BIT32 if it were a 64-bit number, but it's 32-bit, meaning it clears BIT31, and does nothing else, resulting in no bits set, which is 0.