小编Kar*_*ren的帖子

在NASM中划分两个数字

开始自学组装(NASM)我想知道如何划分2个数字(例如在Windows上).

我的代码看起来像这样,但它崩溃了.

global _main
extern _printf

section .text

_main:

mov eax, 250
mov ebx, 25
div ebx
push ebx
push message 

call _printf
add esp , 8
ret

message db "Value is = %d", 10 , 0
Run Code Online (Sandbox Code Playgroud)

我想知道什么是真的错了?它甚至不显示除法后的值.

x86 assembly nasm integer-division

6
推荐指数
1
解决办法
6899
查看次数

标签 统计

assembly ×1

integer-division ×1

nasm ×1

x86 ×1