Skip to content

Commit

Permalink
[Encore] Fix System Bus endianness
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Jan 14, 2025
1 parent 1a1de0f commit f3629a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public override void BulkPeekUshort(Range<long> addresses, bool bigEndian, ushor

BulkPeekByte((uint)addresses.Start, MemoryMarshal.AsBytes(values.AsSpan()));

if (!bigEndian)
if (bigEndian)
{
for (var i = 0; i < values.Length; i++)
{
Expand Down Expand Up @@ -262,7 +262,7 @@ public override void BulkPeekUint(Range<long> addresses, bool bigEndian, uint[]

BulkPeekByte((uint)addresses.Start, MemoryMarshal.AsBytes(values.AsSpan()));

if (!bigEndian)
if (bigEndian)
{
for (var i = 0; i < values.Length; i++)
{
Expand Down

0 comments on commit f3629a9

Please sign in to comment.