要求输入一个字符,之后在屏幕上面显示其二进制的ASCII码。用汇编实现。
[code]DATASEGMENTSTRDB'pleaseenteranykeywhenready!',0AH,0DH,'$'ADDRESEQU$-STRASCIIDB8DUP(?),0AH,0DH,'$'DATAENDSCODESEGMENTASSUMECS:CODE,DS:DATASTART:MOVAX,DATAMOVDS,AXLEADX,STRMOVAH,09H;OutputastringINT21HLEADI,ASCIIMOVCH,0MOVCL,01HMOVBH,0M ...