Last change
on this file since 4810254 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
804 bytes
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _errno
|
---|
| 2 | .globl __berrno
|
---|
| 3 | .globl _ReadRN
|
---|
| 4 | .text
|
---|
| 5 | _ReadRN:
|
---|
| 6 | ~~ReadRN:
|
---|
| 7 | ~fcp=8
|
---|
| 8 | ~buf=12
|
---|
| 9 | link R14,#-10
|
---|
| 10 | ~sv=-2
|
---|
| 11 | ~brc=-6
|
---|
| 12 | *line 53
|
---|
| 13 | *line 54
|
---|
| 14 | move.l 8(R14),(sp)
|
---|
| 15 | jsr __seek
|
---|
| 16 | move R0,-2(R14)
|
---|
| 17 | beq L2
|
---|
| 18 | *line 54
|
---|
| 19 | *line 54
|
---|
| 20 | tst -2(R14)
|
---|
| 21 | bge L3
|
---|
| 22 | *line 55
|
---|
| 23 | *line 56
|
---|
| 24 | move #5,_errno
|
---|
| 25 | *line 57
|
---|
| 26 | move #-1,R0
|
---|
| 27 | bra L1
|
---|
| 28 | *line 58
|
---|
| 29 | bra L4
|
---|
| 30 | L3:
|
---|
| 31 | *line 59
|
---|
| 32 | *line 60
|
---|
| 33 | *line 61
|
---|
| 34 | move #22,_errno
|
---|
| 35 | *line 62
|
---|
| 36 | move #1,R0
|
---|
| 37 | bra L1
|
---|
| 38 | L4:
|
---|
| 39 | *line 63
|
---|
| 40 | *line 64
|
---|
| 41 | *line 69
|
---|
| 42 | *line 70
|
---|
| 43 | *line 71
|
---|
| 44 | L2:
|
---|
| 45 | *line 72
|
---|
| 46 | *line 72
|
---|
| 47 | move.l 8(R14),R8
|
---|
| 48 | move.l 44(R8),R0
|
---|
| 49 | move R0,(sp)
|
---|
| 50 | move.l 12(R14),-(sp)
|
---|
| 51 | jsr __secrd
|
---|
| 52 | addq.l #4,sp
|
---|
| 53 | move.l R0,-6(R14)
|
---|
| 54 | beq L5
|
---|
| 55 | *line 75
|
---|
| 56 | *line 76
|
---|
| 57 | *line 77
|
---|
| 58 | move.l -6(R14),__berrno
|
---|
| 59 | *line 78
|
---|
| 60 | move #5,_errno
|
---|
| 61 | *line 79
|
---|
| 62 | move #-1,R0
|
---|
| 63 | bra L1
|
---|
| 64 | *line 80
|
---|
| 65 | *line 81
|
---|
| 66 | L5:
|
---|
| 67 | *line 82
|
---|
| 68 | clr R0
|
---|
| 69 | bra L1
|
---|
| 70 | L1:unlk R14
|
---|
| 71 | rts
|
---|
| 72 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.