mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-15 08:06:06 +09:00
Lua Computer: collection of minor updates, none notable (read romapidoc)
Former-commit-id: 80e3f0d13c2dc5bcff0843e509f416e9314cd52e Former-commit-id: e7e35bfd23d70db84f568f0c5388f3a1d89222bc
This commit is contained in:
22
work_files/romapidoc/cc_bit.tex
Normal file
22
work_files/romapidoc/cc_bit.tex
Normal file
@@ -0,0 +1,22 @@
|
||||
The Bit API is for manipulating numbers using bitwise binary operations. The ROMBASIC already comes with Lua's bit32 library so make sure to use that for your casual usage.
|
||||
|
||||
\subsection{Functions}
|
||||
|
||||
\begin{tabularx}{\textwidth}{l X}
|
||||
\textbf{\large Function} & \textbf{\large Notes}
|
||||
\\ \\
|
||||
\endhead
|
||||
bit.blshift(n, bits) & Alias of bit32.lshift(n, bits)
|
||||
\\ \\
|
||||
bit.brshift(n, bits) & Alias of bit32.arshift(n, bits)
|
||||
\\ \\
|
||||
bit.blogic\_rshift(n, bits) & Alias of bit32.brshift(n, bits)
|
||||
\\ \\
|
||||
bit.bxor(m, n) & Alias of bit32.bxor(m, n)
|
||||
\\ \\
|
||||
bit.bor(m, n) & Alias of bit32.bor(m, n)
|
||||
\\ \\
|
||||
bit.band(m, n) & Alias of bit32.band(m, n)
|
||||
\\ \\
|
||||
bit.bnot(n) & Alias of bit32.bnot(n)
|
||||
\end{tabularx}
|
||||
Reference in New Issue
Block a user