source: buchla-68k/alcyon/memcpy.s@ 0170798

Last change on this file since 0170798 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Added Alcyon C reference output.

  • Property mode set to 100644
File size: 427 bytes
Line 
1.globl _memcpy
2.text
3_memcpy:
4~~memcpy:
5~s1=R13
6~s2=R12
7~n=R7
8link R14,#0
9movem.l R6-R7/R11-R13,-(sp)
10~os1=R11
11*line 16
12move.l R13,R11
13*line 18
14move.l 8(R14),R13
15*line 18
16move.l 12(R14),R12
17*line 18
18move 16(R14),R7
19*line 18
20bra L4
21L3:
22*line 19
23move.b (R12)+,(R13)+
24L4:
25*line 19
26sub #1,R7
27bge L3
28L2:
29*line 20
30move.l R11,R0
31bra L1
32L1:tst.l (sp)+
33movem.l (sp)+,R7-R7/R11-R13
34unlk R14
35rts
36.data
Note: See TracBrowser for help on using the repository browser.