Autor Beitrag
white-desert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 16



BeitragVerfasst: Do 31.01.08 10:17 
Hallo,

ich habe einen String im Arbeitsspeicher

ausblenden Delphi-Quelltext
1:
2:
3:
var s:String;
begin
  s := 'hallo';


wie kann ich mit Delhpi Inline-Assembler den Buchstaben a auf x aendern?
Wie funktioniert der Zugriff auf den Arbeitsspeicher allgemein?
Gibt es irgendwo eine Erklaerung, die auch ich verstehe? :-)
Dankeschoen!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 08.02.08 11:25 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
asm
  MOV  EAX, DWORD PTR [s]
  MOV  BYTE PTR [EAX], 'x'
end;


Für Erklärung siehe www.delphi-forum.de/...+tutorial_80428.html Weiteres wird bei Gelegenheit noch ergänzt in dem Thread.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.