相关疑难解决方法(0)

使用哪个可变大小(db,dw,dd)与x86程序集?

我是汇编的初学者,我不知道db,dw,dd是什么意思.我试图写这个做1 + 1的小脚本,将它存储在一个变量中,然后显示结果.到目前为止,这是我的代码:

.386
.model flat, stdcall 
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\masm32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\masm32.lib
.data
num db ? ; set variable . Here is where I don't know what data type to use.
.code
start:
mov eax, 1               ; add 1 to eax register
mov ebx, 1               ; add 1 to ebx register
add eax, ebx             ; add registers eax and ebx
push eax                 ; push eax into the stack
pop num                  ; pop …
Run Code Online (Sandbox Code Playgroud)

variables x86 assembly

60
推荐指数
2
解决办法
17万
查看次数

标签 统计

assembly ×1

variables ×1

x86 ×1