X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fdraw_arm.s;h=ec5fcf7ecc0efe5338d659b2a08e89487d6dca79;hb=cff531af94bd9c9c89ae162e80f48ddc26a4e504;hp=82bb603d38a7385b35d1107d4c5de0d050137880;hpb=a39d8ba58537664e9e63e8b69bce75d4c42993a7;p=picodrive.git diff --git a/pico/draw_arm.s b/pico/draw_arm.s index 82bb603d..ec5fcf7e 100644 --- a/pico/draw_arm.s +++ b/pico/draw_arm.s @@ -1,10 +1,12 @@ -@ vim:filetype=armasm - -@ ARM assembly versions of some funtions from draw.c -@ this is highly specialized, be careful if changing related C code! - -@ (c) Copyright 2007-2008, Grazvydas "notaz" Ignotas -@ All Rights Reserved +/* + * assembly optimized versions of most funtions from draw.c + * (C) notaz, 2006-2010 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + * + * this is highly specialized, be careful if changing related C code! + */ .include "port_config.s" @@ -1638,7 +1640,7 @@ vidConvCpyRGB565: @ void *to, void *from, int pixels stmfd sp!, {r4-r9,lr} mov r8, #0x0061 orr r8, r8, #0x0800 - orr r8, r8, lsl #16 + orr r8, r8, r8, lsl #16 vidConvCpyRGB565_local ldmfd sp!, {r4-r9,lr} bx lr @@ -1663,7 +1665,7 @@ PicoDoHighPal555_nopush: mov r2, #0x40 mov r8, #0x0061 orr r8, r8, #0x0800 - orr r8, r8, lsl #16 + orr r8, r8, r8, lsl #16 vidConvCpyRGB565_local @@ -2026,3 +2028,4 @@ blockcpy_loop_or: ldmfd sp!, {r4-r6} bx lr +@ vim:filetype=armasm