Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,060 of 4,675    |
|    Bonita Montero to All    |
|    Could anyone help me re-writing a functi    |
|    13 May 20 08:54:31    |
      From: Bonita.Montero@nospicedham.gmail.com              I've got this Masm-code:              PUBLIC ?spendCycles@@YAX_K@Z       _TEXT SEGMENT       ?spendCycles@@YAX_K@Z PROC        test rcx, rcx        jz byebye       cycleLoop:        dec rcx ; roughly one jump per clock-cycle        jnz cycleLoop ; because there's only one branch-unit       byebye:        ret       ?spendCycles@@YAX_K@Z ENDP       _TEXT ENDS       END              I need a C++-function with gcc inline-assembly that does the same.       Unfortunately I'm not familiar with gcc inline-assembly.       So could anyone here re-write me that code ?              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca