8086汇编语言编写,键盘输入4位16进制数,屏幕输出对应的十六进制数,十进...答:0ah,'$'dseg endsassume cs:cseg, ds:dsegcseg segment start: mov ax, dseg mov ds, ax call readhex ;read number in (bx) mov ah,9 lea dx, crlf int 21h call printHex mov ah,9 lea dx
用8086汇编语言编写一个输入字符串的程序答:代码如下:DSEGSEGMENTSPACESDB 20H, 20H, 20H, 20H, 24HLINEDB0DH, 0AH, 24HDSEGENDSSSEGSEGMENT PARA STACKDW 256 DUP(?)SSEGENDSCSEGSEGMENTASSUME CS:CSEG,DS:DSEGBEGIN:MOV AX, DSEGMOV DS, AXLOOP1:MOV AH, 08HINT 21H; 判断回车键MOV DL, ALCMP DL, 0DHJNE LOOP3MOV DX, ...
用8086汇编语言编写程序,从键盘输入一段字符,以#结束,统计其中数字,字母...答:ds:datastart: mov ax, data mov ds, ax mov es, ax;code start here; read string lea dx, buf mov ah,0ah int 21h; xor cx, cx mov cl, buf+1 mov si, 0Loop1: mov al, buf[si+2] cmp al, '#' jz lopend cmp al, 20h jz ...
1.编写完整的8086汇编程序,实现在屏幕上显示5行“Hello Word...答:代码如下:DATA SEGMENT STRING DB 'Hello World!', 0DH, 0AH, '$' ;0D 0A(ascii)是回车换行,$用来结束字符串输出 DATA ENDS CODE SEGMENT ASSUME CS: CODE, DS: DATA START:MOV AX, DATA MOV DS, AX MOV CX, 5 LEA DX, STRING SHOW:MOV AH, 9 INT 21H LOOP SHOW MOV AH,...
请赐教,8086汇编,很大的二进制数怎么转为十进制输出?答:将SI指向的缓冲区BUF中保存的五位ASCII码十进制数(0-65535)转换成对应的二进制数并存放在DX中,再以二进制形式显示。DATA SEGMENT BUF DB '25092'C DB 'B',0DH,0AH,'$'DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA START: MOV AX,DATA MOV DS,AX MOV SI,...
8086汇编 电子琴源代码?答:dw 370,392,415,440,466,494,-1 time dw 400,400 dw 400,400,400,400,400,400,400 dw 400,400,400,400,400 buf db 255 nul db 100 dup(20)db 256 dup(?)sys db “Walter Clozet Music Player v1.0″endl db 0ah db 13 instr db “>$”data endsstacks segment stack wcs dw...