微机原理编写完整汇编程序,将内存中10个有符号数求和,结果放入SUM单元...答:DEC DI INC COUNT AND AX,AX JZ NEXT5 JMP NEXT4 NEXT5:MOV AX,[SI]CMP AX,8000H JNC NEXT6 MOV AL,2BH MOV [DI],AL JMP NEXT7 NEXT6: MOV AL,'-'MOV [DI],AL NEXT7: LEA DX,ASCC MOV AH,09H INT 21H MOV AH,4CH INT 21H CODE ENDS END START ...
微机原理及其应用 试编制一程序,找出DA数据区中带符号数的最大数和...答:MAX DB 0 MIN DB 0 DATAS ENDS STACKS SEGMENT DB 100 DUP(0)STACKS ENDS CODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKS START:MOV AX,DATAS MOV DS,AX MOV SI,OFFSET DATA MOV CX,OFFSET MAX SUB CX,OFFSET DATA MOV BL,[SI];MAX MOV BH,BL;MIN DEC CX K: INC SI MOV ...
微机原理程序汇编语言 鸡兔同笼,已知其总头数为H,总脚数为F,用键盘输...答:data segment H dw 0 F dw 0 ji dw 0 tu dw 0 msg0 db 0dh,0ah,'Input Total Head Number:$' msg1 db 0dh,0ah,'Input Total Feet Number:$' msg2 db 0dh,0ah,'Hen [N]:$' msg3 db 0dh,0ah,'Rabbit [N]:$' msg9 db 0dh,0ah,'Input error!$' ...