home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,199 of 2,978   
   Klaus Jorgensen to Klaus Jorgensen   
   Re: Error 161: Code generation error   
   16 Jun 06 13:13:53   
   
   From: kj@no.spam   
      
   Klaus Jorgensen wrote :   
   > Ruud.Baltissen@abp.nl wrote :   
   >>   
   >> Can someone explain what this "Error 161: Code generation error" is,   
   >> please?   
   >>   
   >> The part causing the error is ML. I need the ML because I only have a   
   >> 30 uSec window where all checking etc. has to be done. But it seems   
   >> that I'm limited in the use of ML because the moment I cross a certain   
   >> border, the error ocures. It is not the ML itself because it disappears   
   >> the moment I take a piece of code out of the program.   
   >>   
   >   
   > Your asm block is too long. All conditional jumps are short, so the   
   > destination has to be within 128 bytes from the jump opcode. The code causing   
   > error 161 is the 'jne' after '@4'. Use a 'je' to jump to the next piece of   
   > code, and a near jump to get to @99. Another solution could be to put some of   
   > your asm code in a subroutine.   
   >   
      
   As Robert points out; the LOOP has a problem with the asm size too. To   
   avoid several errors with short jumps, you could rearrange it by moving   
   the @20 code segment to the top or buttom of your asm section and use   
   near jumps to access it.   
      
   One more thing; there are a couple of 'jp' opcodes in your program   
   (preceeding @8, @20 and @99). Are you sure they shouldn't be 'jmp's?   
      
      
   /klaus   
      
   --- 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