DEMO.DESIGN
Frequently Asked Questions
 
оглавление | demo party в ex-СССР | infused bytes e-mag | новости от ib/news | другие проекты | письмо | win koi lat

следующий фpагмент (2)
; Изменение паpаметpов pазвеpтки Procedure HorizTotal(Bt:Byte); Assembler; Asm mov dx,03d4h xor ax,ax mov ah,[bp+6] out dx,ax End; Procedure HorizDispEnd(Bt:Byte); Assembler; Asm mov dx,03d4h mov al,01h mov ah,[bp+6] out dx,ax End; Procedure StHorizBlank(Bt:Byte); Assembler; Asm mov dx,03d4h mov al,02h mov ah,[bp+6] out dx,ax End; Procedure EndHorizBlank(Bt,Delay:Byte); Assembler; Asm mov dx,03d4h mov al,03h out dx,al inc dx in al,dx mov ah,[bp+8] and ah,00011111b and al,10000000b or ah,al mov al,[bp+6] and al,00000011b shl al,5 or ah,al mov al,03h dec dx out dx,ax mov al,05h out dx,al inc dx in al,dx mov ah,[bp+8] and ah,00100000b shl ah,2 and al,01111111b or ah,al mov al,05h dec dx out dx,ax End; Procedure StHorizRetrace(Bt:Byte); Assembler; Asm mov dx,03d4h mov al,04h mov ah,[bp+6] out dx,ax End; Procedure EndHorizRetrace(Bt,Delay:Byte); Assembler; Asm mov dx,03d4h mov al,05h out dx,al inc dx in al,dx mov ah,[bp+8] and ah,00011111b and al,10000000b or ah,al mov al,[bp+6] and al,00000011b shl al,5 or ah,al mov al,05h dec dx out dx,ax End; Procedure VertTotal(Wd:Word); Assembler; Asm mov dx,03d4h mov al,06h mov ah,[bp+6] out dx,ax mov al,07h out dx,al inc dx in al,dx and al,11011110b mov ah,[bp+7] mov bh,ah and ah,00000001b and bh,00000010b shl bh,4 or ah,bh or ah,al mov al,07h dec dx out dx,ax End; Procedure PresetRowScan(Bt:Byte);Assembler; Asm mov dx,03d4h mov al,08h out dx,al inc dx in al,dx mov ah,[bp+6] and ah,00011111b and al,11100000b or ah,al mov al,08h dec dx out dx,ax End; Procedure StartAddr(Wd:Word);Assembler; Asm mov dx,03d4h mov al,0ch mov ah,[bp+7] out dx,ax inc al mov ah,[bp+6] out dx,ax End; Procedure StVertRetrace(Wd:Word);Assembler; Asm mov dx,03d4h mov al,10h mov ah,[bp+6] out dx,ax mov al,07h out dx,al inc dx in al,dx and al,01111011b mov ah,[bp+7] mov bh,ah and ah,00000001b and bh,00000010b shl ah,2 shl bh,6 or ah,bh or ah,al mov al,07h dec dx out dx,ax End; Procedure EndVertRetrace(Wd:Word);Assembler; Asm mov dx,03d4h mov al,11h out dx,al inc dx in al,dx and al,11110000b mov ah,[bp+6] and ah,00001111b or ah,al mov al,11h dec dx out dx,ax End; Procedure Lock07(switch:boolean); Assembler; Asm mov dx,03d4h mov al,11h out dx,al inc dx in al,dx and al,01111111b mov ah,[bp+6] and ah,00000001b shl ah,7 or ah,al mov al,11h dec dx out dx,ax End; Procedure VertDispEnd(Wd:Word);Assembler; Asm mov dx,03d4h mov al,12h mov ah,[bp+6] out dx,ax mov al,07h out dx,al inc dx in al,dx and al,10111101b mov ah,[bp+7] mov bh,ah and ah,00000001b and bh,00000010b shl ah,1 shl bh,5 or ah,bh or ah,al mov al,07h dec dx out dx,ax End; Procedure LogicalWidth(Bt:Byte);Assembler; Asm mov dx,03d4h mov al,13h mov ah,[bp+6] out dx,ax End; Procedure StVertBlank(Wd:Word);Assembler; Asm mov dx,03d4h mov al,15h mov ah,[bp+6] out dx,ax mov al,07h out dx,al inc dx in al,dx and al,11110111b mov ah,[bp+7] mov bh,ah and ah,00000001b and bh,00000010b shl ah,3 shl bh,4 or ah,al mov al,07h dec dx out dx,ax mov al,09h out dx,al inc dx in al,dx and al,11011111b or bh,al mov ah,bh mov al,09h dec dx out dx,ax End; Procedure EndVertBlank(Wd:Word);Assembler; Asm mov dx,03d4h mov al,16h mov ah,[bp+6] out dx,ax End;

Всего 1 фpагмент(а/ов) |пpедыдущий фpагмент (1)

Если вы хотите дополнить FAQ - пожалуйста пишите.

design/collection/some content by Frog,
DEMO DESIGN FAQ (C) Realm Of Illusion 1994-2000,
При перепечатке материалов этой страницы пожалуйста ссылайтесь на источник: "DEMO.DESIGN FAQ, http://www.enlight.ru/demo/faq".