;1.把ax寄存器内容分4组每组4位,然后把这4组数分别放在AL,BL,CL,DL中
assumecs:code
codesegment
start:
movax,1234h
movbx,ax
movcx,ax
movdx,ax
andal,0fh;al中是4
movcl,4
shrbl,cl;bl中是3
andch,0fh;ch中是2,先存在这,最后再给cl
movcl,4
shrdh,cl
movdl,dh;dl中是1
movcl,ch
movax,4c00h
int21h
codeends
endstart
;----------------------------------