分类：教育/科学-学习帮助
问题：将十进制数转换为bcd码输出的汇编程序 
回答：DATASEGMENTNUMDW0NUM1DB4DUP(0)DATAESTACKSEGMENTDB50HDUP(0)STACKENDSCODESEGMEN ,DS:DATA,SS:STACKAX,DATAMOVDS,AXmovcx,4LOP1:PUSHCXMOVCX,4MOVAH,1INT21HCMPAL,39HJBEALBSUBAL,37HJMPSHUNAL,30HNUM,CLMOVBX,NUMMOVAH,0ADDBX,AXMOVNUM,BXPOPCXLOOPLOP1MOVSI,0MOVCX,4MOVAX,NUMMOVDX,0 ,0MOVBX,0AHDIVBXMOVNUM1[SI],DLPOPCXINCSILOOPLOPMOVCX,4MOVDI,3LOP2:PUSHCXMOVCX,4shlNUM1[DI],clLOP3:ROlNUM1[DI],1JCA1MOVDL,30HJMPXIAA1:MOVDL,31 ,2INT21HLOOPLOP3DECDIPOPCXLOOPLOP2MOVAH,4CHINT21HCODEENDSENDSTART