1 2 3 4 5 6 7 8 9 10 11 12 13
.module delay __delay_ms:: ld b, a 1$: ld hl, #400 2$: dec hl ld a, h or l jr nz, 2$ djnz 1$ ret