Last change
on this file since 609839c was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
806 bytes
|
Line | |
---|
1 | .globl _ebflag
|
---|
2 | .globl _ebuf
|
---|
3 | .globl _curfet
|
---|
4 | .globl _cfetp
|
---|
5 | .globl _infetp
|
---|
6 | .globl _stcrow
|
---|
7 | .globl _stccol
|
---|
8 | .globl _infield
|
---|
9 | .text
|
---|
10 | _infield:
|
---|
11 | ~~infield:
|
---|
12 | ~row=R7
|
---|
13 | ~col=R6
|
---|
14 | ~fetp=R13
|
---|
15 | link R14,#0
|
---|
16 | movem.l R5-R7/R13-R13,-(sp)
|
---|
17 | *line 26
|
---|
18 | move 8(R14),R7
|
---|
19 | *line 26
|
---|
20 | move 10(R14),R6
|
---|
21 | *line 26
|
---|
22 | move.l 12(R14),R13
|
---|
23 | *line 26
|
---|
24 | clr.l _infetp
|
---|
25 | *line 28
|
---|
26 | *line 29
|
---|
27 | move.l R13,R0
|
---|
28 | bne L2
|
---|
29 | *line 29
|
---|
30 | clr R0
|
---|
31 | bra L1
|
---|
32 | *line 30
|
---|
33 | L2:
|
---|
34 | *line 31
|
---|
35 | bra L5
|
---|
36 | L4:
|
---|
37 | *line 32
|
---|
38 | *line 33
|
---|
39 | *line 34
|
---|
40 | *line 35
|
---|
41 | cmp (R13),R7
|
---|
42 | bne L6
|
---|
43 | cmp 2(R13),R6
|
---|
44 | blt L6
|
---|
45 | cmp 4(R13),R6
|
---|
46 | bgt L6
|
---|
47 | *line 36
|
---|
48 | *line 37
|
---|
49 | move.l R13,_infetp
|
---|
50 | *line 38
|
---|
51 | move #1,R0
|
---|
52 | bra L1
|
---|
53 | *line 39
|
---|
54 | *line 40
|
---|
55 | L6:
|
---|
56 | *line 41
|
---|
57 | add.l #24,R13
|
---|
58 | L5:
|
---|
59 | *line 42
|
---|
60 | tst.l 16(R13)
|
---|
61 | bne L4
|
---|
62 | L3:
|
---|
63 | *line 44
|
---|
64 | clr R0
|
---|
65 | bra L1
|
---|
66 | L1:tst.l (sp)+
|
---|
67 | movem.l (sp)+,R6-R7/R13-R13
|
---|
68 | unlk R14
|
---|
69 | rts
|
---|
70 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.