shithub: rgbds

Download patch

ref: fbb825af3b5ee5c24d4633e06320759bc1d08179
parent: 330a39596c51d8412a5a344054df24f00318f68f
author: AntonioND <[email protected]>
date: Fri Jul 1 15:54:44 EDT 2016

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.

--- a/src/asm/globlex.c
+++ b/src/asm/globlex.c
@@ -97,7 +97,7 @@
 
 		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')