2 ; SDL - Simple DirectMedia Layer
3 ; Copyright (C) 1997-2009 Sam Lantinga
5 ; This library is free software; you can redistribute it and/or
6 ; modify it under the terms of the GNU Library General Public
7 ; License as published by the Free Software Foundation; either
8 ; version 2 of the License, or (at your option) any later version.
10 ; This library is distributed in the hope that it will be useful,
11 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ; Library General Public License for more details.
15 ; You should have received a copy of the GNU Library General Public
16 ; License along with this library; if not, write to the Free
17 ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 ; Assembler routines for RISC OS display
29 ; Display 32bpp to 32bpp, 1:1
31 ; Code provided by Adrain Lees
33 ; entry a1 -> destination
34 ; a2 = dest width in pixels
35 ; a3 = dest line length in bytes
36 ; a4 = dest height in scanlines
38 ; arg6 = byte offset from end of source line to start of next
44 STMFD sp!,{a2,v1-v6,sl,fp,lr}
49 00 ;tail strip of 1-15 pixels
58 ucp64end ADDS a2,a2,#16
61 02 SUBS a4,a4,#1 ;height--
63 LDRHI a2,[sp] ;reload width
66 ;move to start of next scanline
72 ucp64lp SUBS a2,a2,#16
115 03 LDMFD sp!,{a2,v1-v6,sl,fp,pc}