Originally Posted by R. Belmont
GC: Your Silentype implementation is pretty good, but you can get the slot number in an A2 card by calling slotno(). For instance, the zipdrive/focus drive has the common setup of separate CnXX images in the ROM for each slot:

Code
uint8_t a2bus_zipdrivebase_device::read_cnxx(uint8_t offset)
{
	int const slotimg = slotno() * 0x100;

	// ROM contains CnXX images for each of slots 1-7 at 0x0 and 0x1000
	return m_rom[offset+slotimg+0x1000];
}

Hi RB:

Thanks! I knew there had to be an easier way to find out the slot number. I was getting ready to ask you for any suggestions/comments.


I've got to clean up a couple of bugs too:

Code
	    // clear paper to bottom from the current head position

	    // this doesn't make sense
	    // clear to the bottom
	    //m_bitmap.plot_box(m_ypos*7/4,3,PAPER_WIDTH-1,PAPER_HEIGHT-1,rgb_t::white());
           // I think it should be:
	    m_bitmap.plot_box(0,m_ypos*7/4+7,PAPER_WIDTH,PAPER_HEIGHT,rgb_t::white());


Hacking on mame is so darn addictive...