问个汇编小问题~
(1)datasegmentSTUDENT_NAMEDB30DUP(?)STUDENT_ADDRDB9DUP(?)PRINT_LINEDB132DUP(?)dataend...
(1)
data segment
STUDENT_NAME DB 30 DUP(?)
STUDENT_ADDR DB 9 DUP(?)
PRINT_LINE DB 132 DUP(?)
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
lea bx,PRINT_LINE
mov cx,132
again:
mov byte ptr ds:[bx],' '
inc bx
loop again
mov ax,4c00h
int 21h
code ends
end start
如题:这里的lea bx,PRINT_LINE
和mov bx,PRINT_LINE
这2个指令等价吗?我是按写源程序的方法写的~ 展开
data segment
STUDENT_NAME DB 30 DUP(?)
STUDENT_ADDR DB 9 DUP(?)
PRINT_LINE DB 132 DUP(?)
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
lea bx,PRINT_LINE
mov cx,132
again:
mov byte ptr ds:[bx],' '
inc bx
loop again
mov ax,4c00h
int 21h
code ends
end start
如题:这里的lea bx,PRINT_LINE
和mov bx,PRINT_LINE
这2个指令等价吗?我是按写源程序的方法写的~ 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询