News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

ZEROLOCALS

Started by Ficko, December 15, 2009, 10:46:47 AM

Previous topic - Next topic

dedndave

push is pretty fast....

        mov     ecx,LocalsQty
        xor     eax,eax

ZeroLs: dec     ecx
        push    eax
        jnz     ZeroLs

and only 11 bytes i think   :8)

Ficko

Quote from: Ficko on December 15, 2009, 12:37:48 PM
I gues we need a subsection for MACROs for easier look up. ::)

Hutch I really mean it.

There are 1000 of usefull - or not  :P - macros scattered all over the forum and since MASM is a (MACRO)ASM I think it would deserve a MACROs section.

hutch--

You have, its called the Laboratory.  :bg
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Ficko

Quote from: hutch-- on December 15, 2009, 03:37:40 PM
You have, its called the Laboratory. :bg

Very funy.  :green2

Why won't admit you just hate macros!?  :toothy

dedndave

QuoteYou have, its called the Laboratory.

lol - you hafta get up pretty early to make Hutch do a bunch of un-scheduled stuff   :lol
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."

jj2007

Quote from: Ficko on December 15, 2009, 04:25:46 PM
Quote from: hutch-- on December 15, 2009, 03:37:40 PM
You have, its called the Laboratory. :bg

Why won't admit you just hate macros!?  :toothy

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...

Ficko

Quote from: jj2007 on December 15, 2009, 05:29:36 PM
?#!?*%&§...

Did I stept on your precious toes jj ?

I was just teasing him. :wink

jj2007

Quote from: Ficko on December 15, 2009, 07:00:33 PM
Quote from: jj2007 on December 15, 2009, 05:29:36 PM
?#!?*%&§...

Did I stept on your precious toes jj ?

I was just teasing him. :wink

Oops, I thought you were serious - apologies ::)