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)
901 local function parse_template(params, template, nparams, pos)
910 local q = params[n]
920 op = op + parse_reg(params[n-1], 16)
923 if q == "sp" then params[n] = "@x31" end
945 op = parse_load(params, nparams, n, op)
947 op = parse_load_pair(params, nparams, n, op)
1000 function op_template(params, template, nparams)
1001 if not params then return template:gsub("%x%x%x%x%x%x%x%x", "") end
1011 ok, err = pcall(parse_template, params, t, nparams, pos)
1031 map_op[".actionlist_1"] = function(params)
1032 if not params then return "cvar" end
1033 local name = params[1] -- No syntax check. You get to keep the pieces.
1038 map_op[".globals_1"] = function(params)
1039 if not params then return "prefix" end
1040 local prefix = params[1] -- No syntax check. You get to keep the pieces.
1045 map_op[".globalnames_1"] = function(params)
1046 if not params then return "cvar" end
1047 local name = params[1] -- No syntax check. You get to keep the pieces.
1052 map_op[".externnames_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.
1061 map_op[".label_1"] = function(params)
1062 if not params then return "[1-9] | ->global | =>pcexpr" end
1064 local mode, n, s = parse_label(params[1], true)
1072 local function op_data(params)
1073 if not params then return "imm..." end
1074 local sz = params.op == ".long" and 4 or 8
1075 for _,p in ipairs(params) do
1111 map_op[".align_1"] = function(params)
1112 if not params then return "numpow2" end
1114 local align = tonumber(params[1])
1132 map_op[".type_3"] = function(params, nparams)
1133 if not params then
1136 local name, ctype, reg = params[1], params[2], params[3]