mips/test/masm/fpe.asm

19 lines
214 B
NASM
Raw Permalink Normal View History

2024-09-30 22:50:22 +00:00
# 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