removed z80 cycle code in nonacc mode as it was only causing trouble

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@238 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2007-09-02 16:41:02 +00:00
parent 740da8c60b
commit f58f05d28a
2 changed files with 20 additions and 27 deletions

View file

@ -458,19 +458,9 @@ static void PicoRunZ80Simple(int line_from, int line_to)
{
int line_from_r=line_from, line_to_r=line_to, line = line_from;
int line_sample = Pico.m.pal ? 68 : 93;
extern const unsigned short vcounts[];
if(!(PicoOpt&4) || Pico.m.z80Run == 0) { line_from_r = line_to_r; line_to_r = 0; }
if(z80startCycle != 0x01000000) {
line_from_r = vcounts[z80startCycle>>8]+1;
z80startCycle = 0x01000000;
}
if(z80stopCycle != 0x01000000) {
line_to_r = vcounts[z80stopCycle>>8]+1;
z80stopCycle = 0x01000000;
}
if(PicoOpt&1) {
// we have ym2612 enabled, so we have to run Z80 in lines, so we could update DAC and timers
for(; line < line_to; line++) {