DATA SEGMENT
DATA1 DB 32H,39H,30H,35H,34H
DATA2 DB 33H
RESULT DB 6 DUP(00H)
DATA ENDS
STACK SEGMENT STACK'STACK'
STA DB 30 DUP(?)
TOP EQU LENGTH STA
STACK ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,SS:STACK,ES:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AX,STACK
MOV SS,AX
MOV AX,TOP
MOV SP,AX
MOV SI,OFFSET DATA2
MOV BL,[SI]
AND BL,00001111B
MOV SI,OFFSET DATA1
MOV DI,OFFSET RESULT
MOV CX,05
LOOPL: MOV AL,[SI]
AND AL,00001111B
INC SI
MUL BL
AAM
ADD AL,[DI]
AAA
ADD [DI],AL
INC DI
MOV [DI],AH
LOOP LOOP1
MOV CX,06
MOV SI,OFFSET RESULT+5
DISPL: MOV AH,02
MOV DL,[SI]
ADD DL,30H
INT 21H
DEC SI
LOOP DISPL
MOV AX,4C00H
INT 21H
CODE ENDS
END START
但出左個loop1錯暨msg
error jeff.asm(34) undefined symbol:loop1
請教各位高人指點
[此贴子已经被作者于2007-6-26 23:25:01编辑过]