1 .set noat 2 3 .globl crash1 4 .globl crashnostack 5 6crash1: 7 li $0,0xdead0000+0 8 li $1,0xdead0000+1 9 li $2,0xdead0000+2 10 li $3,0xdead0000+3 11 li $4,0xdead0000+4 12 li $5,0xdead0000+5 13 li $6,0xdead0000+6 14 li $7,0xdead0000+7 15 li $8,0xdead0000+8 16 li $9,0xdead0000+9 17 li $10,0xdead0000+10 18 li $11,0xdead0000+11 19 li $12,0xdead0000+12 20 li $13,0xdead0000+13 21 li $14,0xdead0000+14 22 li $15,0xdead0000+15 23 li $16,0xdead0000+16 24 li $17,0xdead0000+17 25 li $18,0xdead0000+18 26 li $19,0xdead0000+19 27 li $20,0xdead0000+20 28 li $21,0xdead0000+21 29 li $22,0xdead0000+22 30 li $23,0xdead0000+23 31 li $24,0xdead0000+24 32 li $25,0xdead0000+25 33 li $26,0xdead0000+26 34 li $27,0xdead0000+27 35 li $28,0xdead0000+28 36 # don't trash the stack otherwise the signal handler won't run 37 #li $29,0xdead0000+29 38 li $30,0xdead0000+30 39 li $31,0xdead0000+31 40 41 lw $zero,($0) 42 b . 43 44 45crashnostack: 46 li $sp, 0 47 lw $zero,($0) 48 b . 49