X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPicoInt.h;h=eb10b548a06ca43accb0a0fbd48c0fe13fc1675d;hb=6cadc2da0070781cf2d8fcff84265d3ca1f423b9;hp=2b802d79b23e8bfebea92fd7d30c463c6bc3bb78;hpb=d9153729685381acb0559d8a4fdca47cb839427a;p=picodrive.git diff --git a/Pico/PicoInt.h b/Pico/PicoInt.h index 2b802d7..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 @@ -333,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