Author Topic: Rosasm and LAA  (Read 6485 times)

BurnWithMe

  • Guest
Rosasm and LAA
« on: July 17, 2013, 09:16:36 AM »
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

  • Moderator
  • Member
  • *****
  • Posts: 1449
  • Assembly is a state of art.
    • RosAsm
Re: Rosasm and LAA
« Reply #1 on: July 21, 2013, 09:32:46 PM »
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

  • Guest
Re: Rosasm and LAA
« Reply #2 on: July 22, 2013, 03:20:34 AM »
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

  • Moderator
  • Member
  • *****
  • Posts: 1449
  • Assembly is a state of art.
    • RosAsm
Re: Rosasm and LAA
« Reply #3 on: July 22, 2013, 05:51:17 AM »
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

  • Guest
Re: Rosasm and LAA
« Reply #4 on: July 22, 2013, 03:09:31 PM »
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

  • Guest
Re: Rosasm and LAA
« Reply #5 on: August 22, 2013, 05:19:49 PM »
The better would be simply a user choice option enabling this.

Antariy

  • Member
  • ****
  • Posts: 564
Re: Rosasm and LAA
« Reply #6 on: August 22, 2013, 05:50:30 PM »
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

  • Member
  • ****
  • Posts: 564
Re: Rosasm and LAA
« Reply #7 on: August 22, 2013, 05:56:15 PM »
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--

  • Administrator
  • Member
  • ******
  • Posts: 9798
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Rosasm and LAA
« Reply #8 on: August 22, 2013, 06:13:58 PM »
Thanks Alex, I missed that one.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: