This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AD&D プールオブレイディアンス (FC) memory map | |
# ============================================= | |
# 特に断らない限りリトルエンディアン | |
$00- 雑用 | |
$13 U8 $2000 退避用 | |
$14 U8 $2001 退避用 |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------- | |
-- NES The Quest of Ki (J) HUD script for FCEUX | |
-- | |
-- displays position and velocity | |
---------------------------------------------------------------------- | |
---------------------------------------------------------------------- | |
-- util | |
---------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""strings(1) with .tbl file | |
Example: | |
$ tblstrings --tbl game.tbl game.nes | |
$ tblstrings --tbl game.tbl -tx game.nes # show offsets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""Helps to create .tbl files | |
Write "game.in": | |
0x30 | |
あいうえお | |
かきくけこ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import, division, print_function, unicode_literals | |
import json | |
from codecs import open | |
from pprint import pprint | |
import tatsu | |
from tatsu.ast import AST | |
from tatsu.walkers import NodeWalker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
RAND_INI = 0x8988 | |
def BIT(x, i): | |
return (x>>i) & 1 | |
def rand_update(r): | |
bit = BIT(r,1) ^ BIT(r,9) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""ドクターマリオ (FC) 初期配置シミュレータ | |
使い方: | |
$ virus_place.py <level> <rand_idx> | |
level には 0..20 の値を指定します。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""ドクターマリオ (FC) ツモ&初期配置シミュレータ | |
使い方: | |
$ hand.py <level> <rand_idx> | |
level には 0..20 の値を指定します。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from tabulate import tabulate | |
TABLE = ( | |
1, 2, 4, 8, 16, 32, 32, 32, 32, 32, | |
32, 10, 3, 0, 1, 2, 4, 0, 252, 248, |