X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPicoInt.h;h=eb10b548a06ca43accb0a0fbd48c0fe13fc1675d;hb=55ca4154a2e8aa3687c4f73f2c4c4d5fcdc5a836;hp=5c71f8a7ead1fe0efe27d21f1e3130c5ea4b838b;hpb=89fa852dce08d9aab0f19458a4afa246e9839e9e;p=picodrive.git diff --git a/Pico/PicoInt.h b/Pico/PicoInt.h index 5c71f8a..eb10b54 100644 --- a/Pico/PicoInt.h +++ b/Pico/PicoInt.h @@ -1,7 +1,7 @@ // Pico Library - Header File // (c) Copyright 2004 Dave, All rights reserved. -// (c) Copyright 2006 notaz, All rights reserved. +// (c) Copyright 2006,2007 Grazvydas "notaz" Ignotas, all rights reserved. // Free for non-commercial use. // For commercial use, separate licencing terms must be obtained. @@ -142,7 +142,7 @@ struct PicoMisc char dirtyPal; // Is the palette dirty (1 - change @ this frame, 2 - some time before) unsigned char hardware; // Hardware value for country unsigned char pal; // 1=PAL 0=NTSC - unsigned char sram_reg; // SRAM mode register. bit0: allow read? bit1: deny write? bit2: EEPROM? + unsigned char sram_reg; // SRAM mode register. bit0: allow read? bit1: deny write? bit2: EEPROM? bit4: detected? (header or by access) unsigned short z80_bank68k; unsigned short z80_lastaddr; // this is for Z80 faking unsigned char z80_fakeval; @@ -151,7 +151,7 @@ struct PicoMisc unsigned short sram_addr; // EEPROM address register unsigned char sram_cycle; // EEPROM SRAM cycle number unsigned char sram_slave; // EEPROM slave word for X24C02 and better SRAMs - unsigned char prot_bytes[2]; // simple protection fakeing + unsigned char prot_bytes[2]; // simple protection faking unsigned short dma_bytes; // unsigned char pad[2]; unsigned int frame_count; // mainly for movies @@ -217,10 +217,13 @@ struct mcd_misc unsigned int counter75hz; unsigned short audio_offset; // 0c: for savestates: play pointer offset (0-1023) unsigned char audio_track; // playing audio track # (zero based) - char pad1; + char pad1; int timer_int3; // 10 unsigned int timer_stopwatch; - int pad[10]; + unsigned char bcram_reg; // 18: battery-backed RAM cart register + unsigned char pad2; + unsigned short pad3; + int pad[9]; }; typedef struct @@ -299,6 +302,7 @@ void PicoWriteCD32(unsigned int a, unsigned int d); extern struct Pico Pico; extern struct PicoSRAM SRam; extern int emustatus; +extern int z80startCycle, z80stopCycle; // in 68k cycles int CheckDMA(void); // cd/Pico.c @@ -311,6 +315,7 @@ int SekInit(void); int SekReset(void); int SekInterrupt(int irq); void SekState(unsigned char *data); +void SekSetRealTAS(int use_real); // cd/Sek.c int SekInitS68k(void); @@ -331,7 +336,7 @@ unsigned int SRAMReadEEPROM(); void SRAMUpdPending(unsigned int a, unsigned int d); void memcpy16(unsigned short *dest, unsigned short *src, int count); void memcpy16bswap(unsigned short *dest, void *src, int count); -void memcpy32(int *dest, int *src, int count); +void memcpy32(int *dest, int *src, int count); // 32bit word count void memset32(int *dest, int c, int count); // cd/Misc.c