Array length: Difference between revisions
m
→{{header|Z80 Assembly}}: clarification on advanced techniques
Puppydrum64 (talk | contribs) m (→{{header|Z80 Assembly}}: removed an unnecessary clear carry flag step, with explanation.) |
Puppydrum64 (talk | contribs) 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
|