mem.s
来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· S 代码 · 共 447 行
S
447 行
.file 1 "mem.c".section .mdebug.abi32.previous.section .text.av_free,"ax",@progbits.align 2.align 5.globl av_free.ent av_free.type av_free, @functionav_free:.frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0.mask 0x00000000,0.fmask 0x00000000,0.set noreorder.set nomacrobeq $4,$0,$L6nopj uc_freenop$L6:j $31nop.set macro.set reorder.end av_free.section .text.av_realloc,"ax",@progbits.align 2.align 5.globl av_realloc.ent av_realloc.type av_realloc, @functionav_realloc:.frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0.mask 0x00000000,0.fmask 0x00000000,0.set noreorder.set nomacroli $2,2147418112 # 0x7fff0000ori $2,$2,0xfff0sltu $3,$5,$2bne $3,$0,$L13move $2,$0j $31nop$L13:j uc_reallocnop.set macro.set reorder.end av_realloc.section .text.av_malloc,"ax",@progbits.align 2.align 5.globl av_malloc.ent av_malloc.type av_malloc, @functionav_malloc:.frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0.mask 0x00000000,0.fmask 0x00000000,0.set noreorder.set nomacroli $2,2147418112 # 0x7fff0000ori $2,$2,0xfff0sltu $3,$4,$2bne $3,$0,$L22move $2,$0j $31nop$L22:j uc_mallocnop.set macro.set reorder.end av_malloc.section .text.av_freep,"ax",@progbits.align 2.align 5.globl av_freep.ent av_freep.type av_freep, @functionav_freep:.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)sw $31,20($sp)lw $2,0($4)move $16,$4beq $2,$0,$L26move $4,$2jal uc_freenop$L26:sw $0,0($16)lw $31,20($sp)lw $16,16($sp)j $31addiu $sp,$sp,24.set macro.set reorder.end av_freep.section .text.av_strdup,"ax",@progbits.align 2.align 5.globl av_strdup.ent av_strdup.type av_strdup, @functionav_strdup:.frame $sp,32,$31 # vars= 0, regs= 4/0, args= 16, gp= 0.mask 0x80070000,-4.fmask 0x00000000,0.set noreorder.set nomacroaddiu $sp,$sp,-32sw $18,24($sp)sw $17,20($sp)sw $16,16($sp)sw $31,28($sp)jal strlenmove $18,$4addiu $16,$2,1li $2,2147418112 # 0x7fff0000ori $2,$2,0xfff0sltu $2,$16,$2move $4,$16bne $2,$0,$L35move $17,$0$L32:move $2,$17lw $31,28($sp)lw $18,24($sp)lw $17,20($sp)lw $16,16($sp)j $31addiu $sp,$sp,32$L35:jal uc_mallocnopmove $17,$2move $5,$18move $6,$16beq $2,$0,$L32move $4,$2jal memcpynopmove $2,$17lw $31,28($sp)lw $18,24($sp)lw $17,20($sp)lw $16,16($sp)j $31addiu $sp,$sp,32.set macro.set reorder.end av_strdup.section .text.av_mallocz,"ax",@progbits.align 2.align 5.globl av_mallocz.ent av_mallocz.type av_mallocz, @functionav_mallocz:.frame $sp,32,$31 # vars= 0, regs= 3/0, args= 16, gp= 0.mask 0x80030000,-8.fmask 0x00000000,0li $2,2147418112 # 0x7fff0000ori $2,$2,0xfff0addiu $sp,$sp,-32sltu $2,$4,$2sw $17,20($sp)sw $31,24($sp)sw $16,16($sp).set noreorder.set nomacrobne $2,$0,$L37move $17,$4.set macro.set reordermove $16,$0$L39:move $2,$16$L66:lw $31,24($sp)lw $17,20($sp)lw $16,16($sp).set noreorder.set nomacroj $31addiu $sp,$sp,32.set macro.set reorder$L37:jal uc_malloc.set noreorder.set nomacrobeq $2,$0,$L39move $16,$2.set macro.set reordersltu $2,$17,40.set noreorder.set nomacrobne $2,$0,$L64li $3,4 # 0x4.set macro.set reorderandi $2,$16,0x3subu $3,$3,$2li $2,2 # 0x2.set noreorder.set nomacrobeq $3,$2,$L45move $4,$16.set macro.set reorderli $2,3 # 0x3.set noreorder.set nomacrobeq $3,$2,$L46li $2,1 # 0x1.set macro.set reorderbeq $3,$2,$L65$L43:addiu $5,$4,-4move $2,$0#APP.word 0b01110000000000100000000001101111 #S32I2M XR1,$2#NO_APPandi $3,$4,0x1f.set noreorder.set nomacrobeq $3,$0,$L67addu $6,$17,$16.set macro.set reorderli $2,-32 # 0xffffffffffffffe0and $2,$5,$2addiu $4,$2,32sltu $3,$5,$4.set noreorder.set nomacrobeq $3,$0,$L68addiu $2,$6,-31.set macro.set reorder$L58:#APP.word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4#NO_APPsltu $2,$5,$4bne $2,$0,$L58addu $6,$17,$16$L67:addiu $2,$6,-31$L68:li $3,-32 # 0xffffffffffffffe0and $3,$2,$3sltu $4,$5,$3.set noreorder.set nomacrobeq $4,$0,$L69addiu $2,$6,-4.set macro.set reorderaddiu $2,$5,4$L70:#APPpref 30,0($2).word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4.word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4.word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4.word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4.word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4.word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4.word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4.word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4#NO_APPsltu $2,$5,$3.set noreorder.set nomacrobne $2,$0,$L70addiu $2,$5,4.set macro.set reorderaddiu $2,$6,-4$L69:li $3,-4 # 0xfffffffffffffffcand $3,$2,$3sltu $4,$5,$3.set noreorder.set nomacrobeq $4,$0,$L71andi $4,$6,0x3.set macro.set reorder$L60:#APP.word 0b01110000101000000000010001010101 #S32SDI XR1,$5,4#NO_APPsltu $2,$5,$3.set noreorder.set nomacrobne $2,$0,$L60andi $4,$6,0x3.set macro.set reorder$L71:li $2,2 # 0x2.set noreorder.set nomacrobeq $4,$2,$L55addiu $3,$5,4.set macro.set reorderli $2,3 # 0x3.set noreorder.set nomacrobeq $4,$2,$L56li $2,1 # 0x1.set macro.set reorder.set noreorder.set nomacrobne $4,$2,$L66move $2,$16.set macro.set reorder.set noreorder.set nomacroj $L66sb $0,4($5).set macro.set reorder$L64:move $6,$17move $4,$16.set noreorder.set nomacrojal memsetmove $5,$0.set macro.set reorder.set noreorder.set nomacroj $L66move $2,$16.set macro.set reorder$L45:addiu $4,$16,2sb $0,0($16).set noreorder.set nomacroj $L43sb $0,1($16).set macro.set reorder$L55:sb $0,4($5).set noreorder.set nomacroj $L39sb $0,1($3).set macro.set reorder$L56:sb $0,6($5)sb $0,4($5).set noreorder.set nomacroj $L39sb $0,5($5).set macro.set reorder$L46:addiu $4,$16,3sb $0,0($16)sb $0,1($16).set noreorder.set nomacroj $L43sb $0,2($16).set macro.set reorder$L65:addiu $4,$16,1.set noreorder.set nomacroj $L43sb $0,0($16).set macro.set reorder.end av_mallocz.ident "GCC: (GNU) 4.1.2"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?