Array length: Difference between revisions

m
→‎{{header|Z80 Assembly}}: removed an unnecessary clear carry flag step, with explanation.
m (→‎{{header|Z80 Assembly}}: forgot to include the embedded array and strings)
m (→‎{{header|Z80 Assembly}}: removed an unnecessary clear carry flag step, with explanation.)
Line 2,875:
Terminated_GetArrayLength:
pop de ;original array address is in DE
;or a ;normally it's best to clear the carry, but in this situation execution only arrives here after a compare that
or a ;clear the carry
;resulted in an equality to zero, which means the carry is guaranteed to be cleared.
sbc hl,de ;there is no sub hl,de; only sbc
1,489

edits