Lines Matching refs:params
478 local function parse_load(params, nparams, n, op)
479 if params[n+2] then werror("too many operands") end
481 local pn, p2 = params[n], params[n+1]
549 local function parse_load_pair(params, nparams, n, op)
550 if params[n+2] then werror("too many operands") end
551 local pn, p2 = params[n], params[n+1]
629 return function(params, nparams)
630 if not params then return "-> "..opname:sub(1, -3) end
631 f(params, nparams)
632 op_template(params, map_op[opname], nparams)
779 lsl_3 = function(params, nparams)
780 if params and params[3]:byte() == 35 then
781 return alias_lslimm(params, nparams)
783 return op_template(params, "1ac02000DNMg", nparams)
908 local function parse_template(params, template, nparams, pos)
917 local q = params[n]
927 op = op + parse_reg(params[n-1], 16)
930 if q == "sp" then params[n] = "@x31" end
952 op = parse_load(params, nparams, n, op)
954 op = parse_load_pair(params, nparams, n, op)
1007 function op_template(params, template, nparams)
1008 if not params then return template:gsub("%x%x%x%x%x%x%x%x", "") end
1018 ok, err = pcall(parse_template, params, t, nparams, pos)
1038 map_op[".actionlist_1"] = function(params)
1039 if not params then return "cvar" end
1040 local name = params[1] -- No syntax check. You get to keep the pieces.
1045 map_op[".globals_1"] = function(params)
1046 if not params then return "prefix" end
1047 local prefix = params[1] -- No syntax check. You get to keep the pieces.
1052 map_op[".globalnames_1"] = function(params)
1053 if not params then return "cvar" end
1054 local name = params[1] -- No syntax check. You get to keep the pieces.
1059 map_op[".externnames_1"] = function(params)
1060 if not params then return "cvar" end
1061 local name = params[1] -- No syntax check. You get to keep the pieces.
1068 map_op[".label_1"] = function(params)
1069 if not params then return "[1-9] | ->global | =>pcexpr" end
1071 local mode, n, s = parse_label(params[1], true)
1079 local function op_data(params)
1080 if not params then return "imm..." end
1081 local sz = params.op == ".long" and 4 or 8
1082 for _,p in ipairs(params) do
1118 map_op[".align_1"] = function(params)
1119 if not params then return "numpow2" end
1121 local align = tonumber(params[1])
1139 map_op[".type_3"] = function(params, nparams)
1140 if not params then
1143 local name, ctype, reg = params[1], params[2], params[3]