English
Assembler Forum

PushSome / PopSome

 

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.
 
11/11/05  
 




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...
 
11/11/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.950 Views

Untitledvor 0 min.
p.specht09/14/13

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie