Pages: 1 [2]
|
 |
|
Author
|
Topic: ZEROLOCALS (Read 15471 times)
|
dedndave
|
push is pretty fast.... mov ecx,LocalsQty xor eax,eax
ZeroLs: dec ecx push eax jnz ZeroLs
and only 11 bytes i think 
|
|
|
Logged
|
|
|
|
Ficko
|
I gues we need a subsection for MACROs for easier look up.  Hutch I really mean it. There are 1000 of usefull - or not  - macros scattered all over the forum and since MASM is a (MACRO)ASM I think it would deserve a MACROs section.
|
|
|
Logged
|
|
|
|
hutch--
Administrator
Member
    
Posts: 12013
Mnemonic Driven API Grinder
|
You have, its called the Laboratory. 
|
|
|
Logged
|
|
|
|
Ficko
|
You have, its called the Laboratory.  Very funy.  Why won't admit you just hate macros!? 
|
|
|
Logged
|
|
|
|
dedndave
|
You have, its called the Laboratory. lol - you hafta get up pretty early to make Hutch do a bunch of un-scheduled stuff  it has little to do with his like/dislike of macros you know what they say, "Want in one hand, ...... See which one fills up faster."
|
|
|
Logged
|
|
|
|
jj2007
|
You have, its called the Laboratory.  Why won't admit you just hate macros!?  You are barking at the wrong tree. Hutch has provided an awful lot of very good macros, see \masm32\mtacros\macros.asm Re Zerolocales ot ClearLocals or whatever, that has been bashed to death already. My link points to a 19 byte proc that requires a 5 byte call and no hand-made counting how many bytes need to be cleared. It's a matter of taste...
|
|
|
Logged
|
|
|
|
Ficko
|
?#!?*%&§...
Did I stept on your precious toes jj ? I was just teasing him. 
|
|
|
Logged
|
|
|
|
jj2007
|
?#!?*%&§...
Did I stept on your precious toes jj ? I was just teasing him.  Oops, I thought you were serious - apologies 
|
|
|
Logged
|
|
|
|
|
Pages: 1 [2]
|
|
|
 |