assume cs:code, ds:data, ss:stack
data segment
notice db 'the random expression is : $' ; the notice
exp db 10 dup (0) ; the memory to save calcute expression
db ' $ ' ; the finish symbol
operand dw 3 dup (0) ; save the first operand, operator and the second operand
tmp dw 5 dup (0) ; temp memory
data ends
stack segment ; stack memory
db 128 dup (0)
stack ends
code segment
start:
mov ax, data
mov ds, ax
mov ax, stack
mov ss, ax
lea......
阅读全文