您的位置:首页 > 移动开发

汇编HappyNewYear

2012-01-29 21:55 330 查看
assume cs:codesg,ds:data
data segment
db 'Happy New Year!'	;15 bytes
db 5 dup(00000010B)	;green color
db 0	;for white space attr
db 3 dup(00100100B)	;green bgcolor,red color
db 0
db 5 dup(01110001B)	;white bgcolor,blue color
data ends

codesg segment
start:
mov ax,data
mov ds,ax
mov ax,0B800H	;destination
mov es,ax
mov bx,0
mov cx,15
s:
mov al, [bx]
mov ah,[bx+15]
mov di,bx
add di,di
mov es:[di],ax	;copy to the destination
inc bx
loop s

mov ax,4300h
int 21h
codesg ends
end start


  

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: