Solved

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

Posted on 2004-08-29
4
321 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
Comment Utility

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


0
 
LVL 4

Author Comment

by:ErikPhilips
Comment Utility
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
Comment Utility
The points are too much for such a question.

Best Regards,
Mottor
0
 
LVL 4

Author Comment

by:ErikPhilips
Comment Utility
1. This question was urgent.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

18 Experts available now in Live!

Get 1:1 Help Now