aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-01 21:57:44 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-01 21:57:44 +0100
commit5c763c23144b04b50e804d4ac7b6504b8f1fcaf6 (patch)
treec01a44baf35ed519714837c894c6cb7bc66342c0
parent075e37b2aa03d681e9f40e3f76118d516a9b8f4a (diff)
downloadtr8vm-5c763c23144b04b50e804d4ac7b6504b8f1fcaf6.tar.gz
tr8vm-5c763c23144b04b50e804d4ac7b6504b8f1fcaf6.zip
Wait longer
-rw-r--r--example.asm20
1 files changed, 6 insertions, 14 deletions
diff --git a/example.asm b/example.asm
index d96277b..7d69611 100644
--- a/example.asm
+++ b/example.asm
@@ -24,21 +24,13 @@ loop:
inc b
and b, 15
- ; wait some frames
- halt
- halt
- halt
- halt
-
- halt
- halt
- halt
- halt
-
- halt
- halt
- halt
+ ; wait 1 second
+ ld x, 60
+wait_loop:
halt
+ dec x
+ bnz
+ jmp wait_loop
jmp loop