def _out(ins):
    """ Translates OUT to asm.
    """
    output = _8bit_oper(ins.quad[2])
    output.extend(_16bit_oper(ins.quad[1]))
    output.append('ld b, h')
    output.append('ld c, l')
    output.append('out (c), a')

    return output
def _out ( ins ) : output = _8bit_oper ( ins . quad [ 2 ] ) output . extend ( _16bit_oper ( ins . quad [ 1 ] ) ) output . append ( 'ld b, h' ) output . append ( 'ld c, l' ) output . append ( 'out (c), a' ) return output
Translates OUT to asm.