如何查看汇编程序的当前变量值?
DATAS SEGMENTAGES DB 21H,23H,33H,52H,65H
DB 44H,82H,15H,87H,24H
NUM EQU $ - AGES
SUM DW ?
DATAS ENDS
STACKS SEGMENT STACK
DB 30H DUP(?);此处输入堆栈段代码
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
MOV AX,DATAS
MOV DS,AX
MOV AX,STACKS
MOV SS,AX
MOV CX,NUM
XOR AX,AX
MOV SI,OFFSET AGES
NEXT:
ADD AX,[SI]
DAA
ADC AH,0
XCHG AH,AL
DAA
XCHG AH,AL
INC SI
LOOP NEXT
MOV SUM,AX
MOV AH,4CH
INT 21H
CODES ENDS
END START
简单的相加程序,如何显示SUM值的内容?