The MASM Forum Archive 2004 to 2012

Project Support Forums => GoAsm Assembler and Tools => Topic started by: FlySky on August 05, 2009, 02:47:47 PM

Title: 64 BIT PUSHAD
Post by: FlySky on August 05, 2009, 02:47:47 PM
Hey there guys,

Just playing around with PUSH instruction and noticed from the AMD reference that PUSHAD is not supported anymore, same for PUSHFD and POPFD although the latter two are replaced by PUSHFQ and POPFQ, however I haven't been able to find an instruction to push all registers onto the stack. Is it not possible anymore, or do I have to manually push all registers on the stack like PUSH RAX, PUSH RBX etc..?

Title: Re: 64 BIT PUSHAD
Post by: dedndave on August 05, 2009, 02:58:04 PM
probably because it takes nearly 1/2 Kb to store em all
the one that gets me is, some processors do not support LAHF/SAHF in 64-bit mode