annotate 3rdparty/p2mods/sayhi.asm @ 1163:5cbcbfd738ae

Added
author boisy
date Thu, 08 May 2003 20:50:59 +0000
parents 6641a883d6b0
children b8c7b7fbf3c9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 use os9defs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 Type set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 Revs set ReEnt+1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 edition set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9 mod OS9End,OS9Name,Type,Revs,Cold,256
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 OS9Name fcs "SayHi"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 * routine cold
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 Cold equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 * The following three instructions are important. They cause the link
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 * count of this module to increase by 1. This insures that the module
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 * stays in memory, even if forked from disk.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 leax OS9Name,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 os9 F$Link
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 leay SvcTbl,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 os9 F$SSvc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 bcs Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 Exit os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 F$SAYHI equ $25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 SvcTbl equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 fcb F$SAYHI
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 fdb SayHi-*-2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 fcb $80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 * Entry point to F$SAYHI system call
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 SayHi ldx R$X,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 bne SayHi6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 leax Hello,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 SayHi6 ldy #40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 ldu D.Proc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 lda P$PATH+2,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 Hello fcc "Hello there user."
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 fcb $0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 OS9End equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 end