public void WriteAreaData( int snesAddress, IEnumerable <AreaSpriteCommand> data) { var bytes = new List <byte>( AreaSpriteCommand.GetAreaByteData(data)); bytes.CopyTo(Rom.Data, Rom.SnesToPc(snesAddress)); }
public IEnumerable <AreaSpriteCommand> GetAreaData(int snesAddress) { var index = Rom.SnesToPc(snesAddress); return(AreaSpriteCommand.GetAreaData(Rom.Data.Skip(index))); }