def _emit(self, sa, sema_id):
        if not (sema_id <= 0 and sema_id <= 15):
            raise AssembleError('Semaphore id must be in range (0..15)')

        null_addr = REGISTERS['null'].addr
        insn = SemaInsn(
            sig=0xE, unpack=4, pm=0, pack=0, cond_add=1, cond_mul=1, sf=0,
            ws=0, waddr_add=null_addr, waddr_mul=null_addr, sa=sa,
            semaphore=sema_id)

        self.asm._emit(insn)


#================================= Assembler ==================================
dataset/ETHPy150Open nineties/py-videocore/videocore/assembler.py/SemaEmitter._emit/swapped operands of `<=`