Skip to content

Instantly share code, notes, and snippets.

View sinsinpub's full-sized avatar

sin_sin sinsinpub

  • Free
View GitHub Profile
@sinsinpub
sinsinpub / BGTOOL.BAS
Last active July 20, 2021 08:18
自作BGTOOLです、全画面編集できるんですw
' Family BASIC v3 BGTOOL (v2 BG GRAPHIC mode)
' tested with QBasic 1.1 / QuickBASIC 4.5
' by sin_sin, on 2021-07-20
' Dump and generate BGTOOL?.BSV from your CHR rom (see NES2BSV.BAS)
DEFINT A-Z
DECLARE SUB PrintXY (s$, x, y, c)
DECLARE SUB LoadCharSet ()
DECLARE SUB InitBgPalettes ()
@sinsinpub
sinsinpub / MEMVIEW.BAS
Created July 12, 2021 10:03
Memory Viewer for Family BASIC v3 (ON ERROR used as workaround of OV ERROR).
10 CLS
20 I=J
30 ON ERROR GOTO 770
40 LOCATE 0,0
50 PRINT"MEMORY VIEWER"
60 FOR I=0 TO 7
70 LOCATE 4+I*3,2
80 PRINT HEX$(I);
90 LOCATE 4+I*3,3
100 PRINT HEX$(I+8);
@sinsinpub
sinsinpub / FBCONV.C
Last active July 18, 2021 10:12
FAMIBE (Family BASIC) battery backup save converter. DOSでファミベ遊びたいから、適当に作ったんで好きに使え。
/**
* FBconv - Family BASIC v3 battery backup save converter.
* Tested & complied under DOS with Turbo C++ 1.01 / DJGPP 2.03 GCC
* under Windows with GCC-4.8.1-MinGW32 -Wno-write-strings
* under PC-9801 with Turbo C 2.0
*
* @author sin_sin
* @version 2021-07-12
*/
#include <stdio.h>
@sinsinpub
sinsinpub / shiren_ds1_jpn_nds.md
Last active February 8, 2023 06:50
Some old memo on Fuurai no Shiren (風来のシレン) series. Updated for plain text -> markdown.

0767 Fuurai no Shiren DS (J) (NTR-AFUJ-JPN)

Item modifications in Work RAM

  • 1st item:
$021B6F80 byte?: item states, 8th bit = equipped flag
       +2 word : item type id, see item_plant.bin below
       +4 dword: item flags of enhancements
       +6 byte?: item count/enhancement level
@sinsinpub
sinsinpub / nekketsu_basketball_password.md
Last active August 3, 2022 11:05
An old memo on NES Nekketsu Street Basketball password construction.

熱血!すとりーとバスケット ~がんばれ Dunk Heroes~

Password construction:

  • Decide 1 player or 2 players;
  • Choose an item pattern (0 ~ 3);
  • For Nekketsu Team, ordered by: Away(1 ~ 7bit)->Home(10 ~ 16)->Away->Home->... Max 13 games;
@sinsinpub
sinsinpub / dmm_netgame_tamper.css
Last active April 22, 2022 04:40
DMM netgame styles preferences.
@-moz-document url-prefix("http://www.dmm.co.jp/netgame/social/-/gadgets"), domain("osapi.dmm.com"), domain("pc-play.games.dmm.com"), domain("pc-play.games.dmm.co.jp") {
/* To hide navi ads */
#dmm-ntgnavi-renew,
#ntg-recommend,
.dmm-ntgnavi,
.dmm-ntgnavi-left {
display: none !important;
}
/* To fix messed up DMM styles */
body,
@sinsinpub
sinsinpub / MapFamilyJpKeyboard.ahk
Created May 4, 2019 10:57
AHK Script: Map Family BASIC Japanese Keyboard layout to English
;+ Windows 8 にて動作確認。XPではキーマップが異なるのか、そのまま流用して使うことはできない。
#UseHook
#InstallKeybdHook
#MaxHotkeysPerInterval 200
;設定対象プロセスの指定
GroupAdd, FBJPKEYLAPP, ahk_exe nestopia.exe
GroupAdd, FBJPKEYLAPP, ahk_exe virtuanes.exe
;キー割り当て重視型
#IFWinActive ahk_group FBJPKEYLAPP
@sinsinpub
sinsinpub / MapMsxJpKeyboard.ahk
Created May 4, 2019 10:56
AHK Script: Map MSX Japanese Keyboard layout to English
;+ Windows 8 にて動作確認。XPではキーマップが異なるのか、そのまま流用して使うことはできない。
#UseHook
#InstallKeybdHook
#MaxHotkeysPerInterval 200
;設定対象プロセスの指定
GroupAdd, MSXJPKEYLAPP, ahk_exe fmsx.exe
;キー割り当て重視型
#IFWinActive ahk_group MSXJPKEYLAPP
@sinsinpub
sinsinpub / MapPc98JpKeyboard.ahk
Created May 4, 2019 10:55
AHK Script: Map PC-98 Japanese Keyboard layout to English
;ダイヤテック FKBN104MRL/EFB2(Majestouch NINJA フルサイズ US配列) PS/2接続
;+ Windows 8 にて動作確認。XPではキーマップが異なるのか、そのまま流用して使うことはできない。
#UseHook
#InstallKeybdHook
#MaxHotkeysPerInterval 200
;RemapGraphKey
;1=グラフ文字キー入れ替え有効
;0=グラフ文字キー入れ替え無効
RemapGraphKey=1
;設定対象プロセスの指定
@sinsinpub
sinsinpub / twitter_preferences.css
Last active April 10, 2024 09:26
My twitter CSS preferences for small(?) monitor <= 1366
@-moz-document domain("twitter.com") {
/** Smaller left banner and sidebarColumn, larger primaryColumn */
.r-1ye8kvj {
max-width: 720px;
}
.r-1hycxz {
width: 240px;
}
/** To maximize primaryColumn up to full screen width: */
@media (min-width: 1298px) {