X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_int.h;h=551dcbc72f3625933a5b596a8024daa3255601a7;hb=4f2cdbf551ad1a7f487b65b4754cbf7983e80b8a;hp=15ab616fd133dc5c841b4662a4ac42b1a191a7d1;hpb=b71cbbf705cfd1c2519754142cd4b62cf9e0a2f5;p=picodrive.git diff --git a/pico/pico_int.h b/pico/pico_int.h index 15ab616..551dcbc 100644 --- a/pico/pico_int.h +++ b/pico/pico_int.h @@ -281,6 +281,15 @@ extern SH2 sh2s[2]; #define OSC_NTSC 53693100 #define OSC_PAL 53203424 +#define PVD_KILL_A (1 << 0) +#define PVD_KILL_B (1 << 1) +#define PVD_KILL_S_LO (1 << 2) +#define PVD_KILL_S_HI (1 << 3) +#define PVD_KILL_32X (1 << 4) +#define PVD_FORCE_A (1 << 5) +#define PVD_FORCE_B (1 << 6) +#define PVD_FORCE_S (1 << 7) + struct PicoVideo { unsigned char reg[0x20]; @@ -292,8 +301,10 @@ struct PicoVideo unsigned char pending_ints; // pending interrupts: ??VH???? signed char lwrite_cnt; // VDP write count during active display line unsigned short v_counter; // V-counter + unsigned short debug; // raw debug register + unsigned char debug_p; // ... parsed: PVD_* unsigned char addr_u; - unsigned char pad[0x0f]; + unsigned char pad[0x0c]; }; struct PicoMisc @@ -809,6 +820,7 @@ PICO_INTERNAL_ASM void wram_1M_to_2M(unsigned char *m); // sound/sound.c PICO_INTERNAL void PsndReset(void); +PICO_INTERNAL void PsndStartFrame(void); PICO_INTERNAL void PsndDoDAC(int line_to); PICO_INTERNAL void PsndClear(void); PICO_INTERNAL void PsndGetSamples(int y);