diff --git a/tests/nasm/idiv16-overflow.asm b/tests/nasm/idiv16-overflow.asm new file mode 100644 index 00000000..eaebcf73 --- /dev/null +++ b/tests/nasm/idiv16-overflow.asm @@ -0,0 +1,10 @@ +global _start + +%include "header.inc" + + mov ax, 0000h + mov dx, 8000h + mov bx, -1 + idiv bx + +%include "footer.inc" diff --git a/tests/nasm/idiv32-overflow.asm b/tests/nasm/idiv32-overflow.asm new file mode 100644 index 00000000..8a24006c --- /dev/null +++ b/tests/nasm/idiv32-overflow.asm @@ -0,0 +1,10 @@ +global _start + +%include "header.inc" + + mov eax, 00000000h + mov edx, 80000000h + mov ebx, -1 + idiv ebx + +%include "footer.inc" diff --git a/tests/nasm/idiv8-overflow.asm b/tests/nasm/idiv8-overflow.asm new file mode 100644 index 00000000..3e6e97fa --- /dev/null +++ b/tests/nasm/idiv8-overflow.asm @@ -0,0 +1,9 @@ +global _start + +%include "header.inc" + + mov ax, 8000h + mov bl, -1 + idiv bl + +%include "footer.inc"