source: buchla-68k/alcyon/memset.s@ 73dd55f

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