汇编语言,键盘输入字符,若是0~9,则直接显示答:MOV DX, OFFSET TIP1 MOV AH, 9 INT 21H IIII:MOV AH, 7 ;输入字符 INT 21H CMP AL, 13 JE EXIT MOV DL, AL CMP DL, '0'JB IIII CMP DL, '9'JBE DISP CMP DL, 'A'JB IIII CMP DL, 'Z'JBE DISPX CMP DL, 'a'JB...
汇编语言:输入0~9数字,查表求平方值答:1,4,9,16,25,36,49,64,81,100,121,144,169,186,225 DB 100 DUP(0) START: PUSH CS POP DS PUSH CS POP ES MOV BL,0 @1: MOV AH,1 INT 21H CMP
汇编语言题目 从键盘上输入0~9之间的任意一个数字,利用查表的方法计算...答:INT 21H ;输入一字符 CMP AL, '0'JB EXIT CMP AL, '9'JA EXIT AND AL, 0FH ;AL=0~9 MOV AH, 0 MOV BX, AX ;BX=0~9 ADD BX, BX MOV AX, [BX] ;查表得出结果 LEA DX, OUT_TABLE ADD DX, AX MOV AH, 9 ;显示 IN...
单片机汇编语言让数码管显示0到9答:LOOP LJMP MAINDISPLAY: PUSH ACC MOVC A, @A+DPTR MOV P1, A POP ACC RETDELAY:DL1:DJNZ R6, DL1DL2:DJNZ R6, DL2 DJNZ R7, DL1 RETTABLE: DB 3FH, 06H, 5BH, 4FH, 66H, 6DH, 7DH, 07H, 7FH, 6FHEND 再试试看。
求编写一个程序实现在CRT上输出显示100次0-9,用汇编语言答:CC SEGMENT START:MOV AX, QW MOV DS, AX MOV CX, 100 LP1:MOV DX, OFFSET STRING MOV AH,9 INT 21H LOOP LP1 MOV DX, OFFSET MSG MOV AH,9 INT 21H MOV AH, 7 INT 21H MOV AH, 4CH ;结束程序 INT 21H CC ENDS END START ...
...05H,06H,09H,0AH,0CH,11H,12H,14H。用汇编语言编程序将0-9数字转换...答:gc db 18H,31H,05H,06H,09H,0AH,0CH,11H,12H,14H;定义格雷码表 result db ?,?,"$";存放转换后的格雷码 data ends code segment assume ds:data,cs:code start:mov ax,data mov ds,ax lea bx,gc next:mov ah,1;从键盘输入一个字符 int 21h;cmp al,30h;判断输入的字符是否是0...
汇编语言 数码管显示0-9.每个数字闪烁三次,再显示下一个数字,如此循环...答:DELAY DJNZ R1,LOOP INC R0 MOV R1,#3 CJNE R0,#10,LOOP MOV R0,#0 SJMP LOOP DELAY:MOV R2,#200 DELAY1:MOV R3,#250 DJNZ R3,DJNZ R2,DELAY1 RET TABLE: ; 共阴极数码管显示代码表 DB 3FH,06H,5BH,4FH,66H ;01234 DB 6DH,7DH,07H,7FH,6fh ;56789 END ...