From fbb825af3b5ee5c24d4633e06320759bc1d08179 Mon Sep 17 00:00:00 2001 From: AntonioND Date: Fri, 1 Jul 2016 19:54:44 +0100 Subject: [PATCH] Fix GB graphics prefix output 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. --- src/asm/globlex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asm/globlex.c b/src/asm/globlex.c index cbf6235f..9f9523a8 100644 --- a/src/asm/globlex.c +++ b/src/asm/globlex.c @@ -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')