Don't allocate an iterator on the heap unnecessarily

This commit is contained in:
Matthew Berry 2023-01-18 09:14:28 -08:00
parent b73bad6ae2
commit 19113be832

View file

@ -21,7 +21,7 @@ module GBA
address &-= 4
@gba.bus[address] = @r[14]
end
7.downto(0).each do |idx|
7.downto(0) do |idx|
if bit?(list, idx)
address &-= 4
@gba.bus[address] = @r[idx]