Subversion Repositories pentevo

Rev

Rev 796 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed | ?url?

  1. #pragma pack(1)
  2. struct hdrSNA128 {
  3.    unsigned char i;
  4.    unsigned short althl, altde, altbc, altaf;
  5.    unsigned short hl, de, bc, iy, ix;
  6.    unsigned char iff; /* bit0 - iff1, bit1 - iff2 */
  7.    unsigned char r;
  8.    unsigned short af, sp;
  9.    unsigned char im,pFE;
  10.    unsigned char page5[PAGE]; // 4000-7FFF
  11.    unsigned char page2[PAGE]; // 8000-BFFF
  12.    unsigned char active_page[PAGE]; // C000-FFFF
  13.    /* 128k extension */
  14.    unsigned short pc;
  15.    unsigned char p7FFD;
  16.    unsigned char trdos;
  17. //   unsigned char pages[PAGE]; // all pages, except already saved
  18.                                 // (m.b. 5 or 6 pages)
  19. };
  20.  
  21. struct hdrZ80
  22. {
  23.    unsigned char a,f;
  24.    unsigned short bc,hl,pc,sp;
  25.    unsigned char i,r,flags;
  26.    unsigned short de,bc1,de1,hl1;
  27.    unsigned char a1,f1;
  28.    unsigned short iy,ix;
  29.    unsigned char iff1, iff2, im;
  30.    /* 2.01 extension */
  31.    unsigned short len, newpc;
  32.    unsigned char model, p7FFD;
  33.    unsigned char r1,r2, p7FFD_1;
  34.    unsigned char AY[16];
  35.    /* 3.0 extension */
  36.    u16 LowT;
  37.    u8 HighT;
  38.    u8 ReservedFlag;
  39.    u8 MgtRom;
  40.    u8 MultifaceRom;
  41.    u8 RamRom0; // 0000-1FFF ram/rom
  42.    u8 RamRom1; // 2000-3FFF ram/rom
  43.    u8 KbMap1[10];
  44.    u8 KbMap2[10];
  45.    u8 MgtType;
  46.    u8 Disciple1;
  47.    u8 Disciple2;
  48.    u8 p1FFD;
  49. };
  50.  
  51. struct hdrSP
  52. {
  53.    unsigned short sig;
  54.    unsigned short len;
  55.    unsigned short start;
  56.    unsigned short bc,de,hl,af;
  57.    unsigned short ix,iy;
  58.    unsigned short altbc,altde,althl,altaf;
  59.    unsigned char r, i;
  60.    unsigned short sp, pc;
  61.    unsigned short reserved;
  62.    unsigned char pFE;
  63.    unsigned char reserved2;
  64.    unsigned short flags;
  65. };
  66. #pragma pack()
  67.  
  68. typedef void (*TVideoSaver)();
  69.  
  70. extern TVideoSaver VideoSaver;
  71.  
  72. int loadsnap(char *filename);
  73. int writeSNA(FILE *ff);
  74. void opensnap(unsigned index);
  75. void savesnap(int diskindex);
  76. void main_scrshot();
  77. //void main_savevideo();
  78.