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,100 of 2,978   
   Markus Humm to Jim Leonard   
   Re: Multi-dimensional array access via i   
   24 Mar 06 17:22:28   
   
   From: markus.humm1@freenet.de   
      
   Jim Leonard schrieb:   
   > Marco van de Voort wrote:   
   >> Always try to write something in pascal notation for your assembler. Then   
   >> you'll se that what you did is roughly equal to precalc[x+y] not   
   >> precalc[x][y]   
   >>   
   >> Try something that looks more like precalc[x*maxy+y]   
   >   
   > Yeah, I figured this out after I sent the message...  Unfortunately the   
   > whole purpose of the precalc table is to eliminate MULs :-) so I'll   
   > have to figure something out.   
   >   
   > I'm afraid I don't follow you regarding "pascal notation for your   
   > assembler" -- I'm using in-line assembler with TP7.  Are you saying   
   > it's possible to do something like "mov ax,[bx][si]" and the compiled   
   > will "figure it out"?   
   >   
      
   He meant: write the code you want to write in ASM in PASCAL first, so   
   you can see such logic errors quicker. then translate it to ASM.   
      
   Greetings   
      
   Markus   
      
   --- 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