王爽汇编书上的一个问题,求助
代码一:
assume cs:cde,ds:dta,ss:stkdta segment dw 0123h,0456h,0789h,0987h,0abch,0fedh,0edfh,0defhdta endsstk segment dw 0,0,0,0,0,0,0,0stk endscde segmentstart:mov ax,stk mov ss,ax mov sp,16 mov ax,dta mov ds,ax push ds:[0] push ds:[2] pop ds:[2] pop ds:[0] mov ax,4c00h int 21h cde endsend start
assume cs:code,ds:data,ss:stackdata segment dw 1023h,0456hdata endsstack segment dw 0,0stack endscode segmentstart: mov ax,stack mov ss,ax mov sp,16 mov ax,data mov ds,ax push ds:[0] push ds:[2] pop ds:[2] pop ds:[0] mov ax,4c00h int 21hcode endsend start
assume cs:code,ds:data,ss:stackcode segmentstart: mov ax,stack mov ss,ax mov sp,16 mov ax,data mov ds,ax push ds:[0] push ds:[2] pop ds:[2] pop ds:[0] mov ax,4c00h int 21hcode endsdata segment dw 0123h,0456hdata endsstack segment dw 0,0stack endsend