Re: [hatari-devel] ACSI: READ/WRITE (10) incorrectly evaluate block number

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On sunnuntai 27 lokakuu 2013, Uwe Seimet wrote:
> By the way, the byte counters (bytecount/byteread) are probably not
> reset to 0 when resetting Hatari. Whenever the ACSI emulation was
> out-of-sync I had to restart Hatari in order to get things right again.
> Just resetting the emulation did not help.

Btw. Regarding reset, I just noticed this comment about IDE in psg.c:
----------------
/**
 * Write byte to YM's register (0xff8802), store according to PSG select 
register (0xff8800)
 */
void PSG_Set_DataRegister(Uint8 val)
{
....
        if ( PSGRegisterSelect < NUM_PSG_SOUND_REGISTERS )
        {
                /* Copy sound related registers 0..13 to the sound module's 
internal buffer */
                Sound_WriteReg ( PSGRegisterSelect , 
PSGRegisters[PSGRegisterSelect] );
        }

        else if ( PSGRegisterSelect == PSG_REG_IO_PORTA )
        {
        /*
         * FIXME: This is only a prelimary dirty hack!
         * Port B (Printer port) - writing here needs to be dispatched to 
the printer
         * STROBE (Port A bit5) does a short LOW and back to HIGH when the 
char is valid
         * To print you need to write the character byte to IOB and you need 
to toggle STROBE
         * (like EmuTOS does).
         */
....
                /* Bit 3 - Centronics as input */
                if(PSGRegisters[PSG_REG_IO_PORTA]&(1<<3))
                {
                        /* FIXME: might be needed if we want to emulate 
sound sampling hardware */
                }
                
                /* handle Falcon specific bits in PORTA of the PSG */
                if (ConfigureParams.System.nMachineType == MACHINE_FALCON)
                {
....
                        /* Bit 7 - Reset IDE? */
                        if(PSGRegisters[PSG_REG_IO_PORTA]&(1<<7))
                        {
                                Log_Printf(LOG_DEBUG, "Falcon: Reset IDE 
subsystem\n");
                                /* FIXME: add code to handle IDE reset */
                        }
                }
        
        }
}
----------------


	- Eero



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/