sfl-examples/slide-examples/ex29.asm

25 lines
317 B
NASM

; division too large
bits 64
SECTION .data
; empty
SECTION .text
global _start
_start:
%include "header.asm.inc"
; maximum dividend
xor rax, rax
dec rax
xor rdx, rdx
dec rdx
; minimal divisor
mov rbx, 1
div rbx
%include "sysexit.asm.inc"