1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-22 00:17:03 +00:00

8080: Faster strlen; more multiplication optimizations

This commit is contained in:
Karol Stasiak
2018-10-04 23:22:26 +02:00
parent fe1bf68295
commit ed38b00031
2 changed files with 107 additions and 6 deletions
+14 -1
View File
@@ -1,4 +1,16 @@
#if ARCH_I80
byte strzlen(pointer str) {
pointer end
end = str
while end[0] != 0 {
end += 1
}
return lo(end - str)
}
#else
byte strzlen(pointer str) {
byte index
@@ -7,4 +19,5 @@ byte strzlen(pointer str) {
index += 1
}
return index
}
}
#endif