?
Solved

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

Posted on 2004-08-29
4
Medium Priority
?
328 Views
Last Modified: 2013-11-23
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
Comment
Question by:ErikPhilips
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
mottor earned 2000 total points
ID: 11924948

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


0
 
LVL 4

Author Comment

by:ErikPhilips
ID: 11924951
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
 
LVL 4

Expert Comment

by:mottor
ID: 11925014
The points are too much for such a question.

Best Regards,
Mottor
0
 
LVL 4

Author Comment

by:ErikPhilips
ID: 11925595
1. This question was urgent.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question