Subversion Repositories pentevo

Rev

Rev 129 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef DEPACKER_DIRTY_H
  2. #define DEPACKER_DIRTY_H
  3.  
  4. #include "mytypes.h"
  5.  
  6.  
  7.  
  8.  
  9. // size and mask of output buffer
  10. #define DBSIZE 2048
  11. #define DBMASK 2047
  12.  
  13. extern UBYTE dbuf[DBSIZE];
  14.  
  15. extern ULONG indata;
  16.  
  17. // putting outbut buffer to file: for use of depacker_dirty();
  18. void put_buffer(UWORD size);
  19.  
  20.  
  21. #define NEXT_BYTE (pgm_read_byte_far(indata++))
  22.  
  23. void  depacker_dirty(void); // actual depacker, 8bit-oriented and with no any checks!
  24.  
  25. UBYTE get_bits_dirty(UBYTE numbits);
  26. WORD get_bigdisp_dirty(void);
  27.  
  28. void put_byte(UBYTE);
  29. void repeat(WORD,UBYTE);
  30.  
  31. #endif
  32.  
  33.