Lines Matching refs:n
53 for n,name in ipairs(action_names) do
54 map_action[name] = n-1
71 for n,name in ipairs(action_names) do
92 local function wputxw(n)
93 assert(n >= 0 and n <= 0xffffffff and n % 1 == 0, "word out of range")
94 actlist[#actlist+1] = n
115 local function wputw(n)
116 if n <= 0xffffff then waction("ESC") end
117 wputxw(n)
128 local function wputpos(pos, n)
129 assert(n >= 0 and n <= 0xffffffff and n % 1 == 0, "word out of range")
130 actlist[pos] = n
139 local n = next_global
140 if n > 2047 then werror("too many global labels") end
141 next_global = n + 1
142 t[name] = n
143 return n
149 for name, n in pairs(map_global) do t[n] = name end
160 for name, n in pairs(map_global) do t[n] = name end
171 for name, n in pairs(map_global) do t[n] = name end
186 local n = next_extern
187 if n > 2047 then werror("too many extern labels") end
188 next_extern = n + 1
189 t[name] = n
190 map_extern_[n] = name
191 return n
1527 local function parse_number(n)
1528 local x = tonumber(n)
1530 local code = loadenv("return "..n)
1539 local n = parse_number(imm)
1540 if n then
1541 local m = sar(n, scale)
1542 if shl(m, scale) == n then
1563 local n = parse_number(imm)
1564 if n then
1565 if shr(n, 6) == 0 then
1566 local lsb = band(n, 31)
1567 local msb = n - lsb
1654 local n, rs = 1, 26
1664 rs = rs - 5; op = op + shl(parse_gpr(params[n]), rs); n = n + 1
1666 rs = rs - 5; op = op + shl(parse_fpr(params[n]), rs); n = n + 1
1668 rs = rs - 5; op = op + shl(parse_vr(params[n]), rs); n = n + 1
1670 local vs = parse_vs(params[n]); n = n + 1; rs = rs - 5
1674 local vs = parse_vs(params[n]); n = n + 1
1677 rs = rs - 5; op = op + parse_imm(params[n], 5, rs, 0, false); n = n + 1
1679 rs = rs - 5; op = op + parse_imm(params[n], 5, rs, 0, true); n = n + 1
1681 op = op + parse_imm(params[n], 16, 0, 0, true); n = n + 1
1683 op = op + parse_imm(params[n], 16, 0, 0, false); n = n + 1
1685 op = op + parse_disp(params[n]); n = n + 1
1687 op = op + parse_u5disp(params[n], 1); n = n + 1
1689 op = op + parse_u5disp(params[n], 2); n = n + 1
1691 op = op + parse_u5disp(params[n], 3); n = n + 1
1693 rs = rs - 5; op = op + shl(parse_cond(params[n]), rs); n = n + 1
1695 rs = rs - 5; op = op + shl(parse_cr(params[n]), rs+2); n = n + 1
1697 rs = rs - 5; op = op + parse_imm(params[n], 1, rs, 0, false); n = n + 1
1699 rs = rs - 5; op = op + parse_imm(params[n], 2, rs, 0, false); n = n + 1
1701 rs = rs - 5; op = op + parse_imm(params[n], 3, rs, 0, false); n = n + 1
1703 rs = rs - 5; op = op + parse_imm(params[n], 4, rs, 0, false); n = n + 1
1705 op = op + parse_imm(params[n], 4, rs, 0, false); n = n + 1
1707 rs = rs - 6; op = op + parse_imm(params[n], 6, rs, 0, false); n = n + 1
1709 rs = rs - 5; op = op + parse_imm(params[n], 1, rs+4, 0, false); n = n + 1
1711 rs = rs - 5; op = op + parse_imm(params[n], 1, rs+3, 0, false); n = n + 1
1713 rs = rs - 5; op = op + parse_imm(params[n], 2, rs+3, 0, false); n = n + 1
1715 rs = rs - 5; op = op + parse_imm(params[n], 2, rs+2, 0, false); n = n + 1
1717 op = op + parse_cr(params[n]); n = n + 1
1719 op = op + parse_imm(params[n], 8, 12, 0, false); n = n + 1
1721 op = op + parse_shiftmask(params[n], true); n = n + 1
1723 op = op + parse_shiftmask(params[n], false); n = n + 1
1725 local mode, m, s = parse_label(params[n], false)
1728 n = n + 1
1791 local mode, n, s = parse_label(params[1], true)
1793 waction("LABEL_"..mode, n, s, 1)
1802 local n = tonumber(p)
1803 if not n then werror("bad immediate `"..p.."'") end
1804 if n < 0 then n = n + 2^32 end
1805 wputw(n)