ref: 41d1a883e53baf66918c35cb0e84eab899a16259
parent: 4567ed717807262c9c46ba9d0f32fda2597ba812
author: Jacob Moody <[email protected]>
date: Tue Aug 8 00:17:28 EDT 2023
/sys/lib/acid/port: mind upper bounds of fnbound Fnbound's upper bound is exclusive.
--- a/sys/lib/acid/port
+++ b/sys/lib/acid/port
@@ -517,7 +517,7 @@
loop 1,_asmlines do {
print(fmt(addr, 'a'), " ", fmt(addr, 'A'));
print("\t", @addr++, "\n");
- if bound != {} && addr > bound[1] then {
+ if bound != {} && addr >= bound[1] then {
lasmaddr = addr;
return {};
}
@@ -627,7 +627,7 @@
if pc >= bound[0] && pc < bound[1] then
return {};
- while (pc < bound[0] || pc > bound[1]) && sp >= *SP do {
+ while (pc < bound[0] || pc >= bound[1]) && sp >= *SP do {
step();
pc = *PC;
}