assume cs:codesg,ds:datasg
datasg segment
db 'welcome to masm!'
datasg ends
codesg segment
start: mov ax,datasg
mov ds,ax
mov ax,0b800h
mov es,ax
mov bx,0
mov cx,16
mov si,0
s:
mov al,[si]
mov es:[bx+6e0h+3eh],al
mov es:[bx+780h+3eh],al
mov es:[bx+820h+3eh],al
mov ah,02h
mov es:[bx+6e0h+3eh+1],ah
mov ah,24h
mov es:[bx+780h+3eh+1],ah
mov ah,71h
mov es:[bx+820h+3eh+1],ah
add bx,2
inc si
loop s
mov ax,4c00h
int 21h
codesg ends
end start
花了long long的time,做出了非常笨的程序……
那位同志实在有兴趣而且看不懂,说一声,我再加注释。
主要是手算的地址。 |