Bit shifting left on P1 PASM
My goal was get the status bit 30 in a variable.
I used SHL instruction so it goes into C flag.
if W has a value 0x80000000
SHL W,#2 WC
The C flag would always equal 1
The Propeller Manual says the C flag is set equal to Value’s original bit 31.
Does that mean shift of the number of bits, except 0, would result in C equal to 1 because bit 31 was set at the start of instruction ?.
My mind was in 68000 mode, thinking the number of bits shifted would go into C flag would work, but no.
A work around was to do two shl
SHL W,#1 WC