| |
|
|
Michael Wodrich | Hello Frank,
with the first Durchsicht of iF's SyntaxPainter fell me The endlosen PUSH/POP-Aufrufe on. I resolve the by Macros, The really well into base.inc fit:
[box:a5467fa627] <tt><pre> 'ASM-Macros ;; ;; several tab at a single blow secure ;; PushSome MACRO items:VARARG LOCAL bad FOR bad,<items> push bad ENDM ENDM ;; ;; several tab at a single blow retrieve ;; (in exactly the angegebenen Order) ;; PopSome MACRO items:VARARG LOCAL bad FOR bad,<items> pop bad ENDM ENDM ;; ;; several tab at a single blow retrieve ;; (in umgekehrter Order) ;; can well as Gegenstück To PushSome used go ;; PopSomeRev MACRO p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12 LOCAL bad FOR bad,<p12,p11,p10,p9,p8,p7,p6,p5,p4,p3,p2,p1> IFNB <arg> pop bad ENDIF ENDM ENDM </pre></tt> [/box:a5467fa627] then would the registers backups only need one line, and one can not so slight vertippen with the Order. CompileMarkSeparation Best wishes Michael Wodrich |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 11/11/05 ▲ |
|
|
|
|
| Hm time of it foreseen that I whom Stack often use circa values To swap - but particularly to ApiCalls would the naturally meaningfully.
salvo. |
|
|
| |
|
|
|
Michael Wodrich | too the swap is Yes possible, if many tab concerned are (otherwise rewards not).
PushSome eax,ebx,ecx PopSome ecx,eax,ebx
vertauscht EAX and EBX
the PopSome Macro collecting only several POPs in a Statement during PopSomeRev Specifically with the tab-Restaurierung to Funktionsaufrufen using becomes.
These Macros there were in similar shape time in middle-aged MASM-versions as PUSHALL and POPALL. The were but not so flexibly, there tappt im dunkeln hard codiert were.
Best wishes Michael Wodrich |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 11/11/05 ▲ |
|
|
|
|
Frank Abbing | Hello Michael,
good Macro, good idea! there but not everyone always need all macros will, I will not To plenty of it into basic.inc pack. power Yes The Source code too unübersichtlich. i think, its rather in the XPIA-Forum a Thread to open, in the Macros are collected and there always Disposal stand, or. the there of each extended go can. the make I same time... |
|
|
| |
|
|