Recitation Material of Quiz 1 June 11, 2013
Problem 1
ten / 2ten = ten Step 0
ten / 2ten = ten Step 1: 5/2=2 remainder=1
ten / 2ten = ten Step 2: remainder 1*10 = = 15/2 = 7 new_remainder = 1
ten / 2ten = ten Step 3: remainder 1*10 = = 11/2 = 5 new_remainder = 1
ten / 2ten = ten Step 4: remainder 1*10 = = 17/2 = 8 new_remainder = 1
ten / 2ten = ten Step 5: remainder 1*10 = = 17/2 = 5 new_remainder = 1
ten / 2ten = ten Step 6: remainder 1*10 = = 18/2 = 9 new_remainder = 0
Problem2
B A C D E F OUT 1 1 1
Problem 3
B = A = then = =B’s ones-complement (since B+ =, and B+ +1= + = ) So, – B = + – And thus A-B = A + + – = + + – = – =
Problem 4
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe20 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe14 0x x c
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe14 0x x c
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe14 0x x c
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe14 0x x c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe14 0x x c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffdfc 0x x c 0x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffdfc 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffdfc 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffdfc 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffdfc 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe04 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe0c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe14 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe14 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe14 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe14 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe1c 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe20 0x x c 0x x x x x x
[ ] 23bdfff8 addi $sp, $sp, -8 [ ] afbf0000 sw $ra, 0($sp) [ c] ori $v0, $0, 1 ; 16: li $v0, 1 # 0! = 1 [ ] beq $a0, $0, 24 [zero-0x ] [ ] afa40004 sw $a0, 4($sp) [ c] 0c jal 0x [factorial] [ ] 8fa40004 lw $a0, 4($sp) [ ] mul $v0, $a0, $v0 [ ] 8fbf0000 lw $ra, 0($sp) [ c] 23bd0008 addi $sp, $sp, 8 [ ] 03e00008 jr $ra [ ] 23bdfffc addi $sp, $sp, -4 [main: Entry] [ ] afbf0000 sw $ra, 0($sp) [ c] 3c lui $at, 4097 [prompt] ; 39: la $a0, prompt [ ] ori $a0, $at, 0 [prompt] [ ] ori $v0, $0, 4 ; 40: li $v0, 4 [ ] c syscall [ c] ori $v0, $0, 5 ; 43: li $v0, 5 [ ] c syscall [ ] addu $a0, $0, $v0 [ ] 0c jal 0x [factorial]; [ c] addu $a0, $0, $v0 [ ] ori $a0, $0, 1 ; 50: li $v0, 1 [ ] c syscall [ ] 3c lui $at, 4097 [endl] ; 53: la $a0, endl [ c] f ori $a0, $1, 31 [endl] [ ] ori $v0, $0, 4 ; 54: li $v0, 4 [ ] c syscall [ ] ori $at, $0, 0 ; 57: li $v0, 0 # Return zero. [ c] 8fbf0000 lw $ra, 0($sp) [004000a0] 23bd0004 addi $sp, $sp, 4 [004000a4] 03e00008 jr $ra ; 61: jr $ra $sp 0x7ffffe20 0x x c 0x x x x x x
Problem 5
.data prompt:.asciiz”Give radius r:”.text main: la $a0, prompt li $v0, 4 syscall li $v0, 5 syscall li $t3, 3 mult $t3, $v0 mflo $t3 mult $t3, $v0 mflo $a0 li $v0, 1 syscall