Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#1

Assembler - SetLength und Dyn. Arrays

  Alt 16. Feb 2007, 20:02
Hi,

Gegeben sei

1.
TIntArray: Array of Integer; und

2.
function Bla: TIntArray; Meine Fragen:
1. Wie kann ich die Länge mithilfe von SetLength setzen?
2. Und wie kann ich die Länge ermitteln?

Meine Versuche:

1.
Delphi-Quellcode:
// gibt eine AV!
 mov eax,Result
 mov edx,Länge
call System.@SetLength
2.
Delphi-Quellcode:
// Länge steht in eax? Gibt aber auch ne AV..
mov eax,Result
mov eax,[eax-4]
Wäre nett wenn mich jemand aufklären könnte

Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat