shithub: pokered

Download patch

ref: 21908ba30a8bae5c5e1c86b1164402ec95da0220
parent: f16f53096b39ccb5b9ab2345faa3e49434e19336
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sun Dec 20 18:35:42 EST 2020

Clarify signed magnitude in the growth_rate macro

--- a/data/growth_rates.asm
+++ b/data/growth_rates.asm
@@ -1,8 +1,8 @@
 growth_rate: MACRO
 ; [1]/[2]*n**3 + [3]*n**2 + [4]*n - [5]
 	dn \1, \2
-	if \3 & $80 ; signed
-		db -\3 | $80
+	if \3 < 0
+		db -\3 | $80 ; signed magnitude
 	else
 		db \3
 	endc