sorry change bc to de so it looks like this: delay: ld de,$0000 dloop: dec de ld a,d or e jr nz,loop ret