Hello.
I want to learn Assembler, but I don't want to use compilers like MASM or something like that. I want to use Assembler with Delphi. Well, let's start off with the first question.
.: First question :.
Let's assume I've got a function called AddThree. What should it do? It just sums up three integers given as the parameters. Suppose the function's header is:
[pascal]
function AddThree(A, B, C: Integer): Integer; assembler;
[/pascal]
How would I know which register contains the address of A, which one contains B, and which one contains C? :?
.: Second question :.
Let's assume I've got the TVector2f type declared as follows:
[pascal]
type
TVector2f = array[0..1] of Single;
[/pascal]
How do I initialize this array with Assembler's instructions? :?
Any good tutorials about using Assembler with Delphi are greatly appreciated.
Regards!
Bookmarks