Solved

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

Posted on 2004-08-29
4
323 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now