shithub: rgbds

Download patch

ref: 8521e45edcda6645a3ab047dc7a0372d19a27ba2
parent: 7bd082563d6a02da3c234d34478ec04680410407
author: Antonio Niño Díaz <[email protected]>
date: Sun Jan 14 11:12:29 EST 2018

Reduce SRAM bank number to 16 in rgbasm

The limit was already 16 banks in the linker, which made the previous
limit of 511 useless.

Signed-off-by: Antonio Niño Díaz <[email protected]>

--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -37,7 +37,7 @@
 	case SECT_SRAM:
 		stype = "SRAM";
 		minbank = 0;
-		maxbank = 0x1ff;
+		maxbank = 15;
 		break;
 	case SECT_WRAMX:
 		stype = "WRAMX";