越长大越孤单 发表于 2013-4-8 13:48:30

新人求助。。。

assume cs:codesg

codesg segment
                dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
                dw 0,0,0,0,0,0,0,0,0
               
start:mov ax,codesg
                mov ss,ax
                mov sp,24h    ;我想问这个为什么要定义24h,求详细解释。。。先谢谢好心的大哥大姐们。。。。
                mov ax,0
                mov ds,ax
                mov bx,0
                mov cx,8
               
        s:push
                pop cs:
                add bx,2
                loop s
               
                mov ax,4c00h
                int 21h
codesg ends

end start

思来想去 发表于 2013-4-10 08:49:34

16进制24h等于10进制36,指向栈底。定义了36个字节嘛。


淡定,淡定,淡定……
页: [1]
查看完整版本: 新人求助。。。