📄 timer-ucos.mid
字号:
.file 1 "timer-ucos.c" .section .mdebug.abi32 .previous .section .text.GetTimerMS,"ax",@progbits .align 2 .align 5 .globl GetTimerMS .ent GetTimerMS .type GetTimerMS, @functionGetTimerMS: .frame $sp,32,$31 # vars= 8, regs= 1/0, args= 16, gp= 0 .mask 0x80000000,-8 .fmask 0x00000000,0 .set noreorder .set nomacro addiu $sp,$sp,-32 sw $31,24($sp) jal JZ_GetTimer_20ms addiu $4,$sp,16 lw $4,16($sp) li $3,274857984 # 0x10620000 ori $3,$3,0x4dd3 multu $4,$3 lw $2,20($sp) mfhi $4 sll $5,$2,4 sll $2,$2,2 addu $2,$2,$5 srl $4,$4,6 lw $31,24($sp) addu $2,$2,$4 j $31 addiu $sp,$sp,32 .set macro .set reorder .end GetTimerMS .section .text.GetTimer,"ax",@progbits .align 2 .align 5 .globl GetTimer .ent GetTimer .type GetTimer, @functionGetTimer: .frame $sp,32,$31 # vars= 8, regs= 1/0, args= 16, gp= 0 .mask 0x80000000,-8 .fmask 0x00000000,0 .set noreorder .set nomacro addiu $sp,$sp,-32 sw $31,24($sp) jal JZ_GetTimer_20ms addiu $4,$sp,16 lw $4,20($sp) li $3,20000 # 0x4e20 mul $5,$4,$3 lw $2,16($sp) lw $31,24($sp) addu $2,$5,$2 j $31 addiu $sp,$sp,32 .set macro .set reorder .end GetTimer .section .text.usec_sleep,"ax",@progbits .align 2 .align 5 .globl usec_sleep .ent usec_sleep .type usec_sleep, @functionusec_sleep: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro j BUFF_TimeDly nop .set macro .set reorder .end usec_sleep .globl __floatsisf .globl __addsf3 .globl __mulsf3 .section .rodata.cst4,"aM",@progbits,4 .align 2$LC0: .word 897988541 .section .text.GetRelativeTime,"ax",@progbits .align 2 .align 5 .globl GetRelativeTime .ent GetRelativeTime .type GetRelativeTime, @functionGetRelativeTime: .frame $sp,32,$31 # vars= 8, regs= 1/0, args= 16, gp= 0 .mask 0x80000000,-8 .fmask 0x00000000,0 .set noreorder .set nomacro addiu $sp,$sp,-32 sw $31,24($sp) jal JZ_GetTimer_20ms addiu $4,$sp,16 lw $3,20($sp) li $4,20000 # 0x4e20 mul $7,$3,$4 lui $6,%hi(RelativeTime) lw $2,16($sp) lw $5,%lo(RelativeTime)($6) addu $3,$7,$2 subu $5,$3,$5 srl $2,$5,1 andi $4,$5,0x1 or $4,$4,$2 bltz $5,$L9 sw $3,%lo(RelativeTime)($6) jal __floatsisf move $4,$5 move $4,$2 lui $2,%hi($LC0) jal __mulsf3 lw $5,%lo($LC0)($2) lw $31,24($sp) j $31 addiu $sp,$sp,32$L9: jal __floatsisf nop move $4,$2 jal __addsf3 move $5,$2 move $4,$2 lui $2,%hi($LC0) jal __mulsf3 lw $5,%lo($LC0)($2) lw $31,24($sp) j $31 addiu $sp,$sp,32 .set macro .set reorder .end GetRelativeTime .section .text.InitTimer,"ax",@progbits .align 2 .align 5 .globl InitTimer .ent InitTimer .type InitTimer, @functionInitTimer: .frame $sp,32,$31 # vars= 8, regs= 1/0, args= 16, gp= 0 .mask 0x80000000,-8 .fmask 0x00000000,0 .set noreorder .set nomacro addiu $sp,$sp,-32 sw $31,24($sp) jal JZ_GetTimer_20ms addiu $4,$sp,16 lw $4,20($sp) li $5,20000 # 0x4e20 mul $3,$4,$5 lw $2,16($sp) addu $4,$3,$2 lui $3,%hi(RelativeTime) sw $4,%lo(RelativeTime)($3) lw $31,24($sp) j $31 addiu $sp,$sp,32 .set macro .set reorder .end InitTimer .globl timer_name .section .rodata.str1.4,"aMS",@progbits,1 .align 2$LC1: .ascii "sleep ucos\000" .data .align 2 .type timer_name, @object .size timer_name, 4timer_name: .word $LC1 .local RelativeTime .comm RelativeTime,4,4 .ident "GCC: (GNU) 4.1.2"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -