|
Last change
on this file since 7bb1284 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 8 years ago |
|
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | .globl _chantab
|
|---|
| 2 | .globl _Wrkbuf
|
|---|
| 3 | .globl _errno
|
|---|
| 4 | .globl _posit
|
|---|
| 5 | .text
|
|---|
| 6 | _posit:
|
|---|
| 7 | ~~posit:
|
|---|
| 8 | ~fd=8
|
|---|
| 9 | ~pos=10
|
|---|
| 10 | link R14,#0
|
|---|
| 11 | movem.l R7-R7/R13-R13,-(sp)
|
|---|
| 12 | ~fp=R13
|
|---|
| 13 | *line 28
|
|---|
| 14 | *line 28
|
|---|
| 15 | tst 8(R14)
|
|---|
| 16 | blt L10000
|
|---|
| 17 | cmp #11,8(R14)
|
|---|
| 18 | ble L2
|
|---|
| 19 | L10000:*line 29
|
|---|
| 20 | *line 30
|
|---|
| 21 | move #9,_errno
|
|---|
| 22 | *line 31
|
|---|
| 23 | move #-1,R0
|
|---|
| 24 | bra L1
|
|---|
| 25 | *line 32
|
|---|
| 26 | *line 33
|
|---|
| 27 | L2:
|
|---|
| 28 | *line 34
|
|---|
| 29 | move 8(R14),R0
|
|---|
| 30 | muls #12,R0
|
|---|
| 31 | add.l #_chantab,R0
|
|---|
| 32 | move.l R0,R8
|
|---|
| 33 | move.l 8(R8),R13
|
|---|
| 34 | *line 36
|
|---|
| 35 | *line 37
|
|---|
| 36 | move 8(R14),R0
|
|---|
| 37 | muls #12,R0
|
|---|
| 38 | add.l #_chantab,R0
|
|---|
| 39 | move.l R0,R8
|
|---|
| 40 | tst.b 3(R8)
|
|---|
| 41 | beq L10001
|
|---|
| 42 | clr R0
|
|---|
| 43 | move 10(R14),R0
|
|---|
| 44 | move #9,R1
|
|---|
| 45 | lsl R1,R0
|
|---|
| 46 | swap R0
|
|---|
| 47 | clr R0
|
|---|
| 48 | swap R0
|
|---|
| 49 | cmp.l 48(R13),R0
|
|---|
| 50 | ble L3
|
|---|
| 51 | L10001:*line 38
|
|---|
| 52 | *line 39
|
|---|
| 53 | move #22,_errno
|
|---|
| 54 | *line 40
|
|---|
| 55 | or #8192,32(R13)
|
|---|
| 56 | *line 41
|
|---|
| 57 | move #-1,R0
|
|---|
| 58 | bra L1
|
|---|
| 59 | *line 42
|
|---|
| 60 | *line 43
|
|---|
| 61 | L3:
|
|---|
| 62 | *line 44
|
|---|
| 63 | clr.l R0
|
|---|
| 64 | move 10(R14),R0
|
|---|
| 65 | move.l R0,40(R13)
|
|---|
| 66 | *line 45
|
|---|
| 67 | clr 38(R13)
|
|---|
| 68 | *line 47
|
|---|
| 69 | *line 47
|
|---|
| 70 | move.l R13,(sp)
|
|---|
| 71 | jsr __seek
|
|---|
| 72 | tst R0
|
|---|
| 73 | bge L4
|
|---|
| 74 | *line 48
|
|---|
| 75 | *line 49
|
|---|
| 76 | move #5,_errno
|
|---|
| 77 | *line 50
|
|---|
| 78 | or #8192,32(R13)
|
|---|
| 79 | *line 51
|
|---|
| 80 | move #-1,R0
|
|---|
| 81 | bra L1
|
|---|
| 82 | *line 52
|
|---|
| 83 | *line 53
|
|---|
| 84 | L4:
|
|---|
| 85 | *line 54
|
|---|
| 86 | clr R0
|
|---|
| 87 | bra L1
|
|---|
| 88 | L1:tst.l (sp)+
|
|---|
| 89 | movem.l (sp)+,R13-R13
|
|---|
| 90 | unlk R14
|
|---|
| 91 | rts
|
|---|
| 92 | .data
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.