Mercurial > hg > Members > kono > nitros9-code
comparison lib/kreiderclib/id.as @ 2824:1647f1874cdf lwtools-port
Added Kreidier C library
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Thu, 23 May 2013 05:49:13 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2823:ad769d2a03e4 | 2824:1647f1874cdf |
---|---|
1 * Disassembly by Os9disasm of id.r | |
2 | |
3 section code | |
4 | |
5 * OS-9 system function equates | |
6 | |
7 F$ID equ $0c | |
8 F$SUser equ $1c | |
9 | |
10 * class X external label equates | |
11 | |
12 X004b equ $004b | |
13 | |
14 getpid: pshs y | |
15 os9 F$ID | |
16 puls y | |
17 tfr a,b | |
18 clra | |
19 rts | |
20 getuid: pshs y | |
21 os9 F$ID | |
22 tfr y,d | |
23 puls y,pc | |
24 asetuid: pshs y | |
25 bra L0027 | |
26 setuid: pshs y | |
27 bsr getuid | |
28 std -2,s | |
29 beq L0027 | |
30 ldb #$d6 | |
31 L0022 puls y | |
32 lbra _os9err | |
33 L0027 ldy 4,s | |
34 os9 F$SUser | |
35 bcc L003b | |
36 cmpb #$d0 | |
37 bne L0022 | |
38 tfr y,d | |
39 ldy X004b | |
40 std 9,y | |
41 L003b clra | |
42 clrb | |
43 puls y,pc | |
44 | |
45 endsect | |
46 |