Last change
on this file since 14ad9c9 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
908 bytes
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _curinst
|
---|
| 2 | .globl _curvce
|
---|
| 3 | .globl _ins2grp
|
---|
| 4 | .globl _s_inst
|
---|
| 5 | .globl _vce2grp
|
---|
| 6 | .globl _vbufs
|
---|
| 7 | .globl _setv2gi
|
---|
| 8 | .text
|
---|
| 9 | _setv2gi:
|
---|
| 10 | ~~setv2gi:
|
---|
| 11 | ~group=8
|
---|
| 12 | link R14,#0
|
---|
| 13 | movem.l R4-R7/R12-R13,-(sp)
|
---|
| 14 | ~grp=R7
|
---|
| 15 | ~vce=R6
|
---|
| 16 | ~ins=R5
|
---|
| 17 | ~ip=R13
|
---|
| 18 | ~fp=R12
|
---|
| 19 | *line 41
|
---|
| 20 | move 8(R14),R8
|
---|
| 21 | add.l R8,R8
|
---|
| 22 | add.l #_ins2grp,R8
|
---|
| 23 | move (R8),R5
|
---|
| 24 | and #255,R5
|
---|
| 25 | *line 42
|
---|
| 26 | move 8(R14),R7
|
---|
| 27 | add #1,R7
|
---|
| 28 | *line 44
|
---|
| 29 | clr R6
|
---|
| 30 | bra L4
|
---|
| 31 | L5:
|
---|
| 32 | *line 45
|
---|
| 33 | *line 46
|
---|
| 34 | *line 46
|
---|
| 35 | move R6,R8
|
---|
| 36 | add.l R8,R8
|
---|
| 37 | add.l #_vce2grp,R8
|
---|
| 38 | cmp (R8),R7
|
---|
| 39 | bne L6
|
---|
| 40 | *line 47
|
---|
| 41 | *line 48
|
---|
| 42 | *line 48
|
---|
| 43 | cmp _curvce,R6
|
---|
| 44 | bne L7
|
---|
| 45 | *line 49
|
---|
| 46 | *line 50
|
---|
| 47 | move R5,_curinst
|
---|
| 48 | *line 51
|
---|
| 49 | move _curvce,R8
|
---|
| 50 | add.l R8,R8
|
---|
| 51 | add.l #_s_inst,R8
|
---|
| 52 | move R5,(R8)
|
---|
| 53 | *line 52
|
---|
| 54 | *line 53
|
---|
| 55 | L7:
|
---|
| 56 | *line 54
|
---|
| 57 | move #1,(sp)
|
---|
| 58 | move R5,-(sp)
|
---|
| 59 | move R6,-(sp)
|
---|
| 60 | jsr _execins
|
---|
| 61 | addq.l #4,sp
|
---|
| 62 | *line 55
|
---|
| 63 | L6:L3:
|
---|
| 64 | *line 44
|
---|
| 65 | add #1,R6
|
---|
| 66 | L4:
|
---|
| 67 | *line 44
|
---|
| 68 | cmp #12,R6
|
---|
| 69 | blt L5
|
---|
| 70 | L2:L1:tst.l (sp)+
|
---|
| 71 | movem.l (sp)+,R5-R7/R12-R13
|
---|
| 72 | unlk R14
|
---|
| 73 | rts
|
---|
| 74 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.