sfl-examples/slide-examples/assembly/ex29.asm

25 lines
317 B
NASM
Raw Permalink Normal View History

2023-12-14 14:12:51 +01:00
; 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"