aboutsummaryrefslogtreecommitdiff
path: root/asm/delay.asm
blob: f04f046a6f6efe713807e16e3b0abebebde4a4c8 (plain)
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