News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Rosasm and LAA

Started by BurnWithMe, July 17, 2013, 09:16:36 AM

Previous topic - Next topic

BurnWithMe

To make RosAsm LAA (LARGE_ADRESS_AWARE) is just a matter of oring a bit in the PE header code. And I did this because I need huge amounts of memory for a project now. But the fact is that the debugger in my version of RosAsm does not understand adresses bigger then 0_8000_0000 and it greys them out. This is not good for an assembler in my view. Can it be fixed easily?

Anyway, very happy to see that you carry on the good work for an excellent assembler.  Thanks you.

guga

Hmm...can you post the exe (with source) where you are trying to do it ? Then i can try to reproduce the error in order to fix it.
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

BurnWithMe

Do you mean the modified RosAsm exe? If not the answer is regrettfully no. But it should not be to hard to verify.

1
Enable the PE header bit below the label "WritePEeaders" the bit is called &IMAGE_FILE_LARGE_ADRESS_AWARE

2
Ask windows, repeatedly for memory in 0_1000_0000 chunks, until the return adress > 0_8000_0000

3
Verify that the returned pointer is grayed out in the Debugger and cannot be inspected, but that the memory
is valid and can be written with code.

I suspect this is a C mindset that has lead the author of the debugger to think that those adresses are invalid.
Note that windows may not be able to return a LARGE chunk at once, but that it will return upto about 3.8 G if
asked for several smaller chunks. The largest single contigous chunk will be around 1.8G. Thats why I ask
for 0_1000_0000 at a time, when I was testing this.






guga

Yes, the modified RosAsm.exe

I´ll take a look at WritePeHeaders and see what i can do and how implement it. The better would be simply a user choice option enabling this.

Many thanks
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

BurnWithMe

just wanted to add that this is on x64 os with significant amounts of ram. in 32bit os things may be different, for all I know.


xuewuyang

The better would be simply a user choice option enabling this.

Antariy

The member who posted message above is a "people-bot" which registered here to promote the site in its signature and "custom website" (near post count).

Sexy underwear advertisements on MASM32 forum? :greensml:

(Take notice on senseless - in a topic of the thread - content of the "people-bot" post above)

Antariy

Moreover, in addition.

The usual "algo" of such "bots", after registering, is to choose an more or less old (usually not too old, and not very fresh) thread, which the "bot" thinks may more or less understand what others are talking in the thread about, and make more or less "sensible" post, which shows that this post is made by people (it is not totally senseless set of words), but such posts usually far from real understanding of a topic.

The algo of the bots really doesn't satisfy such a PROGRAMMING forum, like MASM32 is :greensml:

Just a note, since I have decent experience in "hunting" for such "bots".

hutch--

Thanks Alex, I missed that one.