flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Windows > How to optimize this code? | 
  
| Author | 
  | 
              
| 
                  
                   Madis731 19 Nov 2005, 14:39 
                  You gave us pseudocode so pseudo-assembly right back at you  
                  
                Code: c db 0 b db 0 a db 0 EmptyByte db 0 varLong=c ...and the second one... Code: mov eax,[varLong] ror eax,8 cmp ah,al jnb aNotBelow rol eax,8 inc eax cmp al,ah jna @f mov al,[a] @@: jmp EndCompare aNotBelow: rol eax,8 dec eax cmp al,ah jnb @f mov al,[a] @@: EndCompare: mov [varLong],eax What do you want to do anyway? I think you just need a better algo, because the operations you make just seem...excuse me...stupid  | 
              |||
                  
  | 
              
| 
                  
                   sq4² 19 Nov 2005, 15:01 
                  Thank you very much! 
                  
                 | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.