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:
420 bytes
|
Line | |
---|
1 | .globl _memset
|
---|
2 | .text
|
---|
3 | _memset:
|
---|
4 | ~~memset:
|
---|
5 | ~sp=R13
|
---|
6 | ~c=R7
|
---|
7 | ~n=R6
|
---|
8 | link R14,#0
|
---|
9 | movem.l R5-R7/R12-R13,-(sp)
|
---|
10 | ~sp0=R12
|
---|
11 | *line 16
|
---|
12 | move.l R13,R12
|
---|
13 | *line 18
|
---|
14 | move.l 8(R14),R13
|
---|
15 | *line 18
|
---|
16 | move.b 13(R14),R7
|
---|
17 | *line 18
|
---|
18 | move 14(R14),R6
|
---|
19 | *line 18
|
---|
20 | bra L4
|
---|
21 | L3:
|
---|
22 | *line 19
|
---|
23 | move.b R7,(R13)+
|
---|
24 | L4:
|
---|
25 | *line 19
|
---|
26 | sub #1,R6
|
---|
27 | bge L3
|
---|
28 | L2:
|
---|
29 | *line 21
|
---|
30 | move.l R12,R0
|
---|
31 | bra L1
|
---|
32 | L1:tst.l (sp)+
|
---|
33 | movem.l (sp)+,R6-R7/R12-R13
|
---|
34 | unlk R14
|
---|
35 | rts
|
---|
36 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.