Last change
on this file since 9519422 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | .globl _errno
|
---|
2 | .globl __berrno
|
---|
3 | .globl _WriteRN
|
---|
4 | .text
|
---|
5 | _WriteRN:
|
---|
6 | ~~WriteRN:
|
---|
7 | ~fcp=8
|
---|
8 | ~buf=12
|
---|
9 | link R14,#-10
|
---|
10 | ~sv=-2
|
---|
11 | ~brc=-6
|
---|
12 | *line 53
|
---|
13 | *line 53
|
---|
14 | move.l 8(R14),(sp)
|
---|
15 | jsr __seek
|
---|
16 | move R0,-2(R14)
|
---|
17 | beq L2
|
---|
18 | *line 54
|
---|
19 | *line 55
|
---|
20 | *line 55
|
---|
21 | tst -2(R14)
|
---|
22 | bge L3
|
---|
23 | *line 56
|
---|
24 | *line 61
|
---|
25 | *line 62
|
---|
26 | *line 63
|
---|
27 | move #5,_errno
|
---|
28 | *line 64
|
---|
29 | move #-1,R0
|
---|
30 | bra L1
|
---|
31 | *line 65
|
---|
32 | bra L4
|
---|
33 | L3:
|
---|
34 | *line 66
|
---|
35 | *line 66
|
---|
36 | cmp #2,-2(R14)
|
---|
37 | bne L5
|
---|
38 | *line 67
|
---|
39 | *line 68
|
---|
40 | *line 68
|
---|
41 | move.l 8(R14),(sp)
|
---|
42 | jsr __alcnew
|
---|
43 | tst R0
|
---|
44 | beq L6
|
---|
45 | *line 69
|
---|
46 | *line 70
|
---|
47 | move #5,_errno
|
---|
48 | *line 71
|
---|
49 | move #-1,R0
|
---|
50 | bra L1
|
---|
51 | *line 72
|
---|
52 | *line 77
|
---|
53 | *line 78
|
---|
54 | L6:
|
---|
55 | *line 79
|
---|
56 | L5:L4:
|
---|
57 | *line 80
|
---|
58 | *line 81
|
---|
59 | *line 86
|
---|
60 | *line 87
|
---|
61 | *line 88
|
---|
62 | *line 89
|
---|
63 | L2:
|
---|
64 | *line 90
|
---|
65 | *line 90
|
---|
66 | clr (sp)
|
---|
67 | move.l 8(R14),R8
|
---|
68 | move.l 44(R8),R0
|
---|
69 | move R0,-(sp)
|
---|
70 | move #1,-(sp)
|
---|
71 | move.l 12(R14),-(sp)
|
---|
72 | move #1,-(sp)
|
---|
73 | move #4,-(sp)
|
---|
74 | jsr _trap13
|
---|
75 | adda.l #12,sp
|
---|
76 | move.l R0,-6(R14)
|
---|
77 | beq L7
|
---|
78 | *line 91
|
---|
79 | *line 95
|
---|
80 | *line 96
|
---|
81 | *line 97
|
---|
82 | move.l -6(R14),__berrno
|
---|
83 | *line 98
|
---|
84 | move #5,_errno
|
---|
85 | *line 99
|
---|
86 | move #-1,R0
|
---|
87 | bra L1
|
---|
88 | *line 100
|
---|
89 | *line 101
|
---|
90 | *line 102
|
---|
91 | L7:
|
---|
92 | *line 103
|
---|
93 | move.l 8(R14),R8
|
---|
94 | move.l 44(R8),R0
|
---|
95 | move R0,(sp)
|
---|
96 | move.l 12(R14),-(sp)
|
---|
97 | jsr __secwr
|
---|
98 | addq.l #4,sp
|
---|
99 | *line 106
|
---|
100 | clr R0
|
---|
101 | bra L1
|
---|
102 | L1:unlk R14
|
---|
103 | rts
|
---|
104 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.