Autor Beitrag
Delphi_Rainer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31



BeitragVerfasst: Fr 11.05.07 07:54 
Ich muss auf folgende IO Port Adresse zugreifen: Address: $3C5, Index 71H.

Den Zugriff auf die Adresse $3C5 kann ich mittels KLIVDRV.DLL (GetPortWord und SetPordWord) machen.

Was heist aber der Index 71 H. Muss ich 71 Hex auf $3C5 addieren ?

Wer kann mir helfen !
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Fr 11.05.07 08:06 
was willst du denn von Port 0x3C5? Die Grafikkarte ansprechen?

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
Delphi_Rainer Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31



BeitragVerfasst: Fr 11.05.07 08:21 
Adresse $3C5 greift auf eine LCD Anzeige.

Moderiert von user profile iconNarses: Defekte Zitatreste entfernt
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Fr 11.05.07 08:27 
Okay, per PM hab ich mitbekomme, dass du die Hintergrundbeleuchtung triggern willst. Die Ports 0x3C4 und 0x3C5 sind für die Grafikkarte da und werden so angesteuert, dass du in 0x3C4 den Index des auszulesenden/setzenden Werts reinschreibst und ihn dann über 0x3C5 ausliest/setzt. Über 0x71 habe ich jetzt direkt nichts gefunden, deswegen musst du mal rumprobieren, versuch es aber mal so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
SetPortWord($3C4, $71);
GetPortWord($3C5);
// zum setzen
SetPortWord($3C5, [dein neuer Wert]);


Was jetzt in dem Word beim Auslesen genau drin steht, weiß ich nicht. U.U. ist da noch eine Bitverknüpfung von Werten drin, die auch noch andere Dinge steuern, weiß ich aber nicht, wie gesagt, hab nix zum 0x71 gefunden...



MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Fr 11.05.07 13:25 
PM von user profile iconDelphi_Rainer:
Danke für deine Hilfe,

Es funktioniert !!!!

Ist also Adresse $3C4 das Indexregister und $3C5 das Datenregister ?


Schreibe deine Antrworten doch bitte in den Thread, dann können andere, die das Problem haben auch die Lösung sehen.

Ich denke das mit Daten- & Indexregister könnte man so in etwa sehen, auch wenn es nicht direkt "Register" sind.


MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
Delphi_Rainer Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31



BeitragVerfasst: Mi 27.02.08 17:12 
Danke für die Hilfe. Es klappt !