Skip to content

Commit

Permalink
Fix GB graphics prefix output
Browse files Browse the repository at this point in the history
The output of using the prefix '`' was inverted: The MSB was placed
before the LSB. Now, the LSB are placed first, allowing a direct copy
to VRAM.
  • Loading branch information
AntonioND committed Jul 1, 2016
1 parent 330a395 commit fbb825a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asm/globlex.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ascii2bin(char *s)

while (*s != '\0') {
c = convertfunc(*s++);
result = result * 2 + ((c & 1) << 8) + ((c & 2) >> 1);
result = result * 2 + ((c & 2) << 7) + (c & 1);
}
} else {
while (*s != '\0')
Expand Down

0 comments on commit fbb825a

Please sign in to comment.