|
15鱼币
;.386
assume cs:sta,ds:da1,ss:stack
da1 segment
se db 'zzzzzz','$'
sz db 'aaaa','$'
db 5520 dup(1)
a dd f
da1 ends
da2 segment
b dd se
f db 'adadadad','$'
da2 ends
stack segment stack
db 100 dup(0)
stack ends
sta segment ;use16
start:
mov ax,da1
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,100h
mov dx,offset sz
mov ah,9h
int 21h
lds dx,a
mov ah,9h
int 21h
lds dx,b
mov ah,9h
int 21h
mov ax,4c00h
int 21h
sta ends
end start
第一个lds把数据换到da2,然后想吧数据段换回da1,但是编译报错了,不知道为什么?
3.asm(34): error A2074: ands have different frames 这是错误代码,不知道为什么 |
|