set flags on PUS/POP