圣迭戈中途岛:汇编小问题

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 08:38:57
data_segment segment
CHAR db 00h,3fh,40h,5fh,52h,74h,0bh,14h ;left part of phone
db 29h,4ah,49h,44h,43h,3fh,00h,00h

db 00h,0f8h,04h,0f4h,094h,5ch,0a0h,50h ;right part of phone
db 28h,0a4h,24h,44h,84h,0f8h,00h,00h

STR db 'This is a phone:',0ceh,0cfh,'$'
data_segment ends
code segment
assume cs:code,ds:data_segment,es:data_segment
mov ax,data_segment
mov ds,ax
mov es,ax
mov ax,1100h
mov bx,1000h
mov cx,2
mov dx,00ceh
mov es,data_segment ;去掉后还是运行不起什么地方不对
mov bp,offset char
int 10h
mov ah,9
mov dx,offset str
mov ah,4ch
int 21h
code ends
end