News:

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

Maccy ros

Started by oex, February 13, 2010, 10:38:33 PM

Previous topic - Next topic

oex

MacroName MACRO FuncName:REQ,args:VARARG

Is there a way to know what length macro arg is ie

MacroName BlahFunc, esi, al, eax

how do I know al is a BYTE.... Indeed can it be a BYTE? I've always worked under DWORD assumptions

OK I'm assuming has something to do with:
            IF issize(sbytevalue, 1)
success
            ENDIF

Thanks for your wasted time ;) Maybe you learnt something.... Like not to bother checking my posts :lol
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

PBrennick

AL is always a BYTE?!? I have a feeling I don't understand your question, however. Perhaps you need to test the value to see if it is greater than 0FFh (255)?

BTW, You have a nice sense of humor (about reading your posts). :8)

Paul
The GeneSys Project is available from:
The Repository or My crappy website

oex

 :bg Just to answer my own question for the record

      IF issize(var, 1)
         IF isregister(var)
            mov [esi], var
            inc esi
            inc edi
         ENDIF
      ENDIF

(taken from /macros/macros.inc)
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv