f = F / N (CC0 + 1)
CC0 = F / f * N - 1
where:
String.fromCharCode( | |
((( -~-~0+~~-~0)*(-~- ~0+~~-~0)*-~-~0*-~-~0 +~~- ~0)* ((-~-~0+~~ | |
-~0)*-~-~0*-~-~0*-~-~0 *-~ -~0 -+-~0)*-~-~0* -~-~ 0*-~-~0+~~ -~0)*-~-~0 | |
+ ~~-~ 0,((((-~-~0 +~~ -~0) *-~-~0*-~-~0+~~-~0)*( -~- ~0+ ~~-~ 0)* | |
-~-~ 0*-~-~0*- ~-~0 -+- ~0) *(- ~-~0* -~-~0 +~~-~0)*-~ -~0* -~-~ | |
0+~~ -~0 )*( -~-~ 0+~~-~0)*-~-~0,((-~-~0 *-~-~ 0*- ~-~ 0-+-~0)* | |
-~- ~0* -~-~ 0*- ~-~ 0*-~ -~0+ ~~-~ 0)*((-~-~0 *-~- ~0+~ | |
~-~ 0)*(-~-~0 *-~- ~0+~~-~0)*- ~-~0*-~ -~0+ ~~-~ 0)* -~- ~0,( (-~- | |
~0*- ~-~ 0*-~ -~0 -+- ~0)*(-~- ~0+~ ~-~ 0)* -~-~ 0*-~ |
using System; | |
using System.Diagnostics; | |
using System.IO.Ports; | |
using System.Threading; | |
namespace ConsoleApp | |
{ | |
internal class Program | |
{ | |
private static void Test(SerialPort serial, byte size) |
// the code is based on: | |
// https://github.com/yamaha-webmusic/ymf825board/blob/master/sample1/ymf825board_sample1/ymf825board_sample1.ino | |
#include "SPI.h" | |
#define PIN_YMF825_SS 7 | |
#define PIN_YMF825_RST 6 | |
unsigned char TONE_DATA[] = { | |
0x81, // header |
using System; | |
using System.IO.Ports; | |
using System.Threading; | |
namespace Sppcm | |
{ | |
internal class Program | |
{ | |
private static SerialPort _serial; | |
private static double _phase; |
.sub main :main | |
.param pmc args | |
$I0 = args | |
if $I0 >= 2 goto check1 | |
say 'No input value specified.' | |
end | |
check1: | |
$S0 = args[1] | |
$I1 = $S0 | |
$S1 = $I1 |
using System; | |
using System.Runtime.InteropServices; | |
using LLVMSharp; | |
namespace LLVMSharp_Test | |
{ | |
class Program | |
{ | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public delegate void ActType(); |
using System; | |
using System.Runtime.InteropServices; | |
using LLVMSharp; | |
namespace LLVMSharp_Test | |
{ | |
class Program | |
{ | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public delegate void ActType(); |