Array length: Difference between revisions
m
→{{header|Z80 Assembly}}: removed an unnecessary clear carry flag step, with explanation.
Puppydrum64 (talk | contribs) m (→{{header|Z80 Assembly}}: forgot to include the embedded array and strings) |
Puppydrum64 (talk | contribs) 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
;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
|