文本方式下图形提示界面制作
){cputs("error on open cclib !");
exit(0);}
while ((i=*f++)!=0)
{
if(i>0xa0)
if(t==0)
{
c1=(i-0xa0)*94;
t++;}
else
{
c2=i-0xa0+c1-659;
t=0;
l=c2*32L;
lseek(fp,l,SEEK-SET);
read(fp,buf,32);
printf("hex code:\n");
for (i=0;i<32;i++)
if(i==16){printf("%\n",buf[i]);}
else printf("%x",buf[i]);
printf("\n");
getch();
};
}
}
程序2
cseg segment para public'code'
assume cs:cseg
org 100h
main proc near
start: mov ax, cseg
mov ax,0003h
int 10h
mov ax,1100h
mov bh,16
mov bl,0
mov cx,3
mov dx,130
lea bp,row1-grahh
int 10h
mov cx,4
mov dx,133
lea bp,row2-graph
int 10h
mov cx,5
mov dx,137
lea bp,row3-graph
int 10h
mov cx,2
mov dx,142
lea bp,tian
int 10h
mvo cx,2
mov dx,144
lea bp,jiao
int 10h
mov ax,1103h
mov bl,00000000b
int 10h
mov ax,1301h
mov bh,0
mov bl,01h
mov dl,2
mov dh,1
mov cx,1
lop: lea bp,hd
int 10h
inc dl
cmp dl,24
jnz lop
mov dl,2
inc dh
cmp dh,7
jnz lop
mov bl,17h
mov cx,3
mov dh,2
mov dl,12
lea bp,str1
int 10h
mov cx,4
mov dh,3
mov dl,12
lea bp,str2
int 10h
mov cx,5
mov dh,4
mov dl,10
lea bp,str3
int 10h
mov cx,2
mov dh,3
mov dl,4
lea bp,ws1
int 10h
mov cx,2
mov dh,3
mov dl,20
lea bp,ws2
int 10h
mov ax,0003h
int 10h
main endp
row1-graph db 00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,
00h,
00h,01h
db 00h,00h,00h,04h,04h,0ch,00h,00h,00h,38h,3eh,71h,00h,00h,00h,0f0h
db 00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,0c0h,70h,38h,1ch,0eh
row2-graph db 01h,03h,00h,00h,00h,07h,0fh,0fh,00h,00h,00h,3fh,7fh,
7fh,
00h,00h
db 0f0h,0f0h,00h,00h,00h,0f0h,0f0h,0e0h,00h,00h,00h,0e0h,0e0h,0c0h,00h,00
h
db 0eh,0fh,0fh,07h,07h,03h,03h,03h,07h,07h,0fh,0fh,1fh,1fh,3fh,3fh
db 00h,00h,00h,00h,80h,80h,80h,80h,0c0h,0c0h,0c0h,0c0h,0c0h,80h,80h,80h
row3-graph db 00h,00h,00h,00h,00h,00h,00h,01h,01h,03h,00h,00
h,00h,
00h,00h,00h
db 00h,7fh,7fh,0ffh,00h,00h,00h,0ffh,0ffh,0ffh,00h,00h,00h,00h,00h,00h
db 00h,0ffh,0ffh,0ffh,00h,00h,00h,0ffh,0ffh,0ffh,00h,00h,00h,00h,00h,00h
db 00h,0c3h,0ffh,09fh,0fh,0fh,07h,83h,81h,01h,00h,00h,00h,00h,00h,00h
db 0ffh,0ffh,0ffh,0feh,0feh,0fch,0f8h,0f0h,0c0h,00h,00h,00h,00h,00h,00h
tian db 00h,7fh,01h,01h,01h,01h,0ffh,01h,02h,02h,04h,0 《文本方式下图形提示界面制作(第2页)》
本文链接地址:http://www.oyaya.net/fanwen/view/171704.html
exit(0);}
while ((i=*f++)!=0)
{
if(i>0xa0)
if(t==0)
{
c1=(i-0xa0)*94;
t++;}
else
{
c2=i-0xa0+c1-659;
t=0;
l=c2*32L;
lseek(fp,l,SEEK-SET);
read(fp,buf,32);
printf("hex code:\n");
for (i=0;i<32;i++)
if(i==16){printf("%\n",buf[i]);}
else printf("%x",buf[i]);
printf("\n");
getch();
};
}
}
程序2
cseg segment para public'code'
assume cs:cseg
org 100h
main proc near
start: mov ax, cseg
>mov es,ax
mov ax,0003h
int 10h
mov ax,1100h
mov bh,16
mov bl,0
mov cx,3
mov dx,130
lea bp,row1-grahh
int 10h
mov cx,4
mov dx,133
lea bp,row2-graph
int 10h
mov cx,5
mov dx,137
lea bp,row3-graph
int 10h
mov cx,2
mov dx,142
lea bp,tian
int 10h
mvo cx,2
mov dx,144
lea bp,jiao
int 10h
mov ax,1103h
mov bl,00000000b
int 10h
mov ax,1301h
mov bh,0
mov bl,01h
mov dl,2
mov dh,1
mov cx,1
lop: lea bp,hd
int 10h
inc dl
cmp dl,24
jnz lop
mov dl,2
inc dh
cmp dh,7
jnz lop
mov bl,17h
mov cx,3
mov dh,2
mov dl,12
lea bp,str1
int 10h
mov cx,4
mov dh,3
mov dl,12
lea bp,str2
int 10h
mov cx,5
mov dh,4
mov dl,10
lea bp,str3
int 10h
mov cx,2
mov dh,3
mov dl,4
lea bp,ws1
int 10h
mov cx,2
mov dh,3
mov dl,20
lea bp,ws2
int 10h
mov ax,0003h
int 10h
main endp
row1-graph db 00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,
00h,
00h,01h
db 00h,00h,00h,04h,04h,0ch,00h,00h,00h,38h,3eh,71h,00h,00h,00h,0f0h
db 00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,0c0h,70h,38h,1ch,0eh
row2-graph db 01h,03h,00h,00h,00h,07h,0fh,0fh,00h,00h,00h,3fh,7fh,
7fh,
00h,00h
db 0f0h,0f0h,00h,00h,00h,0f0h,0f0h,0e0h,00h,00h,00h,0e0h,0e0h,0c0h,00h,00
h
db 0eh,0fh,0fh,07h,07h,03h,03h,03h,07h,07h,0fh,0fh,1fh,1fh,3fh,3fh
db 00h,00h,00h,00h,80h,80h,80h,80h,0c0h,0c0h,0c0h,0c0h,0c0h,80h,80h,80h
row3-graph db 00h,00h,00h,00h,00h,00h,00h,01h,01h,03h,00h,00
h,00h,
00h,00h,00h
db 00h,7fh,7fh,0ffh,00h,00h,00h,0ffh,0ffh,0ffh,00h,00h,00h,00h,00h,00h
db 00h,0ffh,0ffh,0ffh,00h,00h,00h,0ffh,0ffh,0ffh,00h,00h,00h,00h,00h,00h
db 00h,0c3h,0ffh,09fh,0fh,0fh,07h,83h,81h,01h,00h,00h,00h,00h,00h,00h
db 0ffh,0ffh,0ffh,0feh,0feh,0fch,0f8h,0f0h,0c0h,00h,00h,00h,00h,00h,00h
tian db 00h,7fh,01h,01h,01h,01h,0ffh,01h,02h,02h,04h,0 《文本方式下图形提示界面制作(第2页)》