• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

Is there another way to code this? (asm vs delphi)

var
lpBaseAdr: Pointer;

begin

StartAddr := $17323a4;

  asm
    mov eax, StartAddr
    mov lpBaseAdr, eax;
  end;

I'm using it with ReadProcessMemory if you're curious.
0
ErikPhilips
Asked:
ErikPhilips
  • 2
  • 2
1 Solution
 
mottorCommented:

lpBaseAdr := Pointer($17323a4);
or
lpBaseAdr := Pointer(StartAddr);


0
 
ErikPhilipsAuthor Commented:
Ahh that looks so much better, I'll test that real quick then assign the points.  I don't know if the asm is faster (I don't really care) but i just want my code more readable.  (I don't believe ASM is quite as readable as Pascal).
0
 
mottorCommented:
The points are too much for such a question.

Best Regards,
Mottor
0
 
ErikPhilipsAuthor Commented:
1. This question was urgent.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now