有间客栈.
RT下面是栈~~
王爽老师源程序
程序代码:
assume cs:codesg, ds:datasg, ss:stacksg datasg segment db 'ibm ' db 'dec ' db 'dos ' db 'vax ' datasg ends stacksg segments dw 0, 0, 0, 0, 0, 0, 0, 0 stacksg ends codesg segment start : mov ax, stacksg mov ss, ax mov sp, 16 mov ax, datasg mov ds, ax mov cx, 4 mov bx, 0 s: push cx mov cx, 3 mov si, 0 s1: mov al, [bx + si] and al, 11011111b mov [bx + si], al inc si loop s1 add bx, 16 pop cx loop s mov ax, 4c00h int 21h codesg ends end start功能就是将DATA段的字符都变成大写 调式通不过
我估计问题出在栈的定义上
换成
stacksg segments para stack 'stacksg' dw 0, 0, 0, 0, 0, 0, 0, 0 stacksg ends或者
stacksg segments para stack dw 0, 0, 0, 0, 0, 0, 0, 0 stacksg ends都不行那 怎么办?