shithub: riscv

Download patch

ref: d54a795c80421b015dc6d9e3adce25309875e87a
parent: 08e433f31db74945aecfcad2755ccf274e849810
author: aiju <devnull@localhost>
date: Fri Mar 14 15:39:20 EDT 2014

games/snes: bg 3

--- a/sys/src/games/snes/ppu.c
+++ b/sys/src/games/snes/ppu.c
@@ -316,6 +316,10 @@
 		bg(1, 4, 0x71, 0xa1);
 		bg(2, 2, 0x12, (reg[BGMODE] & 8) != 0 ? 0xd2 : 0x42);
 		break;
+	case 3:
+		bg(0, 8, 0x40, 0xa0);
+		bg(1, 4, 0x11, 0x71);
+		break;
 	default:
 		if(bitch[mode]++ == 0)
 			print("bg mode %d not implemented\n", mode);