Ignore:
Timestamp:
Mar 6, 2008, 3:18:30 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of WATCOMC tests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/light.cpp

    r56 r90  
    608608}
    609609
    610 /*
    611 #ifdef __WATCOMC__
    612 extern "C" {
    613 extern int32_t MAP_PUT(int32_t pad, int32_t screen_addr, int32_t remap, int32_t w);
    614 } ;
    615 #else*/
    616 
    617610inline void MAP_PUT(uint8_t * screen_addr, uint8_t * remap, int w)
    618611{
     
    636629  }
    637630}
    638 
    639 /*
    640 #endif
    641 
    642 inline void PUT8(int32_t *addr, uint8_t *remap)
    643 {
    644   register uint32_t in_pixels;
    645   register uint32_t pixel;
    646   register uint32_t out_pixels;
    647   in_pixels=*addr;
    648   pixel=in_pixels;
    649   out_pixels=remap[(uint8_t)pixel];
    650  
    651   pixel=in_pixels;
    652   pixel>>=8;
    653   pixel=remap[(uint8_t)pixel];
    654   pixel<<=8;
    655   out_pixels|=pixel;
    656 
    657   pixel=in_pixels;
    658   pixel>>=16;
    659   pixel=remap[(uint8_t)pixel];
    660   pixel<<=16;
    661   out_pixels|=pixel;
    662 
    663   pixel=in_pixels;
    664   pixel>>=24;
    665   pixel=remap[(uint8_t)pixel];
    666   pixel<<=24;
    667   out_pixels|=pixel;
    668 
    669   *addr=out_pixels;        // send out bus
    670 
    671   // do next 4
    672   in_pixels=addr[1];
    673 
    674   pixel=in_pixels;
    675   pixel&=0xff;
    676   out_pixels=remap[pixel];
    677  
    678   pixel=in_pixels;
    679   pixel>>=8;
    680   pixel=remap[(uint8_t)pixel];
    681   pixel<<=8;
    682   out_pixels|=pixel;
    683 
    684   pixel=in_pixels;
    685   pixel>>=16;
    686   pixel=remap[(uint8_t)pixel];
    687   pixel<<=16;
    688   out_pixels|=pixel;
    689 
    690   pixel=in_pixels;
    691   pixel>>=24;
    692   pixel=remap[(uint8_t)pixel];
    693   pixel<<=24;
    694   out_pixels|=pixel; 
    695   addr[1]=out_pixels;        // send out bus
    696  
    697 }
    698 
    699 inline int32_t MAP_PUT2(int32_t dest_addr, int32_t screen_addr, int32_t remap, int32_t w)
    700 { while (w--)
    701   {
    702     *((uint8_t *)(dest_addr))=*((uint8_t *)remap+*((uint8_t *)screen_addr));
    703     screen_addr++;
    704     dest_addr++;
    705   }
    706   return dest_addr;
    707 }
    708 
    709 */
    710631
    711632uint16_t min_light_level;
     
    759680
    760681
    761 /*#ifdef __WATCOMC__
    762 
    763 extern "C" void remap_line_asm(uint8_t *screen_line,uint8_t *light_lookup,uint8_t *remap_line,int count);
    764 
    765 #else */
    766 
    767682void remap_line_asm2(uint8_t *addr,uint8_t *light_lookup,uint8_t *remap_line,int count)
    768683//inline void remap_line_asm2(uint8_t *addr,uint8_t *light_lookup,uint8_t *remap_line,int count)
     
    785700  }
    786701}
    787 
    788 //#endif
    789 
    790702
    791703inline void put_8line(uint8_t *in_line, uint8_t *out_line, uint8_t *remap, uint8_t *light_lookup, int count)
Note: See TracChangeset for help on using the changeset viewer.