www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2300] New: pause opcode is not well documented

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2300

           Summary: pause opcode is not well documented
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: manlio.perillo gmail.com


In the "Inline Assembler" documentation it is reported that "pause" opcode is
equivalent to rep; nop;

This is not true on modern IA-32 CPUs.

PAUSE istruction can be executed with:

asm {
    // "pause" opcode is not supported
    db 0xf3, 0x90;
}


-- 
Aug 20 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2300


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #1 from bugzilla digitalmars.com  2008-08-26 02:30 -------
asm
{
    rep; nop;
}

does compile to 0xF3 0x90


-- 
Aug 26 2008