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 4,490 of 4,675   
   R.Wieser to All   
   Re: error for small data model   
   14 Nov 22 09:03:17   
   
   From: address@nospicedham.not.available   
      
   Paul,   
      
   > What is the best way of producing an error here?   
      
   That depends on 1) what kind of error you want (run or assmble time) 2) the   
   assembler you're using.   
      
   Looking at the example code it looks to me you want #2.  In that case you   
   could check if your assember has something like "@err" (for errors) and   
   "@out" (for warnings).   
      
   And a suggestion : when one of the blocks contains an program (error) exit   
   than you do not need to use an "else".  Just make sure that the error-exit   
   is in the first, main block :   
   - - - - - - - - - -   
   if not @DataSize   
   error you must use a model with far data pointers   
   endif   
   push ds   
   - - - - - - - - - -   
   notice the "not" after the "if"   
      
   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