add tests for idiv overflow
This commit is contained in:
parent
6989ba001a
commit
574673e476
10
tests/nasm/idiv16-overflow.asm
Normal file
10
tests/nasm/idiv16-overflow.asm
Normal file
|
@ -0,0 +1,10 @@
|
|||
global _start
|
||||
|
||||
%include "header.inc"
|
||||
|
||||
mov ax, 0000h
|
||||
mov dx, 8000h
|
||||
mov bx, -1
|
||||
idiv bx
|
||||
|
||||
%include "footer.inc"
|
10
tests/nasm/idiv32-overflow.asm
Normal file
10
tests/nasm/idiv32-overflow.asm
Normal file
|
@ -0,0 +1,10 @@
|
|||
global _start
|
||||
|
||||
%include "header.inc"
|
||||
|
||||
mov eax, 00000000h
|
||||
mov edx, 80000000h
|
||||
mov ebx, -1
|
||||
idiv ebx
|
||||
|
||||
%include "footer.inc"
|
9
tests/nasm/idiv8-overflow.asm
Normal file
9
tests/nasm/idiv8-overflow.asm
Normal file
|
@ -0,0 +1,9 @@
|
|||
global _start
|
||||
|
||||
%include "header.inc"
|
||||
|
||||
mov ax, 8000h
|
||||
mov bl, -1
|
||||
idiv bl
|
||||
|
||||
%include "footer.inc"
|
Loading…
Reference in a new issue