vd_mtga.s
来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· S 代码 · 共 1,349 行 · 第 1/2 页
S
1,349 行
.file 1 "vd_mtga.c".section .mdebug.abi32.previous.section .text.control,"ax",@progbits.align 2.align 5.ent control.type control, @functioncontrol:.frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0.mask 0x00000000,0.fmask 0x00000000,0.set noreorder.set nomacroli $2,3 # 0x3li $3,-1 # 0xffffffffffffffffbeq $5,$2,$L7sw $7,12($sp)j $31move $2,$3$L7:lui $3,%hi(out_fmt)lw $4,%lo(out_fmt)($3)lw $2,0($6)xor $2,$2,$4sltu $3,$2,1j $31move $2,$3.set macro.set reorder.end control.section .text.uninit,"ax",@progbits.align 2.align 5.ent uninit.type uninit, @functionuninit:.frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0.mask 0x00000000,0.fmask 0x00000000,0.set noreorder.set nomacroj uc_freelw $4,344($4).set macro.set reorder.end uninit.section .text.init,"ax",@progbits.align 2.align 5.ent init.type init, @functioninit:.frame $sp,24,$31 # vars= 0, regs= 2/0, args= 16, gp= 0.mask 0x80010000,-4.fmask 0x00000000,0.set noreorder.set nomacroaddiu $sp,$sp,-24sw $16,16($sp)li $5,14 # 0xemove $16,$4sw $31,20($sp)jal uc_callocli $4,1 # 0x1sw $2,344($16)li $3,-1 # 0xfffffffffffffffflui $2,%hi(last_w)sw $3,%lo(last_w)($2)lw $31,20($sp)lw $16,16($sp)li $2,1 # 0x1j $31addiu $sp,$sp,24.set macro.set reorder.end init.section .rodata.str1.4,"aMS",@progbits,1.align 2$LC0:.ascii "Unsupported TGA type! depth=%d\012\000".align 2$LC1:.ascii "Unsupported TGA type: %i!\012\000".section .text.decode,"ax",@progbits.align 2.align 5.ent decode.type decode, @functiondecode:.frame $sp,80,$31 # vars= 16, regs= 10/0, args= 24, gp= 0.mask 0xc0ff0000,-4.fmask 0x00000000,0addiu $sp,$sp,-80sw $17,44($sp)sw $16,40($sp)sw $31,76($sp)sw $fp,72($sp)sw $23,68($sp)sw $22,64($sp)sw $21,60($sp)sw $20,56($sp)sw $19,52($sp)sw $18,48($sp)move $17,$4move $16,$5.set noreorder.set nomacroblez $6,$L13lw $19,344($4).set macro.set reorderlbu $2,0($5)sb $2,0($19)lbu $3,2($5)sh $3,2($19)lhu $2,12($5)sh $2,4($19)lhu $3,14($5)sh $3,6($19)lbu $4,16($5)sb $4,8($19)lbu $2,17($5)andi $7,$4,0x00ffandi $2,$2,0x20sltu $3,$0,$2li $2,24 # 0x18.set noreorder.set nomacrobeq $7,$2,$L143sb $3,9($19).set macro.set reorderli $2,32 # 0x20.set noreorder.set nomacrobne $7,$2,$L18li $2,1111949312 # 0x42470000.set macro.set reorderlui $10,%hi(out_fmt)ori $2,$2,0x5220sw $2,%lo(out_fmt)($10)$L17:lhu $7,2($19)li $2,2 # 0x2.set noreorder.set nomacrobeq $7,$2,$L21li $2,10 # 0xa.set macro.set reorder.set noreorder.set nomacrobne $7,$2,$L144lui $6,%hi($LC1).set macro.set reorder$L21:.set noreorder.set nomacrobeq $3,$0,$L24lui $9,%hi(last_w).set macro.set reorderlbu $4,9($19)li $3,1 # 0x1li $2,-1 # 0xfffffffffffffffflhu $6,4($19)lw $5,%lo(last_w)($9)move $8,$0movz $3,$2,$4sh $8,10($19)sh $3,12($19).set noreorder.set nomacrobne $6,$5,$L118lbu $18,0($19).set macro.set reorder$L147:lui $4,%hi(last_h)lhu $8,6($19)lw $2,%lo(last_h)($4).set noreorder.set nomacrobeq $8,$2,$L145lui $5,%hi(last_c).set macro.set reorder$L30:lw $7,%lo(out_fmt)($10)$L166:sw $6,%lo(last_w)($9)sw $8,%lo(last_h)($4).set noreorder.set nomacrobne $7,$0,$L146sw $7,%lo(last_c)($5).set macro.set reorder$L13:sw $0,28($sp)$L20:lw $2,28($sp)$L162:lw $31,76($sp)$L177:lw $fp,72($sp)lw $23,68($sp)lw $22,64($sp)lw $21,60($sp)lw $20,56($sp)lw $19,52($sp)lw $18,48($sp)lw $17,44($sp)lw $16,40($sp).set noreorder.set nomacroj $31addiu $sp,$sp,80.set macro.set reorder$L24:lhu $2,6($19)lbu $4,9($19)addiu $2,$2,-1andi $8,$2,0xffffli $3,1 # 0x1li $2,-1 # 0xfffffffffffffffflhu $6,4($19)lw $5,%lo(last_w)($9)movz $3,$2,$4sh $8,10($19)sh $3,12($19).set noreorder.set nomacrobeq $6,$5,$L147lbu $18,0($19).set macro.set reorder$L118:lhu $8,6($19)lui $4,%hi(last_h).set noreorder.set nomacroj $L30lui $5,%hi(last_c).set macro.set reorder$L143:li $2,1111949312 # 0x42470000lui $10,%hi(out_fmt)ori $2,$2,0x5218.set noreorder.set nomacroj $L17sw $2,%lo(out_fmt)($10).set macro.set reorder$L144:addiu $6,$6,%lo($LC1)li $4,13 # 0xd.set noreorder.set nomacrojal mp_msgli $5,4 # 0x4.set macro.set reorder.set noreorder.set nomacroj $L20sw $0,28($sp).set macro.set reorder$L145:lw $3,%lo(last_c)($5)lw $2,%lo(out_fmt)($10).set noreorder.set nomacrobne $3,$2,$L166lw $7,%lo(out_fmt)($10).set macro.set reorder$L33:move $7,$6move $4,$17li $5,2 # 0x2li $6,16 # 0x10.set noreorder.set nomacrojal mpcodecs_get_imagesw $8,16($sp).set macro.set reorder.set noreorder.set nomacrobeq $2,$0,$L20sw $2,28($sp).set macro.set reorderlhu $4,2($19)addu $2,$16,$18li $3,2 # 0x2.set noreorder.set nomacrobeq $4,$3,$L148addiu $17,$2,18.set macro.set reorderli $2,10 # 0xa.set noreorder.set nomacrobne $4,$2,$L162lw $2,28($sp).set macro.set reorderlhu $5,10($19)lbu $2,8($19)sw $5,24($sp)lbu $3,9($19).set noreorder.set nomacrobne $3,$0,$L115srl $21,$2,3.set macro.set reorder$L156:lw $5,24($sp).set noreorder.set nomacrobeq $5,$0,$L162lw $2,28($sp).set macro.set reorder$L56:lw $6,28($sp)lhu $2,4($19)lw $5,32($6).set noreorder.set nomacroblez $2,$L57lw $4,48($6).set macro.set reorderlw $2,24($sp)move $fp,$0mul $3,$2,$4li $4,-32 # 0xffffffffffffffe0and $4,$21,$4sw $4,32($sp)addu $16,$3,$5lbu $3,0($17)addiu $20,$17,1andi $2,$3,0x7fsll $3,$3,24addiu $23,$2,1sra $3,$3,24.set noreorder.set nomacrobltz $3,$L149mul $18,$21,$23.set macro.set reorder$L60:sltu $2,$18,32.set noreorder.set nomacrobne $2,$0,$L167move $4,$16.set macro.set reorderandi $2,$16,0x3.set noreorder.set nomacrobne $2,$0,$L168move $5,$20.set macro.set reorderandi $2,$20,0x3.set noreorder.set nomacrobne $2,$0,$L168li $3,-32 # 0xffffffffffffffe0.set macro.set reorderaddiu $4,$16,-4and $2,$18,$3addu $6,$4,$2sltu $3,$4,$6.set noreorder.set nomacrobeq $3,$0,$L106addiu $5,$17,-3.set macro.set reorder$L130:#APP.word 0b01110000101000000000010001010100 #S32LDI XR1,$5,4.word 0b01110000101000000000010010010100 #S32LDI XR2,$5,4.word 0b01110000101000000000010011010100 #S32LDI XR3,$5,4.word 0b01110000101000000000010100010100 #S32LDI XR4,$5,4.word 0b01110000101000000000010101010100 #S32LDI XR5,$5,4.word 0b01110000101000000000010110010100 #S32LDI XR6,$5,4.word 0b01110000101000000000010111010100 #S32LDI XR7,$5,4.word 0b01110000101000000000011000010100 #S32LDI XR8,$5,4.word 0b01110000100000000000010001010101 #S32SDI XR1,$4,4.word 0b01110000100000000000010010010101 #S32SDI XR2,$4,4.word 0b01110000100000000000010011010101 #S32SDI XR3,$4,4.word 0b01110000100000000000010100010101 #S32SDI XR4,$4,4.word 0b01110000100000000000010101010101 #S32SDI XR5,$4,4.word 0b01110000100000000000010110010101 #S32SDI XR6,$4,4.word 0b01110000100000000000010111010101 #S32SDI XR7,$4,4.word 0b01110000100000000000011000010101 #S32SDI XR8,$4,4#NO_APPsltu $2,$4,$6bne $2,$0,$L130$L106:andi $2,$18,0x1caddu $6,$6,$2sltu $3,$4,$6.set noreorder.set nomacrobeq $3,$0,$L169andi $2,$18,0x3.set macro.set reorder$L131:#APP.word 0b01110000101000000000010001010100 #S32LDI XR1,$5,4.word 0b01110000100000000000010001010101 #S32SDI XR1,$4,4#NO_APPsltu $2,$4,$6.set noreorder.set nomacrobne $2,$0,$L131andi $2,$18,0x3.set macro.set reorder$L169:li $6,2 # 0x2.set noreorder.set nomacrobeq $2,$6,$L112li $3,3 # 0x3.set macro.set reorder.set noreorder.set nomacrobeq $2,$3,$L113li $6,1 # 0x1.set macro.set reorderbeq $2,$6,$L150$L110:lhu $2,4($19)$L164:addu $fp,$fp,$23slt $2,$fp,$2.set noreorder.set nomacrobeq $2,$0,$L121addu $17,$20,$18.set macro.set reorder$L155:lbu $3,0($17)addu $16,$16,$18andi $2,$3,0x7fsll $3,$3,24addiu $23,$2,1sra $3,$3,24addiu $20,$17,1.set noreorder.set nomacrobgez $3,$L60mul $18,$21,$23.set macro.set reorder$L149:sltu $2,$21,32.set noreorder.set nomacrobne $2,$0,$L120andi $22,$16,0x3.set macro.set reorder.set noreorder.set nomacrobne $22,$0,$L170move $4,$16.set macro.set reorderandi $2,$20,0x3.set noreorder.set nomacrobne $2,$0,$L171move $5,$20.set macro.set reorderlw $2,32($sp)addiu $4,$16,-4addu $3,$4,$2sltu $2,$4,$3.set noreorder.set nomacrobeq $2,$0,$L66addiu $5,$17,-3.set macro.set reorder$L124:#APP.word 0b01110000101000000000010001010100 #S32LDI XR1,$5,4.word 0b01110000101000000000010010010100 #S32LDI XR2,$5,4.word 0b01110000101000000000010011010100 #S32LDI XR3,$5,4.word 0b01110000101000000000010100010100 #S32LDI XR4,$5,4.word 0b01110000101000000000010101010100 #S32LDI XR5,$5,4.word 0b01110000101000000000010110010100 #S32LDI XR6,$5,4.word 0b01110000101000000000010111010100 #S32LDI XR7,$5,4.word 0b01110000101000000000011000010100 #S32LDI XR8,$5,4.word 0b01110000100000000000010001010101 #S32SDI XR1,$4,4.word 0b01110000100000000000010010010101 #S32SDI XR2,$4,4.word 0b01110000100000000000010011010101 #S32SDI XR3,$4,4.word 0b01110000100000000000010100010101 #S32SDI XR4,$4,4.word 0b01110000100000000000010101010101 #S32SDI XR5,$4,4.word 0b01110000100000000000010110010101 #S32SDI XR6,$4,4.word 0b01110000100000000000010111010101 #S32SDI XR7,$4,4.word 0b01110000100000000000011000010101 #S32SDI XR8,$4,4#NO_APPsltu $2,$4,$3bne $2,$0,$L124$L66:andi $2,$21,0x1caddu $6,$3,$2sltu $3,$4,$6.set noreorder.set nomacrobeq $3,$0,$L172andi $2,$21,0x3.set macro.set reorder$L125:#APP.word 0b01110000101000000000010001010100 #S32LDI XR1,$5,4.word 0b01110000100000000000010001010101 #S32SDI XR1,$4,4#NO_APPsltu $2,$4,$6.set noreorder.set nomacrobne $2,$0,$L125andi $2,$21,0x3.set macro.set reorder$L172:li $3,2 # 0x2.set noreorder.set nomacrobeq $2,$3,$L72li $6,3 # 0x3.set macro.set reorder.set noreorder.set nomacrobeq $2,$6,$L73li $3,1 # 0x1.set macro.set reorderbeq $2,$3,$L151$L70:move $6,$21$L165:sll $17,$6,1slt $2,$18,$17.set noreorder.set nomacrobne $2,$0,$L173subu $8,$18,$6.set macro.set reordersltu $2,$6,32$L175:.set noreorder.set nomacrobne $2,$0,$L76addu $4,$6,$16.set macro.set reorderandi $2,$4,0x3bne $2,$0,$L76bne $22,$0,$L76li $5,-32 # 0xffffffffffffffe0addiu $4,$4,-4and $2,$6,$5addu $7,$4,$2sltu $3,$4,$7.set noreorder.set nomacrobeq $3,$0,$L80addiu $5,$16,-4.set macro.set reorder$L128:#APP.word 0b01110000101000000000010001010100 #S32LDI XR1,$5,4.word 0b01110000101000000000010010010100 #S32LDI XR2,$5,4.word 0b01110000101000000000010011010100 #S32LDI XR3,$5,4.word 0b01110000101000000000010100010100 #S32LDI XR4,$5,4.word 0b01110000101000000000010101010100 #S32LDI XR5,$5,4.word 0b01110000101000000000010110010100 #S32LDI XR6,$5,4.word 0b01110000101000000000010111010100 #S32LDI XR7,$5,4.word 0b01110000101000000000011000010100 #S32LDI XR8,$5,4.word 0b01110000100000000000010001010101 #S32SDI XR1,$4,4.word 0b01110000100000000000010010010101 #S32SDI XR2,$4,4.word 0b01110000100000000000010011010101 #S32SDI XR3,$4,4.word 0b01110000100000000000010100010101 #S32SDI XR4,$4,4.word 0b01110000100000000000010101010101 #S32SDI XR5,$4,4.word 0b01110000100000000000010110010101 #S32SDI XR6,$4,4.word 0b01110000100000000000010111010101 #S32SDI XR7,$4,4.word 0b01110000100000000000011000010101 #S32SDI XR8,$4,4#NO_APPsltu $2,$4,$7
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?