Skip to content

Instantly share code, notes, and snippets.

@autch
autch / cm64-la.mml
Created August 31, 2012 01:46
SC-55 or later: USE CM-64 EMULATION: LA or PCM
#title "SC-55 or later: USE CM-64 EMULATION: LA"
A t120 EX x41,x10,x42,x12,{x40,x00,x7f,x00},xf7
A r8 Z{ z0 = 1 } [ Cz0 H127,1@0 Z{ z0 = z0 + 1 } ]16
@autch
autch / .gitignore
Created September 3, 2012 03:48
Music from Ys for P/ECE muslib; use mucc.exe to compile
*.pmd
@autch
autch / dmidecode.txt
Created October 16, 2012 16:19
dmesg and dmidecode of MouseComputer LuvBook LB-M150 (aka Lengda P10QC)
# dmidecode 2.11
SMBIOS 2.7 present.
51 structures occupying 1762 bytes.
Table at 0x000E9350.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: American Megatrends Inc.
Version: 4.6.5
Release Date: 06/28/2012
@autch
autch / cedartrail.c
Created October 16, 2012 16:51
Workaround for interrupt-losing-disease found in Cedar Trail (or Intel Atom D2xxx/N2xxx), described at https://lkml.org/lkml/2012/3/23/343, C implementation
#define _GNU_SOURCE
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdint.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/types.h>
int main()
@autch
autch / pm_qos_req.hook
Created November 13, 2012 17:16
Put pm_qos_req into initrd
#!/bin/sh
set -e
PREREQ=""
prereqs () {
echo "${PREREQ}"
}
@autch
autch / xak_solve.c
Created December 3, 2012 03:29
gist:1711627, gist:1715651 のバリエーション各種
#include <stdio.h> // printf, snprintf
struct group
{
struct path
{
char alpha;
int dest;
} path[4];
};
@autch
autch / valna_08.2.pmml
Created December 6, 2012 11:30
VALNA - Field 1 for P/ECE muslib; use mucc to compile; (c)SYSTEM SACOM, arr: Autch
#Title VALNA ~ フィールド 1
#Title2 (c) SYSTEM SACOM, arr: Autch
!!bg @6 V125 ?o4c ; bass drum
!!sg @8 V125 ?o4c ; snare drum 1
!!Ag @7 V125 ?o5c ; snare drum 2 (hi)
!!Ng @7 V125 ?o4a ; snare drum 2 (mi)
!!Sg @7 V125 ?o5c ; snare drum 2
!!og @9 V120 ?o4c ; open H.H.
!!hg @10 V110 ?o4c ; closeH.H.
A t140 C1 @0 v120 l0 o5 fc<ag-f<<g-<g-8 o5 e<bg+fe<<f<f1
@autch
autch / gist:4670508
Last active December 11, 2015 22:38
;; nasm -o restart.com -l restart.lst restart.nas
org 0x100
mov ax,0x40
push ax
pop ds
mov word [0x72],0x1234
mov ax,0xffff
push ax
xor ax,ax
@autch
autch / valna_08.mml
Created February 14, 2013 06:19
"BGM 1" from VALNA (PC-8801) (c) SYSTEM SACOM Use MML2MID to compile
#title "VALNA ~ フィールド 1"
#copyright "(c) SYSTEM SACOM, arr: Autch"
#timebase 24
$b k100 J36 ; kick
$s k100 J38 ; snare 1
$n k100 J40 ; snare 2
$i k070 J44 ; pedal hihat
$h k100 J42 ; closed hihat
$o k100 J46 ; open hihat