mips/test/masm/div.asm
2024-09-30 18:50:22 -04:00

17 lines
209 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