mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
Former-commit-id: a3ad38695e8c1e1040a6a3f4b8470217e8a98489 Former-commit-id: cd3809edcae7b26e7b3d846dab17f1f63761f30f
22 lines
694 B
TeX
22 lines
694 B
TeX
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.
|
|
|
|
\section{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} |