X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Pico%2FPicoInt.h;h=06f4c645f87ae551b076ddccdd989ddf1134fa50;hb=d2721b08bb50fd1b112befa4b9f1a918dbd1ca03;hp=bf5c46d9dc19bdda37a9eac4ae1fdd38c1f3d9ae;hpb=43e6eaad0b73b37907be3342e0fd4cf65919e9f6;p=picodrive.git diff --git a/Pico/PicoInt.h b/Pico/PicoInt.h index bf5c46d..06f4c64 100644 --- a/Pico/PicoInt.h +++ b/Pico/PicoInt.h @@ -1,7 +1,7 @@ // Pico Library - Internal Header File // (c) Copyright 2004 Dave, All rights reserved. -// (c) Copyright 2006,2007 Grazvydas "notaz" Ignotas, all rights reserved. +// (c) Copyright 2006-2008 Grazvydas "notaz" Ignotas, all rights reserved. // Free for non-commercial use. // For commercial use, separate licencing terms must be obtained. @@ -185,10 +185,7 @@ extern struct DrZ80 drZ80; #define z80_run(cycles) ((cycles) - DrZ80Run(&drZ80, cycles)) #define z80_run_nr(cycles) DrZ80Run(&drZ80, cycles) -#define z80_int() { \ - drZ80.z80irqvector = 0xFF; /* default IRQ vector RST opcode */ \ - drZ80.Z80_IRQ = 1; \ -} +#define z80_int() drZ80.Z80_IRQ = 1 #define z80_cyclesLeft drZ80.cycles @@ -479,6 +476,8 @@ extern int timer_a_next_oflow, timer_a_step, timer_a_offset; // in z80 cycles extern int timer_b_next_oflow, timer_b_step, timer_b_offset; void ym2612_sync_timers(int z80_cycles, int mode_old, int mode_new); +void ym2612_pack_state(void); +void ym2612_unpack_state(void); #define timers_cycle() \ if (timer_a_next_oflow > 0 && timer_a_next_oflow < 0x70000000) \