Skip to content

Instantly share code, notes, and snippets.

View takaswie's full-sized avatar

坂本 貴史 takaswie

View GitHub Profile
@takaswie
takaswie / n8-structure.log
Created January 2, 2018 03:46
Yamaha n8 address space structure.
Region A:
0000ffffe00011f8:
00: 00000000
01: 00000000
02: 00000000
03: 00000000
04: 00000000
80000004
00001148
00: 00000001
@takaswie
takaswie / mr816x-normal-regs.log
Last active February 7, 2018 17:43
MR816x bootup
A
0000ffffe00070ec: 00000000
0000ffffe00070f0: 00000000
0000ffffe00070f4: 00000000
0000ffffe00070f8: 00000000
0000ffffe00070fc: 00000000
0000ffffe0007100: 00000000
0000ffffe0007104: 00000000
0000ffffe0007108: 00000000
0000ffffe000710c: 00000000
@takaswie
takaswie / bootup.txt
Created December 6, 2017 22:29
Yamaha n8 bootup
ReadRe 0xFFC1 0xFFFFF0000400 4 ['0x0404307E']
ReadRe 0xFFC1 0xFFFFF0000404 4 ['0x31333934']
ReadRe 0xFFC1 0xFFFFF0000408 4 ['0xF000A032']
ReadRe 0xFFC1 0xFFFFF000040C 4 ['0x0021CC20']
ReadBl 0xFFC2 0xFFFFF0000400 20 ['0x0404DC02', '0x31333934', '0xE0328112', '0x00A0DE00', '0x00010895']
ReadBl 0xFFC2 0xFFFFF0000414 64 ['0x00084966', '0x0300A0DE', '0x8100001D', '0x17100010', '0x81000020', '0x0C0087C0', '0xD8000003', '0xD1000004', '0xC7000012', '0x0001CE96', '0xD1000001', '0x000E1D58', '0x1200A02D', '0x13000300', '0x8100001C', '0x3800A0DE']
ReadBl 0xFFC2 0xFFFFF0000454 64 ['0x8100001E', '0x39100014', '0x81000021', '0x3A00A0DE', '0x81000024', '0x3B100010', '0x81000027', '0x17100010', '0x8100002B', '0x95000030', '0x0004E56F', '0x0300A0DE', '0x81000032', '0x1710000D', '0x81000035', '0x00044B8A']
ReadRe 0xFFC1 0xFFFFF000040C 4 ['0x0021CC20']
ReadBl 0xFFC2 0xFFFFF0000494 64 ['0x00000000', '0x00000000', '0x59616D61', '0x68610000', '0x0005AFF1', '0x00000000', '0x00000000', '0x6E207365', '0x72696573', '0x20465700', '0x0
@takaswie
takaswie / addrs.txt
Last active December 6, 2017 22:24
addresses
A
0000ffffe00011a8: 00000000
0000ffffe00011ac: 00000000
0000ffffe00011b0: 00000000
0000ffffe00011b4: 00000000
0000ffffe00011b8: 00000000
0000ffffe00011bc: 00000000
0000ffffe00011c0: 00000000
0000ffffe00011c4: 00000000
0000ffffe00011c8: 00000000
@takaswie
takaswie / abs.c
Created September 15, 2017 02:15
calculation for absolute value.
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int main(void)
{
uint8_t u;
int8_t s;
uint32_t i;
@takaswie
takaswie / alsa-ctl-dimen-check.c
Last active September 2, 2017 04:25
A small program to check logical contradiction between member count and dimension info.
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
@takaswie
takaswie / stdin-vs-tty.c
Created August 26, 2017 09:23
stdin v.s. tty
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
@takaswie
takaswie / atomix-test.cpp
Created July 30, 2017 05:47
Nowadays, arithmetic operations for storage classes of any sizes are not necessarily compiled and executed as atomic instruction.
#include<iostream>
#include<atomic>
#include<thread>
#include<mutex>
#include<condition_variable>
#include<mutex>
/*
* Refereces:
* - std::unique_lock: https://cpprefjp.github.io/reference/mutex/unique_lock.html
@takaswie
takaswie / timer-and-dmix-plugin-test.c
Created March 12, 2017 03:54
Poll(2) blocking test of PCM dmix plugin.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include <stdbool.h>
#include <alsa/asoundlib.h>
@takaswie
takaswie / test.c
Created March 8, 2017 00:43
ALSA timer test program
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>