source: buchla-68k/alcyon/memsetw.s@ 526a993

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

Added Alcyon C reference output.

  • Property mode set to 100644
File size: 419 bytes
Line 
1.globl _memsetw
2.text
3_memsetw:
4~~memsetw:
5~sp=R13
6~w=R7
7~n=R6
8link R14,#0
9movem.l R5-R7/R12-R13,-(sp)
10~sp0=R12
11*line 15
12move.l R13,R12
13*line 17
14move.l 8(R14),R13
15*line 17
16move 12(R14),R7
17*line 17
18move 14(R14),R6
19*line 17
20bra L4
21L3:
22*line 18
23move R7,(R13)+
24L4:
25*line 18
26sub #1,R6
27bge L3
28L2:
29*line 20
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.