Beiträge von natas

    Die Chips sind zur Adressdekodierung und für ein Banking zuständig.
    Mame hat in der Apple 2 Emulation ebenfalls eine Booti Emulation dort kann man nachsehen was nachgebaut werden muss.

    Also die Chip Select Leitung für den CH376 muss auf C0N0 das sollte eigentlich der Apple II erledigen.

    C0N1 ergibt sich wen A0 verbunden ist.
    bleibt nur das 2 Bit Register auf C0n4 für das Banking und die Dekodierung der ROM Bank auf $C800.

    Der Emu unterstütz kein Flashupdate.

    Die Hardware schon.

    Hier müsste man ggf. mal einen Disassembler rauskramen wenn man diese Funktion nachbilden möchte.

    https://github.com/mamedev/mam…devices/bus/a2bus/booti.h

    // license:BSD-3-Clause

    // copyright-holders:R. Belmont

    /*********************************************************************

    booti.cpp

    Implementation of the BOOTI card

    The BOOTI is an Apple II interface to the CH376 USB module.

    The CH376 is intended for use with small microcontrollers (or,

    you know, the 6502) to give them access to FAT-formatted

    flash drives. See ch376.cpp for details.

    C0n0: read/write data to CH376

    C0n1: read status/write command to CH376

    C0n4: $C800 ROM bank (0-3)

    *********************************************************************/


    #include "emu.h"

    #include "booti.h"


    #include "machine/at28c64b.h"

    #include "machine/ch376.h"


    // the card appears not to pass writes to $CFFF to the EEPROM,

    // otherwise there's a false read of the next opcode after a $CFFF write and we crash.