Re: VERY STRANGE BUG !!!

2000-06-06 Thread Maarten ter Huurne
On Tue, 06 Jun 2000, Ricardo Bittencourt wrote: > > Anyways, relocating the hook to #FD9F is a much, much nicer solution I > > think. > > The only real advantage of this method would be the stop-drive, > but that doesn't matter because I call 0FD9Fh 120 times at the > startup of my program

Re: VERY STRANGE BUG !!!

2000-06-06 Thread David Heremans
Laurens Holst wrote: > > The only real advantage of this method would be the stop-drive, > > but that doesn't matter because I call 0FD9Fh 120 times at the > > startup of my program :) > > Why not just 256 times (ld b,0)??? > Maybe it keeps turning longer than 2 seconds on some MSX types.

Re: VERY STRANGE BUG !!!

2000-06-06 Thread Laurens Holst
Ricardo Bittencourt wrote: > > I think the VDP statusregister is being reset upon readout > > in the MSX interrupt routine itself... > > Not really. The bios handler read the vdp status register > AFTER calling 0FD9Ah. If you read the status register before the bios I thought the ISR read

Re: VERY STRANGE BUG !!!

2000-06-05 Thread Alex Wulms
] > With the help of Maarten and Jose Morente I fixed the bug at last. ] > Indeed the MSX-MIDI was generating interrupts every 5ms and my program was ] > expecting it at 16/20 ms. ] > ] > Instead of switching hooks, I fixed the bug with a simple lookup ] > in the vdp status register, to check if t

Re: VERY STRANGE BUG !!!

2000-06-05 Thread Ricardo Bittencourt
Laurens Holst wrote: > > Instead of switching hooks, I fixed the bug with a simple lookup > > in the vdp status register, to check if the interrupt was indeed a VIRQ: > > > > IN A,(99h) > > AND A > > RET P > > Does that work??? Of course it works! Try by yourself! > I think the VDP sta

Re: VERY STRANGE BUG !!!

2000-06-05 Thread Laurens Holst
> With the help of Maarten and Jose Morente I fixed the bug at last. > Indeed the MSX-MIDI was generating interrupts every 5ms and my program was > expecting it at 16/20 ms. > > Instead of switching hooks, I fixed the bug with a simple lookup > in the vdp status register, to check if the interrupt

Re: VERY STRANGE BUG !!!

2000-06-04 Thread Ricardo Bittencourt Vidigal Leitao
With the help of Maarten and Jose Morente I fixed the bug at last. Indeed the MSX-MIDI was generating interrupts every 5ms and my program was expecting it at 16/20 ms. Instead of switching hooks, I fixed the bug with a simple lookup in the vdp status register, to check if the int

Re: VERY STRANGE BUG !!!

2000-06-04 Thread Maarten ter Huurne
On Sun, 04 Jun 2000, Ricardo Bittencourt wrote: > However, if you execute RUN"BUG.BAS" before loading > BLOAD"BUG.BIN",R , then the music will faster than normal!! And > this bug only happens on MSX Turbo-R GT !! I already tested this > same program on Turbo-R ST and nothing strange happe

VERY STRANGE BUG !!!

2000-06-03 Thread Ricardo Bittencourt
Hello people. I found a very strange bug that I don't know how to fix. Maybe someone here can help me. Please download the zip in this address: http://mercury.spaceports.com/~msxpro/bug.zip Inside this pack, there are three files: BUG.BAS, BUG.BI