def assemble_one(asmcode, pc=<NUM_LIT:0>, fork=DEFAULT_FORK):
try:<EOL><INDENT>instruction_table = instruction_tables[fork]<EOL>asmcode = asmcode.strip().split('<STR_LIT:U+0020>')<EOL>instr = instruction_table[asmcode[<NUM_LIT:0>].upper()]<EOL>if pc:<EOL><INDENT>instr.pc = pc<EOL><DEDENT>if instr.operand_size > <NUM_LIT:0>:<EOL><INDENT>assert len(asmcode) == <NUM_LIT:2><EOL>instr.operand = int(asmcode[<NUM_LIT:1>], <NUM_LIT:0>)<EOL><DEDENT>return instr<EOL><DEDENT>except:<EOL><INDENT>raise AssembleError("<STR_LIT>" % pc)<EOL><DEDENT>
Assemble one EVM instruction from its textual representation.

        :param asmcode: assembly code for one instruction
        :type asmcode: str
        :param pc: program counter of the instruction(optional)
        :type pc: int
        :param fork: fork name (optional)
        :type fork: str
        :return: An Instruction object
        :rtype: Instruction

        Example use::

            >>> print assemble_one('LT')