assume cs:code
code segment
start:
jmp int0
msg:
db "I am pleasure"
int0:
mov ax,cs
mov ds,ax
mov ax,0b800h
mov es,ax
mov si,msg
mov bx,(80*12+30)*2
mov cx,13
s:
mov al,ds:[si]
mov es:[bx],al
mov es:[bx+1],0ch
inc si
add bx,2
loop s
mov ax,4c00h
int 21h
code ends
end start
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
assume cs:code
code segment
start:
jmp int0
msg: db "hello world my name is brooks"
int0:
mov ax,cs
mov es,ax
mov bp,msg
mov cx,29
mov dh,10
mov dl,30
mov bh,0
mov bl,0Ch
mov al,1
mov ah,13h
int 10h
mov ax,4c00h
int 21h
code ends
end start
阅读(380) | 评论(0) | 转发(0) |