shithub: riscv

Download patch

ref: 8aff377698feba2407d444540f3d688edc740197
parent: 03eeebb97f014c29a4dd25d873fc6ad50da48f15
author: Michael Forney <mforney@mforney.org>
date: Wed Feb 17 06:20:13 EST 2021

games/snes: use enum constants KON and ENDX instead of their values

--- a/sys/src/games/snes/dsp.c
+++ b/sys/src/games/snes/dsp.c
@@ -120,10 +120,10 @@
 	if(p >= 0x80)
 		return;
 	switch(p){
-	case 0x4c:
+	case KON:
 		dsp[NEWKON] = v;
 		break;
-	case 0x7c:
+	case ENDX:
 		v = 0;
 		break;
 	}