home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
p
/
pchdemo.zip
/
SOURCESW.ZIP
/
320X200.ASM
< prev
next >
Wrap
Assembly Source File
|
1992-10-28
|
1KB
|
63 lines
code segment public
assume cs:code,ds:code,es:code,ss:stack
extrn digit:near
push cs
pop ds
push cs
pop es
mov di,offset tab1 ; Erstellen der Palette mit 64 Graustufen
mov ax,0
s0:
stosw
stosw
stosw
stosw
stosw
stosw
add ax,101h
cmp al,64
jnz s0
mov ax,13h
int 10h ; Grafik einschalten (VGA 320 x 200)
mov ax,1012h
mov bx,0
mov cx,256
mov dx,offset tab1
int 10h ; und Palette auf 64 Graustufen ändern.
s1:
mov al,15 ; mittlere Kontrastwert
mov bl,32 ; ab dem 32.Pixel von links
mov bh,44 ; ab der 44.Zeile von oben
mov cx,320 ; 320 Pixel digitalisieren
mov dx,200 ; 200 Zeilen digitalisieren
les di,vstart ; Adresse der VGA A000H
call digit ; und Digitalisieren
mov ah,1
int 16h
jz s1 ; Wenn keine Taste gedrückt
mov ah,0
int 16h
mov ax,3
int 10h ; Auf Textmodus schalten
mov ah,4ch
int 21h ; Programm beenden
tab1 db 768 dup (0)
vstart dd 0a0000000h
code ends
stack segment para stack
dw 256 dup (?)
stack ends
end