������
BMP �ļ���һ�ֳ��õ�ͼ���ļ���ʽ�����ĵ����ӳ������һ���� 640x480 24 bit ��ɫ�� BMP �ļ���BMP �ļ��ĸ�ʽ�������֣���һ����Ϊ�ļ�ͷ�����嶨���Դ���ڶ�����Ϊ���������������ļ�ͷ��š�
Դ����
code segment
assume cs:code,ds:code
org 100h
start:
jmp install
;BMP �ļ�ͷ����
;---------------------------------------------------------------
BMP_HEAD DB 'BM' ;�̶�Ϊ 'BM'
D_FILE_LENGTH DD 640*480*3+36h ;�ļ��ܳ��ȣ������ļ�ͷ
D_RESERVED DD ? ;reserved
D_OFFSET DD 36h ;��������ʼλ��
D_BISIZE DD 28h ;bit map info' head length
D_WIDTH DD 640 ;ͼ�εĿ�ȣ���λ���أ�
D_HEIGHT DD 480 ;ͼ�εĸ߶ȣ���λ���أ�
D_PLANES DW 1 ;ͼ�ε�ƽ����
D_BIT DW 24 ;��ɫλ��
D_COMPRESS DD 0 ;ѹ����ʽ��0Ϊ��ѹ����
D_SIZE DD 640*480*3 ;���ݳ���
D_XPPM DD 0c00h ;pixels per meter (x)
D_YPPM DD 0c00h ;pixels per meter (y)
D_CLRUSED DD 0 ;color used
D_CLRIMP DD 0 ;important color index
BMP_HEAD_END EQU THIS BYTE
;----------------------------------------------------------------
HANDLE DW ?
FILE_NAME DB 'test.bmp',0
LINE_BUF DB 640*3 dup (0)
D_RED DB 0ffh
D_GREEN DB 0
D_BLUE DB 0
install:
mov ah,3ch ;�����ļ�
xor cx,cx
mov dx,offset file_name
int 21h
jnb cre_ok
int 20h
cre_ok:
mov handle,ax
mov ah,40h ;д���ļ�ͷ
mov bx,handle
mov cx,offset bmp_head_end-offset bmp_head
mov dx,offset bmp_head
int 21h
mov cx,480 ;� 480 ������
xor bp,bp
b_lop:
push cx
mov ax,bp
inc bp
cmp ax,160
jb b1
cmp ax,320
jb b2
b3:
sub ax,320
mov si,offset d_blue
mov di,offset d_red
jmp short b4
b2:
sub ax,160
mov si,offset d_green
mov di,offset d_blue
jmp short b4
b1:
mov si,offset d_red
mov di,offset d_green
b4:
mov cx,0ffh
mul cx
mov cx,160 ;160
div cx
mov byte ptr ds:[si],0ffh
sub byte ptr ds:[si],al
mov byte ptr ds:[di],al
mov cx,640
mov di,offset line_buf
cld
b_lop1:
mov al,d_red
stosb
mov al,d_green
stosb
mov al,d_blue
stosb
loop b_lop1
mov ah,40h
mov bx,handle
mov cx,640*3
mov dx,offset line_buf
int 21h
pop cx
loop b_lop
mov ah,3eh ;�ر��ļ�
int 21h
int 20h
CODE ENDS
END START
�����Ƶ
����Ķ�Windows��������ȫ Windows��������ѯ����windows��ʲô��Mac QQ��Windows QQ�����¼��ô�ϲ� Mac QQ��Windows QQ�����¼Windows 10�Զ�������ô�ر� ��ιر�Windows 10�Զ�����windows 10 rs4����Ԥ����17017���ش�������Win10�^�����߸���16291������ʲô win10 16291��������windows10�^�����߸���ʱ�� windows10�^�����߸�������kb3150513����������ʲô Windows 10����kb3150513��ʲô
��������
ȥ��winrarע���
��������
���رҲ�����ô�ƽ� ��
ȥ��winrarע�����Ϊ����·����HG522-C�ƽ�̳�(����������JEB��ʽ�ļ��������������غ��Ķ������ƽ��UltraISOע����ȫ��(����)ͨ��Access�ƽ�MSSQL�������
����������Ϊ����·����HG522-C�ƽ�̳�(����������JEB��ʽ�ļ��������������غ��Ķ������ƽ��UltraISOע����ȫ��(����)qq��������ƽⷽ��ȥ��winrarע���(��Ӧ�κΰ汾)��ô���ֻ��ƽ��շ���Ϸ��Ϊ����èHG522�ƽ���θ�����ѿǻ����̳�
�鿴����0������>>