清零程序的修改问题
程序代码:
CODE SEGMENT ASSUME CS:CODE ORG 3000H S1: MOV BX,4000H MOV AX ,00H MOV CX,00FFH L1: MOV [BX],AX INC BX LOOP L1 JMP $ CODE ENDS END S1现在要把40FFH到50FFH的数据区修改为11H,是不是这样改的
程序代码:
CODE SEGMENT ASSUME CS:CODE ORG 3000H S1: MOV BX,40FFH MOV AX ,11H ;这里的AX是改为11H还是1100H MOV CX,1000H L1: MOV [BX],AX INC BX LOOP L1 JMP $ CODE ENDS END S1还有可不可以这样改
程序代码:
CODE SEGMENT ASSUME CS:CODE ORG 3000H S1: MOV BX,4000H MOV AX ,00H MOV CX,00FFH L1: MOV [BX],AX cmp bx,40ffh jge L2 INC BX LOOP L1 L2: mov [bx],11h inc bx cmp bx,50ff jg L1 LOOP L2 JMP $ CODE ENDS END S1
刚刚开始学习,提的问题都很简单,不要见怪啊