Skip to content

Instantly share code, notes, and snippets.

View h1romas4's full-sized avatar
🍕
< Pizza Time

hiromasa h1romas4

🍕
< Pizza Time
View GitHub Profile
@h1romas4
h1romas4 / esp32-s3-efuse.txt
Created October 18, 2022 06:30
ESP32-S3 efuse summary
$ espefuse.py summary
Connecting....
Detecting chip type... ESP32-S3
espefuse.py v3.3.2-dev
=== Run "summary" command ===
EFUSE_NAME (Block) Description = [Meaningful Value] [Readable/Writeable] (Hex Value)
----------------------------------------------------------------------------------------
Config fuses:
DIS_ICACHE (BLOCK0) Disables ICache = False R/W (0b0)
@h1romas4
h1romas4 / 0001-add-z88dk-symbol-read-hack.patch
Created May 4, 2022 14:57
Ubuntu 20.04 LTS 版の openmsx-debugger の Qt 修正 + z88dk の -m 形式の .map symbol を読ませる hack
diff --git a/src/DebuggerForm.cpp b/src/DebuggerForm.cpp
index 7e03c9e..b1df51a 100644
--- a/src/DebuggerForm.cpp
+++ b/src/DebuggerForm.cpp
@@ -632,7 +632,7 @@ void DebuggerForm::createForm()
// add widgets
for (int i = 0; i < list.size(); ++i) {
- QStringList s = list.at(i).split(" ", Qt::SplitBehaviorFlags::SkipEmptyParts);
+ QStringList s = list.at(i).split(" ", QString::SplitBehavior::SkipEmptyParts);
From 2913041b0dc763fcb324c718c338d91747cd4233 Mon Sep 17 00:00:00 2001
From: h1romas4 <[email protected]>
Date: Wed, 4 May 2022 16:50:30 +0900
Subject: [PATCH] support z88dk map symble file
---
src/SymbolManager.cpp | 3 +++
src/SymbolTable.cpp | 32 +++++++++++++++++++++++++++++++-
src/SymbolTable.h | 2 ++
3 files changed, 36 insertions(+), 1 deletion(-)
@h1romas4
h1romas4 / scarlette.sh
Last active May 2, 2022 16:51
Focusrite Scarlett Solo USB Ubuntu 20.04 LTS (valid sampling rate 44100, 48000, 88200, 96000, 176400, 192000)
$ cat /proc/asound/USB/stream0
Focusrite Scarlett Solo USB at usb-0000:00:1d.0-1.2, high speed : USB Audio
Playback:
Status: Stop
Interface 1
Altset 1
Format: S32_LE
Channels: 2
Endpoint: 0x01 (1 OUT) (SYNC)
@h1romas4
h1romas4 / vgm-patch-2151.patch
Last active January 1, 2022 12:08
MAME vgmwrite patch (YM2151 only) | to start mame with the "-vgmwrite 1" option. (ex. mame -vgmwrite 1)
From a6d60e1b9620975707728d80490d0ca9e4215cf1 Mon Sep 17 00:00:00 2001
From: h1romas4 <[email protected]>
Date: Sat, 1 Jan 2022 21:06:16 +0900
Subject: [PATCH] vgmwrite patched
---
makefile | 4 +-
scripts/src/lib.lua | 2 +
src/devices/sound/ymfm_mame.h | 12 +
src/devices/sound/ymopm.cpp | 20 +
@h1romas4
h1romas4 / VGMChip.rs
Last active November 8, 2021 10:44
VGMChip.rs
#[allow(non_camel_case_types, dead_code, clippy::upper_case_acronyms)]
enum VGMChipType {
SN76489 = 0,
YM2413 = 1,
YM2612 = 2,
YM2151 = 3,
SEGA_PCM = 4,
RF5C68 = 5,
YM2203 = 6,
@h1romas4
h1romas4 / 0001-add-z88dk-symbol-read-hack.patch
Last active September 9, 2021 12:41
openmsx-debugger で z88dk の -m 形式の .map symbol を読ませる hack + Ubuntu 20.04 LTS Qt 5.12 Obsolete fix
diff --git a/src/DebuggerForm.cpp b/src/DebuggerForm.cpp
index 9283c94..be463e8 100644
--- a/src/DebuggerForm.cpp
+++ b/src/DebuggerForm.cpp
@@ -621,7 +621,7 @@ void DebuggerForm::createForm()
// add widgets
for (int i = 0; i < list.size(); ++i) {
- QStringList s = list.at(i).split(" ", Qt::SkipEmptyParts);
+ QStringList s = list.at(i).split(" ", QString::SplitBehavior::SkipEmptyParts);
@h1romas4
h1romas4 / tasks.json
Last active December 11, 2022 12:28
z88dk MSX ROM 向けアセンブラビルドサンプル
{
// .vscode/tasks.json
"version": "2.0.0",
"tasks": [
{
"label": "Assemble",
"type": "shell",
"linux": {
"command": "zcc",
"args": [
@h1romas4
h1romas4 / call.rs
Created July 25, 2021 15:03
Rust/WebAssembly console.log マクロ
use crate::console_log;
fn test() {
console_log!(
"unknown cmd at {:x}: {:x}",
self.vgm_pos - 1,
self.vgm_data[self.vgm_pos - 1]
);
}
@h1romas4
h1romas4 / c_cpp_properties.json
Created June 26, 2021 09:14
vscode C/C++ project defines example (.vscode/)
{
"configurations": [
{
"name": "Linux",
"intelliSenseMode": "clang-x64",
"cStandard": "c11",
"cppStandard": "c++17",
"includePath": [
"${workspaceFolder}/src/**",
"${workspaceFolder}/3rdparty/**",