18 lines
214 B
NASM
18 lines
214 B
NASM
# Copyright (c) 2024 Freya Murphy
|
|
|
|
# file: div.asm
|
|
# test: should cause floting point exception
|
|
|
|
.text
|
|
.align 2
|
|
.globl main
|
|
|
|
main:
|
|
# divide by zero
|
|
li $t0, 0
|
|
div $t0, $t0, $t0
|
|
|
|
# return
|
|
li $v0, 0
|
|
jr $ra
|
|
nop
|