Hello!
To get straight to the point, I can't seem to get division to work. I haven't been programming in Assembly long, and I've been trying to get this to work for a couple of days now with no success.
Anyway, here's my code:
section .text
global _main
extern _write
_main:
mov al, 5h
mov bl, 2h
div bl
xor bh, bh
mov bl, al
push 1
push bx
push 1
call _write
add esp, 12
mov eax, 0
ret
It compiles fine, but when I try to run it, all it does is spew out a lot of odd symbols and then crash, any help is greatly appreciated!