def METHOD_NAME(params, mnem, code):
    addr = _get_value_imm(params)
    if addr > 0x3FF:
        eprint ("Error, address too large: %03x: %s $%03x" % (pc, mnem, addr))
        sys.exit(1) 
    code |= addr
    logger.info("PC: %03x: %04x | %s $%03x" % (pc, code, mnem, addr))
    _output_direct(code)
    return code