6.3已知两个带符号数X,Y分别存放在ADRX,ADRY单元,若两数同时为正,将FLAG单元置0,若同时为负,将FLAG单元置1,否则FLAG单元置全1.开始AL=ADRX,BL=ADRYAL是正数?BL是正数?FLAG置全1结束YBL是正数?FLAG=1NYNNFLAG=0Y1.DSEGSEGMENT2.ADRXDB013.ADRYDB024.FLAGDB?5.DSEGENDS6.CSEGSEGMENT7.ASSUMECS:CSEG,DS:DSEG8.START:MOVAX,DSEG9.MOVDS,AX10.MOVAL,ADRX11.MOVBL,ADRY12.ANDAL,AL13.JSSAME114.ANDBL,BL15.JSSAME216.MOVFLAG,017.JMPEXIT18.SAME1:ANDBL,BL19.JSDIF20.SAME2:MOVFLAG,0FFH21.JMPEXIT22.DIF:MOVFLAG,123.EXIT:MOVAH,4CH24.INT21H25.CSEGENDS26.ENDSTART6.3已知X为字数据,存放在ADR单元,若X中含有偶数个1,将FLAG单元置1,否则FLAG单元置0.开始AX=ADRAL偶1?AH偶1?FLAG置0结束YBL偶1?FLAG置全1NYNNFLAG置全1Y1.DSEGSEGMENT2.ADRDW1234H3.FLAGDB?4.DSEGENDS5.CSEGSEGMENT6.ASSUMECS:CSEG,DS:DSEG7.START:MOVAX,DSEG8.MOVDS,AX9.MOVAX,ADR10.ANDAL,AL11.JNPABB112.ANDAH,AH13.JNPABB214.ABB3:MOVFLAG,115.JMPEXIT16.ABB1:ANDAH,AH17.JNPABB318.ABB2:MOVFLAG,019.EXIT:MOVAH,4CH20.INT21H21.CSEGENDS22.ENDSTART6.9下列程序有错,找出.已知程序欲完成的功能是从两个无符号数中选出较大者送入MAX单元,若两者相同,将MAX清0.•SEGASEGMENT•DAX:DW200•DAYDB1000H•MAXDB0,0•SEGAENDS•CSEGSEGMENT•ASSUMECS:CSEG•ASSUMEDS:SEGA•CMPAX,DAX•JGXGY•JZZERO•MOVAX,DAY•XGY:MOVMAX,AX•HLT•ENDS•ENDSTART•SEGASEGMENT•DAX:DW200•DAYDB1000H•MAXDB0,0•SEGAENDS•CSEGSEGMENT•ASSUMECS:CSEG•ASSUMEDS:SEGA•CMPAX,DAX•JGXGY•JZZERO•MOVAX,DAY•XGY:MOVMAX,AX•ZEROHLT•ENDS•ENDSTARTDAXDW200DAYDW1000HSTART:MOVAX,SEGAMOVDS,AXMOVAX,DAYJAXGYMOVAX,DAXJMPEXITMOVWORDPTRMAX,AXCSEGENDSZERO:MOVMAX,0EXIT:HLT