annotate level1/cmds/sleep.asm @ 0:6641a883d6b0

Initial revision
author boisy
date Thu, 04 Apr 2002 16:34:12 +0000
parents
children e9ce43cc215e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * Sleep - Sleep for some ticks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * 2 Original Tandy distribution version
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam Sleep
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl Sleep for some ticks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 98/09/14 23:48:34 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 rev set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 edition set 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 u0000 rmb 450
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 name fcs /Sleep/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 start clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 bsr L0028
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 bsr L0028
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 bsr L0028
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 bsr L0028
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 bsr L0028
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 tfr d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 os9 F$Sleep
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 L0028 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 subb #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 bcs L0048
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 cmpb #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 bhi L0048
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 ldb #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 stb $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 lda $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 ldb #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 addb ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 adca ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 std ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 L0048 puls pc,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 end
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65