实验4
(1)
assume cs:code code segment mov ax,0b800h mov ds,ax mov bx,07b8h mov cx,16 s: mov [bx],0403h inc bx inc bx loop s mov ax,4c00h int 21h code ends end
注意是连续的16个字单元
上图为编译,链接的过程;
上图为实验结果
(2).
assume cs:code code segment mov ax, 0 mov ds, ax mov bx, 200h mov cx, 64 s: mov [bx], ax inc ax inc bx loop s mov ax, 4c00h int 21h code ends end
编译链接
(3)
assume cs:code code segment mov ax,cs mov ds,ax mov ax,0h mov es,ax mov bx,200h mov cx,16 s: mov al,[bx] mov es:[bx],al inc bx loop s mov ax,4c00h int 21h code ends end
怎么知道是有多少字节的呢?先随便写,然后运行查看一下,占用了多少,在修改cx的值
从mov cx, 001往后就不对了,为啥?
总结与体会:
体会深刻
“你看那条凄惶的狗,东探探,西望望,冀图讨要,就是不肯锻炼了筋骨去猎食!”