[MSX] switching r800 - z80 in TP

2003-11-24 Thread raymond
We have a routine to switch the R800 to the Z80 and vice versa in TP. The
code is as follows:

function RomBios : Byte;

var
  Versie: Byte;

begin
  inline ($3a/$c1/$fc/   { ld a,(#fcc1}
  $21/$2d/$00/  { ld hl,#2d  }
  $cd/$0c/$00/  { call #0c   ; rdslt }
  $32/Versie/{ ld (versie),a  }
  $fb);  { ei }
  RomBios := Versie;
end;

procedure SetCPU(mode:byte);

begin
  if RomBios = 3 then
inline ($3a/mode/ { ld a,(mode)   }
$fd/$2a/$c0/$fc/{ ld iy,(#fcc0) }
$dd/$21/$80/$01/ { ld ix,#180}
$cd/$1c/$00); { call #1c  }
end;

We have loaded the moonblaster routines and when we switch the CPU to Z80,
it will completely hang the machine. We have found that if we do not use
this routine above, the problem doesn't occure, but we need to switch to
the Z80...

Thanks for your help!

Raymond



___
MSX mailing list ([EMAIL PROTECTED])
Info page: http://lists.stack.nl/mailman/listinfo/msx


Re: [MSX] switching r800 - z80 in TP

2003-11-24 Thread Patriek Lesparre

We have loaded the moonblaster routines and when we switch the CPU to Z80,
it will completely hang the machine. We have found that if we do not use
this routine above, the problem doesn't occure, but we need to switch to
the Z80...
I assume you've also tested without the moonblaster routines? If it works 
without them, the problem could be there in stead of the cpu switch.

Otherwise I'd say.. Maybe an interrupt problem? ^^;

Greetz,
Patriek
___
MSX mailing list ([EMAIL PROTECTED])
Info page: http://lists.stack.nl/mailman/listinfo/msx


RE: [MSX] switching r800 - z80 in TP

2003-11-24 Thread Frits Hilderink

You should also add the:

  $fb);  { ei }

after the SetCPU to keep the interrupts enabled.

Frits

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
 [EMAIL PROTECTED]
 Sent: Monday, November 24, 2003 7:41 PM
 To: [EMAIL PROTECTED]
 Subject: [MSX] switching r800 - z80 in TP
 
 
 We have a routine to switch the R800 to the Z80 and vice 
 versa in TP. The
 code is as follows:
 
 function RomBios : Byte;
 
 var
   Versie: Byte;
 
 begin
   inline ($3a/$c1/$fc/   { ld a,(#fcc1}
   $21/$2d/$00/  { ld hl,#2d  }
   $cd/$0c/$00/  { call #0c   ; rdslt }
   $32/Versie/{ ld (versie),a  }
   $fb);  { ei }
   RomBios := Versie;
 end;
 
 procedure SetCPU(mode:byte);
 
 begin
   if RomBios = 3 then
 inline ($3a/mode/ { ld a,(mode)   }
 $fd/$2a/$c0/$fc/{ ld iy,(#fcc0) }
 $dd/$21/$80/$01/ { ld ix,#180}
 $cd/$1c/$00); { call #1c  }
 end;
 
 We have loaded the moonblaster routines and when we switch 
 the CPU to Z80,
 it will completely hang the machine. We have found that if we 
 do not use
 this routine above, the problem doesn't occure, but we need 
 to switch to
 the Z80...
 
 Thanks for your help!
 
 Raymond
 
 
 
 ___
 MSX mailing list ([EMAIL PROTECTED])
 Info page: http://lists.stack.nl/mailman/listinfo/msx
 

___
MSX mailing list ([EMAIL PROTECTED])
Info page: http://lists.stack.nl/mailman/listinfo/msx


[MSX] OpenMSX and floating sound

2003-11-24 Thread Adrian Oboroc
Hi, is it me, or OpenMSX have some sort of floating sound?

It feels that sometimes it plays a bit faster and then a bit slower... Kind of like an 
old tape... And it's not something fancy like FM-PAC or MSX-Audio. I'm trying to play 
Metal Gear under RH9. And PC is a small pizza box style with microATX mobo and Athlon 
XP 2400+ (2.0GHz). I dont think it's due to lack of performance, because I don't run 
anything else at the same time...

Please let me know what you think

Thanks
___
MSX mailing list ([EMAIL PROTECTED])
Info page: http://lists.stack.nl/mailman/listinfo/msx


Re: [MSX] OpenMSX and floating sound

2003-11-24 Thread Adrian Oboroc

 Hi, is it me, or OpenMSX have some sort of floating sound?

Hi! It's always good to read documentation :) The max-user-freq value is 64 by 
default. After applying recomended change:

echo 1024  /proc/sys/dev/rtc/max-user-freq

all works really great now :)

Whoo hoo! Thanks!

Now I'm on the quest how to plug devices without modifying machine XMLs. If it's 
possible. If not, I'll build my own virtual souped up MSX2+ :)

___
MSX mailing list ([EMAIL PROTECTED])
Info page: http://lists.stack.nl/mailman/listinfo/msx