Author Topic: rbpFramePrologue -- where did is it? where did it go?  (Read 1498 times)

markallyn

  • Member
  • **
  • Posts: 192
rbpFramePrologue -- where did is it? where did it go?
« on: January 26, 2018, 09:14:26 AM »
Hello everyone,

I joined the 64 bit forum in late 2017.  In 2016 there were several posts that included OPTION PROLOGUE:rbpFramePrologue and a corresponding OPTIION for the epilogue.  I have tried to assemble some code that uses these OPTIONS, but the assembler kicks them out.  Moreover, I can't find them in macros64.inc or vasily.inc.  Two questions:

felipe

  • Member
  • ****
  • Posts: 944
  • Eagles are just great!
Re: rbpFramePrologue -- where did is it? where did it go?
« Reply #1 on: January 26, 2018, 10:57:32 AM »
Assuming the 2 questions are this ones: "where did is it? where did it go?"
I don't know the answer, but maybe that will help others to answer.  :idea:

 :biggrin:

Felipe.

johnsa

  • Member
  • ****
  • Posts: 696
    • Uasm
Re: rbpFramePrologue -- where did is it? where did it go?
« Reply #2 on: January 26, 2018, 08:04:16 PM »
Which assembler are you referring to ?

The options available should be:

OPTION PROLOGUE:PrologueDef       ;Use the default built-in prologue.
OPTION PROLOGUE:NONE                ;No prologue at all
OPTION PROLOGUE:someMacro        ;Here it would be expected that you supply a macro which receives preset parameters and is responsible for generating a prologue.

With UASM the default under 64bit is  to generate automatic prologue/epilogue using RBP.
You can then use OPTION STACKBASE:RSP/RBP to change this default behaviour in conjunction with the various OPTION WIN64:x flags to control what and how prologues are generated.

AW

  • Member
  • *****
  • Posts: 1517
  • Let's Make ASM Great Again!
Re: rbpFramePrologue -- where did is it? where did it go?
« Reply #3 on: January 26, 2018, 10:18:16 PM »
temphls.inc but I don't know where it is available now.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 5850
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: rbpFramePrologue -- where did is it? where did it go?
« Reply #4 on: January 26, 2018, 11:00:32 PM »
You would need to get Vasily's original files, have a look at Mikl__'s sub forum and he may have the link for it. Note that this stuff in not compatible with the system that I have built so you will have to learn Vasily's system and you have a lot of examples by Mikl__.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

markallyn

  • Member
  • **
  • Posts: 192
Re: rbpFramePrologue -- where did is it? where did it go?
« Reply #5 on: January 27, 2018, 06:51:43 AM »
Hello all,

Johnsa:  Thanks for the input.  BTW, I'm using MASM ml64.exe.  32 bit masm had a default prologue option macro called FORCEFRAME, but they seem to have gone away from that in 64 bit.

AW27:  Thanks for the clarification.  I suspected that it might be in temphls.inc.  I couldn't verify this since I don't have that file.

Hutch:  The program you wrote in 2016 called window5 was the trigger for my question, since I couldn't get it to assemble owing to the lack of the temphls.inc file.  Window5 was beautifully laid out and annotated and I wanted to use it as a foundation for additional functionality.  Then it wouldn't assemble...

I'm interested to see how the Prologuedef mentioned by Johnsa compares to the STACKFRAME macro you wrote.

Regards,
Mark

markallyn

  • Member
  • **
  • Posts: 192
Re: rbpFramePrologue -- where did is it? where did it go?
« Reply #6 on: January 27, 2018, 07:12:18 AM »
Johnsa-

I used the pair PrologueDef and EpilogueDef.  Program assembled without complaint.  However, it crashes after execution for want of a stack frame.  Apparently, those two macros behave as if I had done OPTION PROLOGUE:NONE and OPTION EPILOGUE:NONE.  Maybe I'm missing something?

Mark

Vortex

  • Member
  • *****
  • Posts: 1851
Re: rbpFramePrologue -- where did is it? where did it go?
« Reply #7 on: January 27, 2018, 07:52:06 AM »
Hi Mark,

temphls.inc comes with this zip archive :

http://dsmhelp.narod.ru/masm64.zip

http://dsmhelp.narod.ru/environment.htm

Mikl__

  • Member
  • ****
  • Posts: 688
Re: rbpFramePrologue -- where did is it? where did it go?
« Reply #8 on: January 29, 2018, 02:04:27 PM »
Hi Mark,
maybe help will be more specific if you attach asm- and bat-files to the message?