the destination's mask: the internal register's three or four components, a vector's two words (f16: four halves), a scalar's one
function DualMask(bank : int, vector_store : bool, cct : int, f16 : int) -> int =
if bank == B_INTERNAL then (if cct == 1 then 15 else 7)
else if vector_store then (if f16 == 1 then 15 else 3) else (if f16 == 1 then 3 else 1)Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from Vita3K's usse_translator_entry.cpp (GPL-2.0-or-later).