mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-01 00:15:14 +01:00
formatting
This commit is contained in:
parent
b752684807
commit
7fb77963b6
@ -463,41 +463,42 @@ UpdatePadsCB ()
|
||||
static inline void
|
||||
MakeTexture (const void *src, void *dst, s32 width, s32 height)
|
||||
{
|
||||
register u32 tmp0 = 0, tmp1 = 0, tmp2 = 0, tmp3 = 0;
|
||||
register u32 tmp0=0,tmp1=0,tmp2=0,tmp3=0;
|
||||
|
||||
__asm__ __volatile__ (" srwi %6,%6,2\n"
|
||||
" srwi %7,%7,2\n"
|
||||
" subi %3,%4,4\n"
|
||||
" mr %4,%3\n"
|
||||
" subi %4,%4,4\n"
|
||||
"2: mtctr %6\n"
|
||||
" mr %0,%5\n"
|
||||
//
|
||||
"1: lwz %1,0(%5)\n" //1
|
||||
" stwu %1,8(%4)\n"
|
||||
" lwz %2,4(%5)\n" //1
|
||||
" stwu %2,8(%3)\n"
|
||||
" lwz %1,1032(%5)\n" //2
|
||||
" stwu %1,8(%4)\n"
|
||||
" lwz %2,1036(%5)\n" //2
|
||||
" stwu %2,8(%3)\n"
|
||||
" lwz %1,2064(%5)\n" //3
|
||||
" stwu %1,8(%4)\n"
|
||||
" lwz %2,2068(%5)\n" //3
|
||||
" stwu %2,8(%3)\n"
|
||||
" lwz %1,3096(%5)\n" //4
|
||||
" stwu %1,8(%4)\n"
|
||||
" lwz %2,3100(%5)\n" //4
|
||||
" stwu %2,8(%3)\n"
|
||||
" addi %5,%5,8\n"
|
||||
" bdnz 1b\n"
|
||||
" addi %5,%0,4128\n" //5
|
||||
" subic. %7,%7,1\n"
|
||||
" bne 2b"
|
||||
// regs 0-7
|
||||
:"=&r" (tmp0), "=&r" (tmp1), "=&r" (tmp2),
|
||||
"=&r" (tmp3), "+r" (dst):"r" (src), "r" (width),
|
||||
"r" (height));
|
||||
__asm__ __volatile__ (
|
||||
" srwi %6,%6,2\n"
|
||||
" srwi %7,%7,2\n"
|
||||
" subi %3,%4,4\n"
|
||||
" mr %4,%3\n"
|
||||
" subi %4,%4,4\n"
|
||||
|
||||
"2: mtctr %6\n"
|
||||
" mr %0,%5\n"
|
||||
//
|
||||
"1: lwz %1,0(%5)\n" //1
|
||||
" stwu %1,8(%4)\n"
|
||||
" lwz %2,4(%5)\n" //1
|
||||
" stwu %2,8(%3)\n"
|
||||
" lwz %1,1032(%5)\n" //2
|
||||
" stwu %1,8(%4)\n"
|
||||
" lwz %2,1036(%5)\n" //2
|
||||
" stwu %2,8(%3)\n"
|
||||
" lwz %1,2064(%5)\n" //3
|
||||
" stwu %1,8(%4)\n"
|
||||
" lwz %2,2068(%5)\n" //3
|
||||
" stwu %2,8(%3)\n"
|
||||
" lwz %1,3096(%5)\n" //4
|
||||
" stwu %1,8(%4)\n"
|
||||
" lwz %2,3100(%5)\n" //4
|
||||
" stwu %2,8(%3)\n"
|
||||
" addi %5,%5,8\n"
|
||||
" bdnz 1b\n"
|
||||
" addi %5,%0,4128\n" //5
|
||||
" subic. %7,%7,1\n"
|
||||
" bne 2b"
|
||||
// 0 1 2 3 4 5 6 7
|
||||
: "=&r"(tmp0), "=&r"(tmp1), "=&r"(tmp2), "=&r"(tmp3), "+r"(dst) : "r"(src), "r"(width), "r"(height)
|
||||
);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user