shithub: rgbds

Download patch

ref: ffe9e92b4878ccc21ef49df7c8f0234c16059aa3
parent: aa90a53f34042b9839c6480efc61314c8af03574
author: ISSOtm <eldredhabert0@gmail.com>
date: Sun Feb 9 10:43:45 EST 2020

Skip double-checking overflow in byte output

--- a/src/asm/section.c
+++ b/src/asm/section.c
@@ -222,7 +222,7 @@
 	checkcodesection();
 	checksectionoverflow(length);
 	while (length--)
-		out_AbsByte(*s++);
+		absByteBypassCheck(*s++);
 }
 
 /*
@@ -241,7 +241,7 @@
 	} else {
 		checkcodesection();
 		while (skip--)
-			out_AbsByte(CurrentOptions.fillchar);
+			absByteBypassCheck(CurrentOptions.fillchar);
 	}
 }
 
@@ -253,7 +253,7 @@
 	checkcodesection();
 	checksectionoverflow(strlen(s));
 	while (*s)
-		out_AbsByte(*s++);
+		absByteBypassCheck(*s++);
 }
 
 /*
@@ -270,7 +270,7 @@
 		pCurrentSection->nPC++;
 		nPC++;
 	} else {
-		out_AbsByte(expr->nVal);
+		absByteBypassCheck(expr->nVal);
 	}
 	rpn_Free(expr);
 }