Skip to content

Instantly share code, notes, and snippets.

//--------------------------------------
//--- 010 Editor v6.0.2 Binary Template
//
// File:
// Author: tachiorz
// Revision: WIP
// Purpose: View D88 disk images
//--------------------------------------
enum <byte> DiskType

PC-80S31 mini disk unit

Rather than controlling the FDC directly, disk unit is an intelligent type that use it's own Z80 CPU and 8255 IC to communicate.

PC-8031 is a 5-inch 1D drive, and PC-8031-2W is a 5-inch 2D drive.

PC-80S31 is a compact type of PC-8031-2W and seems to have a slightly different timing. FDC uses μPD765A.

PC-80S31 specs

# Comment PC9800 interrupts
# @category: PC9800.Python
pc9800ints = {
0x18: { # Keyboard, CRT BIOS, buzzer
0x00: "Keyboard: Read key data",
0x01: "Keyboard: Get key buffer status",
0x02: "Keyboard: Shift key-Check status",
0x03: "Keyboard: Initialize keyboard interface",
0x04: "Keyboard: Key input status check",
# Comment PC9800 interrupts
# @category: PC9800.Python
pc9800ints = {
0x18: { # CRT BIOS, buzzer
0x0a: "set text video mode",
0x0b: "get text video mode",
0x0c: "start text screen display",
0x0d: "end text screen display",
0x0e: "set text screen single display area",
# https://github.com/barbeque/pc88-disk-tools
from struct import unpack, calcsize, Struct
import sys
import array
# D88 header:
# char title[17];
# BYTE rsrv[9];
# BYTE protect;
/*
Based on Mouse Converter from USB Mouse to PC-98 Bus Mouse by Suwa-Koubou
http://www.suwa-koubou.jp/micom/USBtoPC98/usbtopc98.html
*/
#include "PS2Mouse.h"
#define DEBUG 0
// Pins
@Tachiorz
Tachiorz / ldr.asm
Created August 13, 2019 23:27
Emerald Dragon LDR
//
// ram
// fileOffset=0, length=256
// ram: ram:c000-ram:c0ff
//
**************************************************************
* FUNCTION *
**************************************************************
undefined LDR()
undefined A:1 <RETURN>
@Tachiorz
Tachiorz / ldr.c
Last active August 14, 2019 01:38
Emerald Dragon LDR (pseudocode)
void LDR(void)
{
char cVar1;
char cVar3;
ushort uVar2;
byte bVar4;
char *pcVar5;
char *pcVar6;
@Tachiorz
Tachiorz / Q-1B.JXW.po
Last active January 6, 2020 00:59
Dennou Gakuen 1
msgid "×「モンド・セレクション」とは、アーモンドのランク表のことです。"
msgstr "×"Mond Selection" is the Almond rank table."
msgid "○「のりピー」と呼ばれる歌手がいるが、「イカピー」と言う菓子もあります。"
msgstr "○There is a singer called "Nori-Pie", but there is also a confection called "Ika-Pie"."
msgid "×「となりのトトロ」は、核戦争後の地球のお話しです。"
msgstr "×"My Neighbor Totoro" is the story of the Earth after the nuclear war."
msgid "×ゴジラの息子の名前は、チビラといいます。"
@Tachiorz
Tachiorz / downgradepmg.py
Created September 22, 2017 21:03
downgrades pmg v3 to v2
import os
import sys
import struct
class PMHeader:
length = 0
Name = ""
FullName = ""
JointName = ""