Proposed new macros
James Lampard (51) 120 posts |
From looking through the ROOL sources, I noticed regs stored by the Entry/EntryS macro defined in Export.APCS-32.Hdr.Global.Proc are often directly accessed via the Proc_RegOffset or Proc_Local offsets. This produces code like:
Or:
Firstly it should always be Proc_RegOffset instead incase EntryS is being used. I’ve created some macros to automate this and hopefully make it more bullet proof. The features of the macros are:
The syntax is FRAMLDR/FRAMSTR armreg,cond,framereg
This is the definition of the macros:
Does anyone have any objections/opinions on using these macros? From examining the listing of Export.APCS-32.Hdr.Global.Proc I believe EXIT could be simplified (untested):
Would be simpler as:
|
Steve Revill (20) 1361 posts |
I like the sound of that. You could try replacing the said instructions in a few places with your macros to see if it results in the same binary. If so, then I’m all for it. |