diff options
Diffstat (limited to 'asm/delay.asm')
| -rw-r--r-- | asm/delay.asm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/asm/delay.asm b/asm/delay.asm new file mode 100644 index 0000000..f04f046 --- /dev/null +++ b/asm/delay.asm @@ -0,0 +1,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 |
