mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Skip double-checking overflow in byte output
This commit is contained in:
@@ -222,7 +222,7 @@ void out_AbsByteGroup(char const *s, int32_t length)
|
|||||||
checkcodesection();
|
checkcodesection();
|
||||||
checksectionoverflow(length);
|
checksectionoverflow(length);
|
||||||
while (length--)
|
while (length--)
|
||||||
out_AbsByte(*s++);
|
absByteBypassCheck(*s++);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -241,7 +241,7 @@ void out_Skip(int32_t skip)
|
|||||||
} else {
|
} else {
|
||||||
checkcodesection();
|
checkcodesection();
|
||||||
while (skip--)
|
while (skip--)
|
||||||
out_AbsByte(CurrentOptions.fillchar);
|
absByteBypassCheck(CurrentOptions.fillchar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,7 +253,7 @@ void out_String(char const *s)
|
|||||||
checkcodesection();
|
checkcodesection();
|
||||||
checksectionoverflow(strlen(s));
|
checksectionoverflow(strlen(s));
|
||||||
while (*s)
|
while (*s)
|
||||||
out_AbsByte(*s++);
|
absByteBypassCheck(*s++);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -270,7 +270,7 @@ void out_RelByte(struct Expression *expr)
|
|||||||
pCurrentSection->nPC++;
|
pCurrentSection->nPC++;
|
||||||
nPC++;
|
nPC++;
|
||||||
} else {
|
} else {
|
||||||
out_AbsByte(expr->nVal);
|
absByteBypassCheck(expr->nVal);
|
||||||
}
|
}
|
||||||
rpn_Free(expr);
|
rpn_Free(expr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user