![](https://img.kancloud.cn/bd/a8/bda8c41c1241273d429b15782028cab0_1882x978.png)
![](https://img.kancloud.cn/4c/b2/4cb2bdafa88991b779bc0ef088959a48_1847x1000.png)
```
assume cs:codesg,ds: datasg
datasg segment
db "BasiCr"
db "MinIX"
datasg ends
codesg segment
start:mov ax,datasg
mov ds, ax
mov bx,0
mov cx,5
s:mov al,[bx]
and al,11011111b
mov [bx],al
mov al,[5+bx]
or al,00100000b
mov [5+bx],al
inc bx
loop s
mov ax, 4c00H
int 21H
codesg ends
end start
```
![](https://img.kancloud.cn/02/88/02888fbe547b7098a44f495c094973f3_1638x956.png)
c语言数组操作和上面汇编方式有异曲同工之妙
![](https://img.kancloud.cn/18/88/18881a8f86411cd0e9013ddf5ad3d063_429x522.png)