网站的建设技术有哪些内容,wordpress菜单怎么设置,网站设计图,公司部门解散实验内容:
#xff08;1#xff09; 用寄存器SI和DI实现将字符串‘welcome to masm!’ 复制到它后面的数据区中。
#xff08;2#xff09;
用[bx(si或di)idata]的方式#xff0c;来使程序变得简洁。
#xff08;1#xff09;
代码如下:
assume ds:datasg,cs:code…实验内容:
1 用寄存器SI和DI实现将字符串‘welcome to masm!’ 复制到它后面的数据区中。
2
用[bx(si或di)idata]的方式来使程序变得简洁。
1
代码如下:
assume ds:datasg,cs:codesgdatasg segmentdb welcome to masm!db ................
datasg endscodesg segment
start: mov ax,datasgmov ds,axmov si,0mov di,16mov cx,8s: mov ax,[si]mov [di],axadd si,2add di,2loop smov ax,4c00hint 21hcodesg ends
end start2
代码如下:
assume ds:datasg,cs:codesgdatasg segmentdb welcome to masm!db ................
datasg endscodesg segment
start: mov ax,datasgmov ds,axmov si,0mov cx,8s: mov ax,0[si]mov 16[si],axadd si,2loop smov ax,4c00hint 21h
codesg ends
end start