add tests for idiv overflow

This commit is contained in:
Fabian 2022-11-05 18:37:21 -06:00
parent 6989ba001a
commit 574673e476
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,10 @@
global _start
%include "header.inc"
mov ax, 0000h
mov dx, 8000h
mov bx, -1
idiv bx
%include "footer.inc"

View file

@ -0,0 +1,10 @@
global _start
%include "header.inc"
mov eax, 00000000h
mov edx, 80000000h
mov ebx, -1
idiv ebx
%include "footer.inc"

View file

@ -0,0 +1,9 @@
global _start
%include "header.inc"
mov ax, 8000h
mov bl, -1
idiv bl
%include "footer.inc"