opcodes and basic sample sharing