mem.mid

来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· MID 代码 · 共 447 行

MID
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	nomacro		beq	$4,$0,$L6	nop	j	uc_free	nop$L6:	j	$31	nop	.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	nomacro		li	$2,2147418112			# 0x7fff0000	ori	$2,$2,0xfff0	sltu	$3,$5,$2	bne	$3,$0,$L13	move	$2,$0	j	$31	nop$L13:	j	uc_realloc	nop	.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	nomacro		li	$2,2147418112			# 0x7fff0000	ori	$2,$2,0xfff0	sltu	$3,$4,$2	bne	$3,$0,$L22	move	$2,$0	j	$31	nop$L22:	j	uc_malloc	nop	.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	nomacro		addiu	$sp,$sp,-24	sw	$16,16($sp)	sw	$31,20($sp)	lw	$2,0($4)	move	$16,$4	beq	$2,$0,$L26	move	$4,$2	jal	uc_free	nop$L26:	sw	$0,0($16)	lw	$31,20($sp)	lw	$16,16($sp)	j	$31	addiu	$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	nomacro		addiu	$sp,$sp,-32	sw	$18,24($sp)	sw	$17,20($sp)	sw	$16,16($sp)	sw	$31,28($sp)	jal	strlen	move	$18,$4	addiu	$16,$2,1	li	$2,2147418112			# 0x7fff0000	ori	$2,$2,0xfff0	sltu	$2,$16,$2	move	$4,$16	bne	$2,$0,$L35	move	$17,$0$L32:	move	$2,$17	lw	$31,28($sp)	lw	$18,24($sp)	lw	$17,20($sp)	lw	$16,16($sp)	j	$31	addiu	$sp,$sp,32$L35:	jal	uc_malloc	nop	move	$17,$2	move	$5,$18	move	$6,$16	beq	$2,$0,$L32	move	$4,$2	jal	memcpy	nop	move	$2,$17	lw	$31,28($sp)	lw	$18,24($sp)	lw	$17,20($sp)	lw	$16,16($sp)	j	$31	addiu	$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,0	li	$2,2147418112			# 0x7fff0000	ori	$2,$2,0xfff0	addiu	$sp,$sp,-32	sltu	$2,$4,$2	sw	$17,20($sp)	sw	$31,24($sp)	sw	$16,16($sp)	.set	noreorder	.set	nomacro	bne	$2,$0,$L37	move	$17,$4	.set	macro	.set	reorder	move	$16,$0$L39:	move	$2,$16$L66:	lw	$31,24($sp)	lw	$17,20($sp)	lw	$16,16($sp)	.set	noreorder	.set	nomacro	j	$31	addiu	$sp,$sp,32	.set	macro	.set	reorder$L37:	jal	uc_malloc	.set	noreorder	.set	nomacro	beq	$2,$0,$L39	move	$16,$2	.set	macro	.set	reorder	sltu	$2,$17,40	.set	noreorder	.set	nomacro	bne	$2,$0,$L64	li	$3,4			# 0x4	.set	macro	.set	reorder	andi	$2,$16,0x3	subu	$3,$3,$2	li	$2,2			# 0x2	.set	noreorder	.set	nomacro	beq	$3,$2,$L45	move	$4,$16	.set	macro	.set	reorder	li	$2,3			# 0x3	.set	noreorder	.set	nomacro	beq	$3,$2,$L46	li	$2,1			# 0x1	.set	macro	.set	reorder	beq	$3,$2,$L65$L43:	addiu	$5,$4,-4	move	$2,$0#APP	S32I2M xr1,$2#NO_APP	andi	$3,$4,0x1f	.set	noreorder	.set	nomacro	beq	$3,$0,$L67	addu	$6,$17,$16	.set	macro	.set	reorder	li	$2,-32			# 0xffffffffffffffe0	and	$2,$5,$2	addiu	$4,$2,32	sltu	$3,$5,$4	.set	noreorder	.set	nomacro	beq	$3,$0,$L68	addiu	$2,$6,-31	.set	macro	.set	reorder$L58:#APP	S32SDI xr1,$5,4#NO_APP	sltu	$2,$5,$4	bne	$2,$0,$L58	addu	$6,$17,$16$L67:	addiu	$2,$6,-31$L68:	li	$3,-32			# 0xffffffffffffffe0	and	$3,$2,$3	sltu	$4,$5,$3	.set	noreorder	.set	nomacro	beq	$4,$0,$L69	addiu	$2,$6,-4	.set	macro	.set	reorder	addiu	$2,$5,4$L70:#APP	pref 30,0($2)	S32SDI xr1,$5,4	S32SDI xr1,$5,4	S32SDI xr1,$5,4	S32SDI xr1,$5,4	S32SDI xr1,$5,4	S32SDI xr1,$5,4	S32SDI xr1,$5,4	S32SDI xr1,$5,4#NO_APP	sltu	$2,$5,$3	.set	noreorder	.set	nomacro	bne	$2,$0,$L70	addiu	$2,$5,4	.set	macro	.set	reorder	addiu	$2,$6,-4$L69:	li	$3,-4			# 0xfffffffffffffffc	and	$3,$2,$3	sltu	$4,$5,$3	.set	noreorder	.set	nomacro	beq	$4,$0,$L71	andi	$4,$6,0x3	.set	macro	.set	reorder$L60:#APP	S32SDI xr1,$5,4#NO_APP	sltu	$2,$5,$3	.set	noreorder	.set	nomacro	bne	$2,$0,$L60	andi	$4,$6,0x3	.set	macro	.set	reorder$L71:	li	$2,2			# 0x2	.set	noreorder	.set	nomacro	beq	$4,$2,$L55	addiu	$3,$5,4	.set	macro	.set	reorder	li	$2,3			# 0x3	.set	noreorder	.set	nomacro	beq	$4,$2,$L56	li	$2,1			# 0x1	.set	macro	.set	reorder	.set	noreorder	.set	nomacro	bne	$4,$2,$L66	move	$2,$16	.set	macro	.set	reorder	.set	noreorder	.set	nomacro	j	$L66	sb	$0,4($5)	.set	macro	.set	reorder$L64:	move	$6,$17	move	$4,$16	.set	noreorder	.set	nomacro	jal	memset	move	$5,$0	.set	macro	.set	reorder	.set	noreorder	.set	nomacro	j	$L66	move	$2,$16	.set	macro	.set	reorder$L45:	addiu	$4,$16,2	sb	$0,0($16)	.set	noreorder	.set	nomacro	j	$L43	sb	$0,1($16)	.set	macro	.set	reorder$L55:	sb	$0,4($5)	.set	noreorder	.set	nomacro	j	$L39	sb	$0,1($3)	.set	macro	.set	reorder$L56:	sb	$0,6($5)	sb	$0,4($5)	.set	noreorder	.set	nomacro	j	$L39	sb	$0,5($5)	.set	macro	.set	reorder$L46:	addiu	$4,$16,3	sb	$0,0($16)	sb	$0,1($16)	.set	noreorder	.set	nomacro	j	$L43	sb	$0,2($16)	.set	macro	.set	reorder$L65:	addiu	$4,$16,1	.set	noreorder	.set	nomacro	j	$L43	sb	$0,0($16)	.set	macro	.set	reorder	.end	av_mallocz	.ident	"GCC: (GNU) 4.1.2"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?