Subversion Repositories pentevo

Rev

Rev 6 | 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. // size and mask of output buffer
  7. #define DBSIZE 2048
  8. #define DBMASK 2047
  9.  
  10. extern UBYTE dbuf[DBSIZE];
  11.  
  12. extern ULONG indata;
  13.  
  14. // putting outbut buffer to file: for use of depacker_dirty();
  15. void put_buffer(UWORD size);
  16.  
  17.  
  18. #define NEXT_BYTE (pgm_read_byte_far(indata++))
  19.  
  20. void  depacker_dirty(void); // actual depacker, 8bit-oriented and with no any checks!
  21.  
  22. UBYTE get_bits_dirty(UBYTE numbits);
  23. WORD get_bigdisp_dirty(void);
  24.  
  25. void put_byte(UBYTE);
  26. void repeat(WORD,UBYTE);
  27.  
  28. #endif
  29.  
  30.