home bbs files messages ]

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 3,690 of 4,675   
   R.Wieser to All   
   Borlands Tasm32 v5.x and using "assume"    
   15 Dec 18 10:29:40   
   
   From: address@nospicedham.not.available   
      
   Hello all,   
      
   Sometimes I write code where I have the target address of a procedure in a   
   register or memory location (stack-based argument).   The problem is than   
   when I use such an indirect call the (number and type of) arguments of the   
   call are not compile-time checked against the target procedure.   
      
   Example:   
   - - - - - - - - - - - -   
   Foo PROCDESC lArg1:DWORD,lArg2.DWORD   
      
   lea eax,[Foo]   
   call eax,12345678h   
   - - - - - - - - - - - -   
   This will not generate a compile-time error, even though the call misses an   
   argument.   
      
   I've tried to "assume" the EAX register to the procedure (assume EAX:   
   FooBar), but Borlands Tasm32 v5.x does not seem to like that. :-(   
      
   Question: *can* I put an "assume" on a register, and if so how do I do that   
   ?   
      
   And and afterthought:   
   If it is possible, is the scope of such an assumption limited to the   
   procedure, or is it global (I assume the former, but ...) ?   
      
   Regards,   
   Rudy Wieser   
      
   --- 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