wc3movie.s
来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· S 代码 · 共 1,079 行
S
1,079 行
.file 1 "wc3movie.c".section .mdebug.abi32.previous.section .text.wc3_probe,"ax",@progbits.align 2.align 5.ent wc3_probe.type wc3_probe, @functionwc3_probe:.frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0.mask 0x00000000,0.fmask 0x00000000,0.set noreorder.set nomacrolw $2,8($4)slt $2,$2,12bne $2,$0,$L9move $3,$0lw $6,4($4)lbu $3,3($6)lbu $2,2($6)sll $3,$3,24sll $2,$2,16lbu $4,1($6)lbu $5,0($6)or $3,$3,$2or $3,$3,$5sll $4,$4,8li $2,1297219584 # 0x4d520000or $4,$4,$3ori $2,$2,0x4f46bne $4,$2,$L2noplbu $2,11($6)lbu $3,10($6)sll $2,$2,24sll $3,$3,16lbu $5,8($6)lbu $4,9($6)or $2,$2,$3or $2,$2,$5sll $4,$4,8or $4,$4,$2li $2,1163264000 # 0x45560000ori $2,$2,0x4f4dbeq $4,$2,$L6li $3,100 # 0x64$L2:move $3,$0$L6:$L9:j $31move $2,$3.set macro.set reorder.end wc3_probe.section .text.wc3_read_close,"ax",@progbits.align 2.align 5.ent wc3_read_close.type wc3_read_close, @functionwc3_read_close:.frame $sp,24,$31 # vars= 0, regs= 1/0, args= 16, gp= 0.mask 0x80000000,-8.fmask 0x00000000,0.set noreorder.set nomacroaddiu $sp,$sp,-24sw $31,16($sp)lw $2,12($4)jal av_freelw $4,8($2)lw $31,16($sp)move $2,$0j $31addiu $sp,$sp,24.set macro.set reorder.end wc3_read_close.section .rodata.str1.4,"aMS",@progbits,1.align 2$LC0:.ascii "Subtitle time!\012\000".align 2$LC1:.ascii " inglish: %s\012\000".align 2$LC2:.ascii " doytsch: %s\012\000".align 2$LC3:.ascii " fronsay: %s\012\000".align 2$LC4:.ascii " unrecognized WC3 chunk: %c%c%c%c (0x%02X%02X%02X%02X)\012".ascii "\000".section .text.wc3_read_packet,"ax",@progbits.align 2.align 5.ent wc3_read_packet.type wc3_read_packet, @functionwc3_read_packet:.frame $sp,1120,$31 # vars= 1032, regs= 9/0, args= 48, gp= 0.mask 0x80ff0000,-8.fmask 0x00000000,0.set noreorder.set nomacroaddiu $sp,$sp,-1120sw $22,1104($sp)sw $21,1100($sp)sw $20,1096($sp)sw $19,1092($sp)sw $31,1112($sp)sw $23,1108($sp)sw $18,1088($sp)sw $17,1084($sp)sw $16,1080($sp)lw $18,12($4)move $20,$4move $22,$5addiu $19,$4,16addiu $21,$sp,48$L41:move $4,$19$L42:move $5,$21jal get_bufferli $6,8 # 0x8lbu $3,52($sp)lbu $2,53($sp)lbu $11,51($sp)lbu $10,50($sp)sll $2,$2,16sll $3,$3,24or $3,$3,$2lbu $4,54($sp)sll $2,$10,16lbu $6,55($sp)lbu $9,49($sp)sll $5,$11,24lbu $8,48($sp)or $5,$5,$2or $3,$3,$6sll $2,$9,8sll $4,$4,8or $5,$5,$8or $4,$4,$3or $5,$2,$5li $2,1229193216 # 0x49440000addiu $4,$4,1li $3,-2 # 0xfffffffffffffffeori $2,$2,0x5541beq $5,$2,$L16and $16,$4,$3sltu $2,$2,$5bne $2,$0,$L19li $2,1414463488 # 0x544f0000li $2,541130752 # 0x20410000ori $2,$2,0x4756beq $5,$2,$L15li $2,1212350464 # 0x48430000ori $2,$2,0x5242beq $5,$2,$L42move $4,$19lui $6,%hi($LC4)$L43:move $4,$20addiu $6,$6,%lo($LC4)move $7,$8move $5,$0sw $10,36($sp)sw $10,20($sp)sw $9,32($sp)sw $11,40($sp)sw $9,16($sp)sw $11,24($sp)jal av_logsw $8,28($sp)li $10,-22 # 0xffffffffffffffea$L24:lw $31,1112($sp)lw $23,1108($sp)lw $22,1104($sp)lw $21,1100($sp)lw $20,1096($sp)lw $19,1092($sp)lw $18,1088($sp)lw $17,1084($sp)lw $16,1080($sp)move $2,$10j $31addiu $sp,$sp,1120$L19:ori $2,$2,0x4853beq $5,$2,$L17li $2,1415053312 # 0x54580000ori $2,$2,0x4554bne $5,$2,$L43lui $6,%hi($LC4)sltu $2,$16,1025beq $2,$0,$L42move $4,$19addiu $23,$sp,56move $5,$23jal get_buffermove $6,$16bne $16,$2,$L41lui $6,%hi($LC0)move $4,$20addiu $6,$6,%lo($LC0)jal av_logli $5,2 # 0x2lui $6,%hi($LC1)move $4,$20addiu $7,$sp,57addiu $6,$6,%lo($LC1)jal av_logli $5,2 # 0x2lbu $17,56($sp)lui $6,%hi($LC2)addiu $16,$17,1addu $7,$23,$16move $4,$20addiu $6,$6,%lo($LC2)addiu $7,$7,1li $5,2 # 0x2jal av_logaddu $16,$21,$16lbu $7,8($16)addiu $17,$17,2addu $7,$7,$17addu $7,$23,$7lui $6,%hi($LC3)addiu $6,$6,%lo($LC3)addiu $7,$7,1move $4,$20jal av_logli $5,2 # 0x2j $L42move $4,$19$L16:move $4,$19move $5,$22jal av_get_packetmove $6,$16lw $6,16($18)lw $7,20($18)sw $6,0($22)sw $7,4($22)lw $4,16($18)xor $8,$16,$2lw $5,20($18)move $10,$2addiu $2,$4,6000lw $9,28($18)sltu $7,$2,$4addu $3,$7,$5sw $2,16($18)sw $3,20($18)sw $9,24($22)li $6,-5 # 0xfffffffffffffffbmovn $10,$6,$8lw $31,1112($sp)lw $23,1108($sp)lw $22,1104($sp)lw $21,1100($sp)lw $20,1096($sp)lw $19,1092($sp)lw $18,1088($sp)lw $17,1084($sp)lw $16,1080($sp)move $2,$10j $31addiu $sp,$sp,1120$L17:move $4,$19move $5,$21jal get_bufferli $6,4 # 0x4li $3,4 # 0x4bne $2,$3,$L20lbu $3,51($sp)lbu $2,50($sp)sll $3,$3,24sll $2,$2,16lbu $4,49($sp)lbu $5,48($sp)or $3,$3,$2or $3,$3,$5sll $4,$4,8lw $2,12($18)or $4,$4,$3sltu $2,$4,$2beq $2,$0,$L34sll $3,$4,10sll $2,$4,8lw $8,8($18)subu $6,$3,$2move $7,$0li $9,1024 # 0x400$L25:addu $2,$6,$8lbu $3,0($2)lbu $5,2($2)lbu $4,1($2)sll $3,$3,16or $3,$3,$5sll $4,$4,8addu $2,$7,$18or $4,$4,$3addiu $7,$7,4sw $4,36($2)bne $7,$9,$L25addiu $6,$6,3li $2,1 # 0x1j $L41sw $2,32($18)$L15:move $4,$19move $5,$22jal av_get_packetmove $6,$16move $10,$2lw $3,20($18)lw $2,16($18)lw $4,24($18)sw $2,0($22)sw $3,4($22)beq $16,$10,$L24sw $4,24($22)$L20:li $10,-5 # 0xfffffffffffffffblw $31,1112($sp)lw $23,1108($sp)lw $22,1104($sp)lw $21,1100($sp)lw $20,1096($sp)lw $19,1092($sp)lw $18,1088($sp)lw $17,1084($sp)lw $16,1080($sp)move $2,$10j $31addiu $sp,$sp,1120$L34:j $L24li $10,-22 # 0xffffffffffffffea.set macro.set reorder.end wc3_read_packet.section .text.wc3_read_header,"ax",@progbits.align 2.align 5.ent wc3_read_header.type wc3_read_header, @functionwc3_read_header:.frame $sp,96,$31 # vars= 8, regs= 9/0, args= 48, gp= 0.mask 0x80ff0000,-8.fmask 0x00000000,0.set noreorder.set nomacroaddiu $sp,$sp,-96sw $31,88($sp)sw $20,72($sp)sw $19,68($sp)sw $18,64($sp)sw $23,84($sp)sw $22,80($sp)sw $21,76($sp)sw $17,60($sp)sw $16,56($sp)lw $17,12($4)li $2,320 # 0x140li $3,165 # 0xa5sw $2,0($17)sw $3,4($17)addiu $18,$4,16move $2,$0move $3,$0sw $2,16($17)sw $0,8($17)sw $0,12($17)sw $3,20($17)sw $0,28($17)sw $0,24($17)li $6,12 # 0xcmove $7,$0li $2,1 # 0x1move $19,$4addiu $20,$sp,48move $4,$18jal url_fseeksw $2,16($sp)move $4,$18move $5,$20jal get_bufferli $6,8 # 0x8li $3,8 # 0x8beq $2,$3,$L79lbu $2,52($sp)$L45:li $8,-5 # 0xfffffffffffffffb$L59:lw $31,88($sp)lw $23,84($sp)lw $22,80($sp)lw $21,76($sp)lw $20,72($sp)lw $19,68($sp)lw $18,64($sp)lw $17,60($sp)lw $16,56($sp)move $2,$8j $31addiu $sp,$sp,96$L79:lbu $3,53($sp)lbu $5,55($sp)sll $3,$3,16sll $2,$2,24lbu $11,51($sp)lbu $10,50($sp)lbu $4,54($sp)or $2,$2,$3or $2,$2,$5sll $3,$10,16sll $4,$4,8lbu $9,49($sp)sll $5,$11,24lbu $8,48($sp)or $5,$5,$3or $4,$4,$2li $3,-2 # 0xfffffffffffffffesll $2,$9,8or $5,$5,$8addiu $4,$4,1or $5,$2,$5and $4,$4,$3li $2,1296105472 # 0x4d410000lui $3,%hi(wc3_pal_lookup)ori $21,$2,0x4e42addiu $23,$3,%lo(wc3_pal_lookup)move $22,$0$L47:beq $5,$21,$L51sltu $2,$21,$5bne $2,$0,$L54li $2,1480851456 # 0x58440000li $2,1145962496 # 0x444e0000ori $2,$2,0x4f53beq $5,$2,$L49li $2,1163526144 # 0x455a0000ori $2,$2,0x4953beq $5,$2,$L80move $4,$18lui $6,%hi($LC4)$L83:move $4,$19move $7,$8addiu $6,$6,%lo($LC4)move $5,$0sw $8,28($sp)sw $9,32($sp)sw $10,36($sp)sw $11,40($sp)sw $9,16($sp)sw $10,20($sp)jal av_logsw $11,24($sp)li $8,-22 # 0xffffffffffffffealw $31,88($sp)lw $23,84($sp)lw $22,80($sp)lw $21,76($sp)lw $20,72($sp)lw $19,68($sp)lw $18,64($sp)lw $17,60($sp)lw $16,56($sp)move $2,$8j $31addiu $sp,$sp,96$L54:ori $2,$2,0x4e49beq $5,$2,$L49li $2,1598226432 # 0x5f430000ori $2,$2,0x505fbeq $5,$2,$L53li $2,1414266880 # 0x544c0000ori $2,$2,0x4150bne $5,$2,$L83lui $6,%hi($LC4)lw $2,12($17)sltu $2,$22,$2beq $2,$0,$L77sll $3,$22,8lw $5,8($17)sll $2,$22,10subu $16,$2,$3addu $5,$16,$5move $4,$18jal get_bufferli $6,768 # 0x300li $3,768 # 0x300bne $2,$3,$L59li $8,-5 # 0xfffffffffffffffbaddiu $6,$16,768slt $2,$16,$6beq $2,$0,$L67move $7,$23$L68:lw $5,8($17)addu $5,$16,$5lbu $2,0($5)addiu $16,$16,1srl $3,$2,6sll $2,$2,2or $2,$2,$3andi $2,$2,0x00ffaddu $2,$2,$7lbu $3,0($2)slt $4,$16,$6bne $4,$0,$L68sb $3,0($5)$L67:j $L55addiu $22,$22,1$L51:sltu $2,$4,512li $16,512 # 0x200movn $16,$4,$2addiu $5,$19,1216move $4,$18jal get_buffermove $6,$16bne $16,$2,$L59li $8,-5 # 0xfffffffffffffffb$L55:move $4,$18$L82:move $5,$20jal get_bufferli $6,8 # 0x8li $3,8 # 0x8bne $2,$3,$L45lbu $11,51($sp)lbu $10,50($sp)lbu $9,49($sp)sll $3,$10,16sll $2,$11,24lbu $8,48($sp)or $2,$2,$3or $2,$2,$8sll $3,$9,8or $7,$3,$2li $2,1212350464 # 0x48430000ori $2,$2,0x5242lbu $3,52($sp)lbu $5,53($sp)lbu $6,54($sp)beq $7,$2,$L70lbu $4,55($sp)sll $2,$5,16sll $3,$3,24or $3,$3,$2or $3,$3,$4sll $2,$6,8or $2,$2,$3addiu $2,$2,1li $3,-2 # 0xfffffffffffffffeand $4,$2,$3j $L47move $5,$7$L49:move $6,$4move $7,$0move $4,$18li $2,1 # 0x1jal url_fseeksw $2,16($sp)j $L82move $4,$18$L70:move $4,$19jal av_new_streammove $5,$0bne $2,$0,$L81move $16,$2$L72:j $L59li $8,-12 # 0xfffffffffffffff4$L53:li $6,8 # 0x8move $7,$0move $4,$18li $2,1 # 0x1jal url_fseeksw $2,16($sp)move $4,$18move $5,$20jal get_bufferli $6,4 # 0x4li $3,4 # 0x4bne $2,$3,$L45lbu $3,51($sp)lbu $2,50($sp)lbu $4,49($sp)sll $2,$2,16lbu $5,48($sp)sll $3,$3,24or $3,$3,$2or $3,$3,$5sll $4,$4,8li $2,5570560 # 0x550000or $4,$4,$3ori $2,$2,0x5555sltu $2,$4,$2beq $2,$0,$L76sw $4,12($17)sll $2,$4,10sll $4,$4,8jal av_mallocsubu $4,$2,$4j $L55sw $2,8($17)$L80:move $5,$20jal get_bufferli $6,8 # 0x8li $3,8 # 0x8bne $2,$3,$L45lbu $2,51($sp)lbu $4,50($sp)lbu $5,48($sp)lbu $3,49($sp)sll $4,$4,16sll $2,$2,24or $2,$2,$4or $2,$2,$5sll $3,$3,8or $3,$3,$2sw $3,0($17)lbu $2,55($sp)lbu $4,54($sp)lbu $3,53($sp)lbu $5,52($sp)sll $2,$2,24sll $4,$4,16or $2,$2,$4or $2,$2,$5sll $3,$3,8or $3,$3,$2j $L55sw $3,4($17)$L81:li $18,65536 # 0x10000move $4,$2li $5,33 # 0x21li $6,1 # 0x1jal av_set_pts_infoori $7,$18,0x5f90lw $3,8($16)lw $2,0($16)addiu $4,$17,32sw $2,24($17)sw $0,232($3)lw $2,0($17)sw $4,584($3)sw $2,40($3)lw $5,4($17)li $2,41 # 0x29sw $5,44($3)sw $2,228($3)sw $0,224($3)move $4,$19jal av_new_streammove $5,$0beq $2,$0,$L72move $16,$2move $4,$2li $5,33 # 0x21li $6,1 # 0x1jal av_set_pts_infoori $7,$18,0x5f90lw $2,8($16)lw $4,0($16)li $5,22050 # 0x5622li $3,1 # 0x1li $7,16 # 0x10sll $6,$5,4move $8,$0sw $4,28($17)sw $18,228($2)sw $7,272($2)sw $3,68($2)sw $6,4($2)sw $3,224($2)sw $3,232($2)sw $7,392($2)j $L59sw $5,64($2)$L76:li $8,-1 # 0xffffffffffffffffj $L59sw $0,12($17)$L77:j $L59li $8,-22 # 0xffffffffffffffea.set macro.set reorder.end wc3_read_header.globl wc3_demuxer.section .rodata.str1.4.align 2$LC5:.ascii "wc3movie\000".align 2$LC6:.ascii "Wing Commander III movie format\000".data.align 2.type wc3_demuxer, @object.size wc3_demuxer, 64wc3_demuxer:.word $LC5.word $LC6.word 1064.word wc3_probe.word wc3_read_header.word wc3_read_packet.word wc3_read_close.space 36.rdata.align 2.type wc3_pal_lookup, @object.size wc3_pal_lookup, 256wc3_pal_lookup:.byte 0.byte 3.byte 5.byte 7.byte 9.byte 11.byte 13.byte 14.byte 16.byte 18.byte 19.byte 21.byte 22.byte 24.byte 25.byte 26.byte 28.byte 29.byte 31.byte 32.byte 33.byte 35.byte 36.byte 37.byte 39.byte 40.byte 41.byte 42.byte 44.byte 45.byte 46.byte 47.byte 49.byte 50.byte 51.byte 52.byte 53.byte 54.byte 56.byte 57.byte 58.byte 59.byte 60.byte 61.byte 63.byte 64.byte 65.byte 66.byte 67.byte 68.byte 69.byte 70.byte 72.byte 73.byte 74.byte 75.byte 76.byte 77.byte 78.byte 79.byte 80.byte 81.byte 82.byte 83.byte 84.byte 86.byte 87.byte 88.byte 89.byte 90.byte 91.byte 92.byte 93.byte 94.byte 95.byte 96.byte 97.byte 98.byte 99.byte 100.byte 101.byte 102.byte 103.byte 104.byte 105.byte 106.byte 107.byte 108.byte 109.byte 110.byte 111.byte 112.byte 113.byte 114.byte 115.byte 116.byte 117.byte 118.byte 119.byte 120.byte 121.byte 122.byte 123.byte 124.byte 125.byte 125.byte 126.byte 127.byte -128.byte -127.byte -126.byte -125.byte -124.byte -123.byte -122.byte -121.byte -120.byte -119.byte -118.byte -117.byte -116.byte -115.byte -115.byte -114.byte -113.byte -112.byte -111.byte -110.byte -109.byte -108.byte -107.byte -106.byte -105.byte -104.byte -103.byte -103.byte -102.byte -101.byte -100.byte -99.byte -98.byte -97.byte -96.byte -95.byte -94.byte -94.byte -93.byte -92.byte -91.byte -90.byte -89.byte -88.byte -87.byte -86.byte -86.byte -85.byte -84.byte -83.byte -82.byte -81.byte -80.byte -79.byte -78.byte -78.byte -77.byte -76.byte -75.byte -74.byte -73.byte -72.byte -71.byte -71.byte -70.byte -69.byte -68.byte -67.byte -66.byte -65.byte -65.byte -64.byte -63.byte -62.byte -61.byte -60.byte -59.byte -59.byte -58.byte -57.byte -56.byte -55.byte -54.byte -53.byte -53.byte -52.byte -51.byte -50.byte -49.byte -48.byte -48.byte -47.byte -46.byte -45.byte -44.byte -43.byte -43.byte -42.byte -41.byte -40.byte -39.byte -38.byte -38.byte -37.byte -36.byte -35.byte -34.byte -33.byte -33.byte -32.byte -31.byte -30.byte -29.byte -28.byte -28.byte -27.byte -26.byte -25.byte -24.byte -23.byte -23.byte -22.byte -21.byte -20.byte -19.byte -19.byte -18.byte -17.byte -16.byte -15.byte -15.byte -14.byte -13.byte -12.byte -11.byte -10.byte -10.byte -9.byte -8.byte -7.byte -6.byte -6.byte -5.byte -4.byte -3.byte -3.byte -3.byte -3.ident "GCC: (GNU) 4.1.2"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?