Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
PopAll
 Map                                       Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
;* @PopAll - Macro to restore registers pushed by the PushAll macro.  Like
;* the PushAll macro, PopAll uses the most efficient method available at
;* assembly time (not at run time).
;*
;* Shows:   Instruction - popa
;*
;* Params:  None
@PopAll MACRO
    IF @Cpu AND 00000010y       ;; If assembling on 80186/286/386,
        popa                    ;;  use efficient POPA
    ELSE                        ;; Otherwise pop individually
        pop di
        pop si
        pop bp
        pop sp
        pop bx
        pop dx
        pop cx
        pop ax
    ENDIF
ENDM
                                    -♦-