Beispiel #1
0
io68_t * mfpio_create(emu68_t * const emu68)
{
  mfp_io68_t * mfpio = 0;

  if (emu68) {
    mfpio = emu68_alloc(sizeof(*mfpio));
    if (mfpio) {
      mfpio->io = mfp_io;
      mfp_setup(&mfpio->mfp);
    }
  }
  return &mfpio->io;
}
Beispiel #2
0
io68_t * shifterio_create(emu68_t * const emu68, int hz)
{
  shifter_io68_t * const io =
    emu68
    ? emu68_alloc(sizeof(*io))
    : 0
    ;

  if (io) {
    io->io = shifter_io;
    _shifter_reset(io, hz);
  }
  return &io->io;
}