ERLEDIGT
NEIN
NEIN
ANTWORTEN
2
2
ZUGRIFFE
818
818
EMPFEHLEN
-
Hi,
Ich würde gerne in Assembler im Grafik modus 6A ein Bild pixeln und danach in den Text Modus zurück springen. Wie springe ich in den grafik Modus und Zurück? und wie ist das mit der Farb palette? welche Farbe ist ZB. Rot ? und wo muss ich welchen wert hinverschieben ?
Kann mir viieleicht jemand ein Beispiel Programm schicken das mir ein Rotes Pixel ausgibt?
Gruß Simicoder
-
30.09.10 08:39 #2
- Registriert seit
- Jun 2007
- Ort
- Passau (Niederbayern)
- Beiträge
- 1.394
Über eine gute Bewertung freut sich jeder ;)
Bitte erledigte Threads als "Erledigt" markieren.
"Though a program be but three lines long, someday it will have to be maintained.''
-- Geoffrey James, "The Tao of Programming"
-
Also ich hab ne Lösung gefunden aber was mach Ich falsch das es mir keinen roten Farbblock ausgibt?
call SetMode12
mov bx, 400
mov cx, 51
mov ax, 4
jmp pix
eof:
call ...
pix:
sub cx, 1
call pixel
cmp cx, 0
je pix1
jmp pix
pix1:
xor cx, cx
mov cx, 51
sub bx, 1
cmp bx, 0
je eof
jmp pix
clear:
mov ax,03
int 10h
ret
SetMode12:
mov ax, 12h
int 10h
mov dx,03ceh
mov ax,0205h
out dx,ax
ret
pixel: ;ax = farbe ;bx = y koordiante ;cx = x koordinate
push ax
mov ax,0xA000
mov es,ax
mov di,bx
shl di,6
shl bx,4
add di,bx
mov bx,cx
shr bx,3
add di,bx
and cx,7
mov ah,128
shr ah,cl
mov dx,03ceh
mov al,8
out dx,ax
mov dl,[es:di]
pop ax
mov [es:di],al
ret
könnte mich vieleicht jemand mal korrigiren?Geändert von simicoder (01.10.10 um 15:29 Uhr)
Ähnliche Themen
-
[Assembler] Grafik im Protected Mode
Von Jellysheep im Forum Sonstige SprachenAntworten: 11Letzter Beitrag: 21.01.11, 15:27 -
Graphic-Tablet
Von thekiller im Forum HardwareAntworten: 1Letzter Beitrag: 07.06.07, 21:12 -
[Assembler] Interrupts im Protected Mode
Von Aiju im Forum Sonstige SprachenAntworten: 3Letzter Beitrag: 09.07.06, 21:48 -
Dual Channel Mode/AGP Mode
Von LostProphet im Forum HardwareAntworten: 1Letzter Beitrag: 24.02.05, 13:18





Zitieren


Login





