cf.sbk (1833B)
1 .set reorder 2 .globl main 3 .text 4 .text 5 .align 2 6 .ent main 7 main: 8 .frame $sp,48,$31 9 .set noreorder 10 .cpload $25 11 .set reorder 12 addu $sp,$sp,-48 13 .fmask 0xc0000000,-32 14 .mask 0xc2c00000,-8 15 s.d $f30,16($sp) 16 sw $22,24($sp) 17 sw $23,28($sp) 18 .cprestore 32 19 sw $30,36($sp) 20 sw $31,40($sp) 21 sw $4,48($sp) 22 sw $5,52($sp) 23 lw $24,0+48($sp) 24 la $15,1 25 bgt $24,$15,L.2 26 l.s $f30,L.4 27 b L.3 28 L.2: 29 lw $24,4+48($sp) 30 lw $4,4($24) 31 jal atof 32 l.s $f16,L.5 33 div.s $f30,$f0,$f16 34 L.3: 35 move $30,$0 36 L.6: 37 move $24,$30 38 la $30,1($24) 39 sll $24,$24,2 40 l.s $f18,L.4 41 s.s $f18,f($24) 42 L.7: 43 la $24,127 44 ble $30,$24,L.6 45 move $23,$0 46 b L.11 47 L.10: 48 sll $24,$22,2 49 la $24,f($24) 50 l.s $f18,($24) 51 l.s $f16,L.13 52 add.s $f18,$f18,$f16 53 s.s $f18,($24) 54 la $23,1($23) 55 L.11: 56 jal getchar 57 move $22,$2 58 la $15,-1 59 bne $2,$15,L.10 60 la $4,L.14 61 jal printf 62 move $30,$0 63 L.15: 64 sll $24,$30,2 65 l.s $f18,f($24) 66 l.s $f16,L.4 67 c.eq.s $f18,$f16; bc1t L.19 68 mtc1 $23,$f16; cvt.s.w $f16,$f16 69 div.s $f18,$f18,$f16 70 c.lt.s $f18,$f30; bc1t L.19 71 la $24,32 72 bgt $30,$24,L.21 73 la $4,L.23 74 move $5,$30 75 jal printf 76 b L.22 77 L.21: 78 la $4,L.24 79 move $5,$30 80 jal printf 81 L.22: 82 la $4,L.25 83 l.s $f18,L.5 84 sll $24,$30,2 85 l.s $f16,f($24) 86 mul.s $f18,$f18,$f16 87 mtc1 $23,$f16; cvt.s.w $f16,$f16 88 div.s $f18,$f18,$f16 89 cvt.d.s $f18,$f18 90 mfc1.d $6,$f18 91 jal printf 92 L.19: 93 L.16: 94 la $30,1($30) 95 la $24,127 96 ble $30,$24,L.15 97 move $2,$0 98 L.1: 99 l.d $f30,16($sp) 100 lw $22,24($sp) 101 lw $23,28($sp) 102 lw $25,32($sp) 103 lw $30,36($sp) 104 lw $31,40($sp) 105 addu $sp,$sp,48 106 j $31 107 .end main 108 .globl f 109 .comm f,512 110 .rdata 111 .align 0 112 L.25: 113 .byte 9 114 .byte 37 115 .byte 46 116 .byte 49 117 .byte 102 118 .byte 10 119 .byte 0 120 .align 0 121 L.24: 122 .byte 37 123 .byte 99 124 .byte 0 125 .align 0 126 L.23: 127 .byte 37 128 .byte 48 129 .byte 51 130 .byte 111 131 .byte 0 132 .align 0 133 L.14: 134 .byte 99 135 .byte 104 136 .byte 97 137 .byte 114 138 .byte 9 139 .byte 102 140 .byte 114 141 .byte 101 142 .byte 113 143 .byte 10 144 .byte 0 145 .align 2 146 L.13: 147 .word 0x3f800000 148 .align 2 149 L.5: 150 .word 0x42c80000 151 .align 2 152 L.4: 153 .word 0x0