[求助]看看这个问题!!
假定数据定义如下:CONAME DB 'SPACE EXPLORERS INC.'
PRLINE DB 20 DUP(' ')
用串指令编写程序段完成以下功能:
从右到左把CONAME 中的字符串传送到PRLINE.
只是想请教怎样完成"从右到左"的功能就好了!
谢谢了!!!!!
2006-11-18 14:21
2006-11-18 14:53
2006-11-18 16:25
assume cs:code
code segment
begin jmp near s1
CONAME DB 'SPACE EXPLORERS INC.'
PRLINE DB 20 DUP(' ')
s1:lex bx,coname
add bx,20
mov cx,20
mov si,offset prline
s2:mov ax,[bx]
mov [si],ax
int si
dec bx
loop s2
mov ax,4c00h
int 21h
code ends
end begin
这是第一个方法
assume cs:code
code segment
begin:jmp s1
CONAME DB 'SPACE EXPLORERS INC.'
PRLINE DB 20 DUP(' ')
s1:mov ax,code
mov ds,ax
mov cx,20
mov bx,offset coname
s2:push [bx]
int bx
loop s2
mov cx,20
mov ax,offset prline
s3:pop [ax]
int ax
loop s3
mov ax,4c00h
int 21h
code ends
end begin
2006-11-18 17:17
2006-11-19 11:39
2006-11-20 11:29
用这种方法不行?

2006-11-20 12:59
2006-11-20 13:06
2006-11-20 18:01
2006-11-22 10:28