Solved

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

Posted on 2004-08-29
4
325 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
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
mottor earned 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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