示例#1
0
static void
write_rom_by_byte (int *addr, unsigned char *buf)
{
  int x;

  for (x = 0; x < 0x4000; x++)
    {
      ttt_write_byte_sharp (*addr, buf[*addr & 0x3fff]);
      (*addr)++;
    }
}
示例#2
0
void
write_rom_by_byte (int *addr, unsigned char *buf)
{
  int x;

  for (x = 0; x < 0x4000; x++)
    {
      if (md_id == 0xb0d0)
        ttt_write_byte_sharp (*addr, buf[*addr & 0x3fff]);
      else if (md_id == 0x8916 || md_id == 0x8917)
        ttt_write_byte_intel (*addr, buf[*addr & 0x3fff]);
      (*addr)++;
    }
}