汇编语言中怎么用代码将寄存器中二进制数转十六进制输出?
用汇编语言如何将一个AX中的数输出 以下两个子程序以10进制形e79fa5e98193e4b893e5b19e31333365646335式输出ax寄存器的值:DSPAXS PROC NEAR;输出带符号的axPUSH AXTEST AX,8000HJNS@DSPAXS1PUSH AXPUSH DXMOV AH,2MOV DL,'-'INT 21HPOP DXPOP AXNEG AXDSPAXS1:CALL DSPAXPOP AXRETDSPAXS ENDPDSPAX PROC NEAR;输出无符号的axPUSH AXPUSH BXPUSH CXPUSH DXPUSHFXOR CX,CXMOV BX,10DSPAX1:XOR DX,DXDIV BXINC CXOR DX,30HPUSH DXCMP AX,0JNE@DSPAX1MOV AH,2DISPAX2:POP DXINT 21HLOOP@DISPAX2MOV DL,32INT 21HPOPFPOP DXPOP CXPOP BXPOP AXRETDSPAX ENDP
汇编程序如何输出一个变量,寄存器里的数值
汇编 怎么把数组中的数赋值给寄存器 ASSUME CS:CC,DS:QQQQ SEGMENTABC DB 100 DUP?QQ ENDSCC SEGMENTSTART:MOV AX,QQMOV DS,AXMOV BYTE PTR ABC+0,'H'MOV BYTE PTR ABC+1,'e'MOV BYTE PTR ABC+2,'l'MOV BYTE PTR ABC+3,'l'MOV BYTE PTR ABC+4,'o'MOV BYTE PTR ABC+5,' 'MOV BYTE PTR ABC+6,'W'MOV BYTE PTR ABC+7,'o'MOV BYTE PTR ABC+8,'r'MOV BYTE PTR ABC+9,'l'MOV BYTE PTR ABC+10,'d'MOV BYTE PTR ABC+11,'。'MOV BYTE PTR ABC+12,'$'LEA DX,ABCMOV AH,9INT 21HMOV AH,4CHINT 21HCC ENDSEND START