I'm trying to review assembly language and I noticed that there is a stack 100h. Can someone help me and explain this? Thanks!
我正在尝试审查汇编语言,我注意到堆栈有100h。有人可以帮我解释一下吗?谢谢!
1 个解决方案
#1
stack 100h
reserves 100h bytes for stack. org 100h
sets the current address to 100h, that is the address the assembler is assuming.
堆栈100h为堆栈保留100h字节。 org 100h将当前地址设置为100h,即汇编程序假定的地址。
Note that stack 100h
applies to exe
files, it's going to be written in a header so the loader provides that much stack for you. org 100h
typically applies to com
files, because those are loaded at address 100h
.
请注意,堆栈100h适用于exe文件,它将被写入标头中,因此加载器为您提供了大量堆栈。 org 100h通常适用于com文件,因为它们是在地址100h加载的。
#1
stack 100h
reserves 100h bytes for stack. org 100h
sets the current address to 100h, that is the address the assembler is assuming.
堆栈100h为堆栈保留100h字节。 org 100h将当前地址设置为100h,即汇编程序假定的地址。
Note that stack 100h
applies to exe
files, it's going to be written in a header so the loader provides that much stack for you. org 100h
typically applies to com
files, because those are loaded at address 100h
.
请注意,堆栈100h适用于exe文件,它将被写入标头中,因此加载器为您提供了大量堆栈。 org 100h通常适用于com文件,因为它们是在地址100h加载的。