Jump to content

Array length: Difference between revisions

m
→‎{{header|Z80 Assembly}}: clarification on advanced techniques
m (→‎{{header|Z80 Assembly}}: removed an unnecessary clear carry flag step, with explanation.)
m (→‎{{header|Z80 Assembly}}: clarification on advanced techniques)
Line 2,864:
ld a,(hl) ;get the high byte
dec hl ;go back to low byte, otherwise our length will be off.
or a ;compare to zero. This is a shorter and faster way to compare A to zero than "CP 0"
jr nz,keepGoing
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.