ネットで拾った設定の改変
- su -
- apt install acpid
- event設置
rgbacrt@RCSV-5-debian:~$ cat /etc/acpi/events/lm_lid event=button/lid.* action=/etc/acpi/lid.sh
| /* | |
| ref: https://www.nesdev.org/wiki/User:Fiskbit#TV-NET_MC-1200 | |
| */ | |
| board <- { | |
| mappernum = 7, | |
| cpu_rom = { | |
| size_base = 0x8000, size_max = 0x8000, banksize = 0x1000 | |
| }, | |
| ppu_rom = { |
| /* | |
| Kazzo/Anago script for DiskSystem BIOS. | |
| DiskSystem BIOS dumping is not surpported original Kazzo. only tested on tuna. | |
| */ | |
| board <- { | |
| mappernum = 0, | |
| cpu_rom = { | |
| size_base = 0x2000, size_max = 0x2000, banksize = 0x2000 | |
| }, |
| #ifndef _MSC_VER | |
| #define fopen_s(fd, name, mode) ((*fd = fopen(name, mode)) ? errno : errno) | |
| #define _wfopen_s(fd, name, mode) ((*fd = _wfopen(name, mode)) ? errno : errno) | |
| #define _snprintf_s(buf, bsize, count, format, ...) (snprintf(buf, (bsize<count) ? bsize : count, format, __VA_ARGS__)) | |
| #define sscanf_s sscanf // 注意:文字列系は文字列バッファサイズを外す必要あり | |
| // not tested. todo: return value | |
| #define strcpy_s(str1, str1len, str2) do{strncpy(str1,str2,str1len); ((char*)str1)[str1len-1]='\0';}while(0) | |
| #define strncpy_s(str1, str1len, str2, str2len) strcpy_s(str1,((str1len<(str2len+1))?str1len:(str2len+1)), str2) | |
| #define wcsncpy_s(str1, str1len, str2, str2len) wcsncpy(str1,((str1len<(str2len+1))?str1len:(str2len+1)), str2) | |
| #endif |
| i686-w64-mingw32-gcc -march=pentium -nostdlib -nodefaultlibs -fno-ident -fno-asynchronous-unwind-tables -nostartfiles tellpath.c -c -o tellpath.o | |
| windres tellpath.rc -o res.o | |
| ld tellpath.o res.o -olauncher.exe -T smallexe.lds -lkernel32 -luser32 --subsystem windows | |
| strip -R .reloc launcher.exe | |
| copy launcher.exe ..\launcher.exe /Y |
| # GBA 犬夜叉 解析メモ | |
| 2024/5/27 RGBA_CRT | |
| デバッグメニューを探したい | |
| =============================================================== | |
| ```c | |
| 「中断したところからゲームを再開します」 is param1=8204, param2=b5 | |
| filter: (R0!=$4500) && (R0!=$4600) |
| ;61e0に以下を配置。タイトル画面のキーUpdateの後ろの処理をフックする(ファイルオフセット9B3Aあたりに4C E0 61 EA EA EA) | |
| ;左右で曲セレクト、ステージの数値が変わる | |
| ;Aボタンで再生 | |
| ;SEL+STARTでステージセレクト反映 | |
| ;エンディングの隠しメッセージ当たりのデータを上書きしているので注意。 | |
| LDA $F5 | |
| AND #$03 | |
| BEQ ch2 | |
| LDA $F5 | |
| AND #$02 |
| @echo off | |
| for /f "delims=" %%i in ('dir /b .\*.ts') do ( | |
| py make_program_txt.py "%%i" | |
| ) | |
| pause |
| https://www.intel.co.jp/content/www/jp/ja/support/articles/000005480/network-and-i-o/ethernet-products.html | |
| Using built-in specs. | |
| COLLECT_GCC=gcc | |
| COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper | |
| OFFLOAD_TARGET_NAMES=nvptx-none | |
| OFFLOAD_TARGET_DEFAULT=1 | |
| Target: x86_64-linux-gnu | |
| Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.3.0-6ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=aut |
| ' Listupcomport | |
| #console | |
| #include<RGBALib.sbp> | |
| Const DIGCF_DEFAULT = &H1 ' only valid with DIGCF_DEVICEINTERFACE | |
| Const DIGCF_PRESENT = &H2 | |
| Const DIGCF_ALLCLASSES = &H4 | |
| Const DIGCF_PROFILE = &H8 | |
| Const DIGCF_DEVICEINTERFACE = &H10 | |
| Const DICS_ENABLE=1 |