PC-E500 開発ツール
SHARP PC-E500 シリーズ(PC-E500 / PC-E500S / PC-E550 / PC-E650 / PC-1480U / PC-U6000 など)のプログラムを VS Code で作るための拡張機能です。
シャープ株式会社とは関係のない、個人が作った非公式のツールです。SHARP はシャープ株式会社の商標です。
English: see below.
| できること |
くわしい説明 |
| ASM と BASIC の色分け、間違いの表示、候補、説明、定義へ移動 |
編集、BASIC |
| エミュレータで実行、デバッグ(Windows) |
パネル、デバッグ |
*.e500test.json の自動テスト(Windows) |
テスト |
画面の絵 .lcd とキャラクタ .spr のドットエディタ |
ドットエディタ |
| テンプレート、INCLUDE ファイル(IOCS の名前、画面、キャラクタ、キー、文字) |
INCLUDE ファイル、ゲームを作る |
実機用の BIN(LOAD M) |
実機へ送る |
全部の文書はマニュアルの目次にあります。
必要なもの
| 使う機能 |
必要なもの |
| 編集、間違いの表示、ドットエディタ |
VS Code 1.95 以降だけ(Windows、Linux、macOS) |
| エミュレータでの実行、デバッグ、テスト |
Windows 11(x64)、.NET 10 のランタイム、PC-E500 エミュレータ、自分の本体から吸い出した ROM |
ROM とエミュレータは、この拡張機能に入っていません。
はじめに
- コマンド 「PC-E500: 環境を確認」 で、エミュレータのフォルダを選びます(
e500core.dll と ROM があるフォルダ。編集だけなら不要)。
- フォルダを右クリック →「新しいプログラムを作成」→「キャラクタを動かすゲーム」。
F5 で動きます。
くわしい手順はクイックスタートにあります。
| 拡張子 |
扱い |
.asm .inc .e500asm |
PC-E500 アセンブリ(e500asm と同じ文法、同じバイト列) |
.bas .basic .e500 |
PC-E500 BASIC |
.lcd .pixels .spr |
ドットエディタ |
*.e500test.json |
テスト |
表示の言語
VS Code の表示言語が日本語なら日本語、それ以外は英語です。
開発
このフォルダで打ちます。どの OS でも同じです。
npm ci
npm run build:server
npm test
code .
| コマンド |
何をするか |
npm ci |
作るのに要る部品を取ってくる(最初の 1 回) |
npm run build:server |
エミュレータを操作する e500dbg を作る(.NET 10 SDK が要る) |
npm test |
コンパイルして、テストを全部動かす |
code . |
このフォルダを VS Code で開く。F5 で開発用の VS Code が起動する |
作りは設計: VS Code 拡張、デバッグサーバー、デバッガーにあります。
ライセンス
MIT です。エミュレータのコアは GPL-2.0-or-later の別のプログラムで、実行時に利用者のものを読み込みます。ドットエディタの文字入れの 5 × 7 ドットのフォントは SparkFun Electronics のもの(MIT)で、ThirdPartyNotices.txt に書いてあります。
English
Tools for writing programs for the SHARP PC-E500 series (PC-E500, PC-E500S, PC-E550, PC-E650, PC-1480U, PC-U6000 and others; CPU SC62015) in VS Code. This is an unofficial tool made by an individual, not related to Sharp Corporation. SHARP is a trademark of Sharp Corporation.
- Editing: highlighting, errors as you type, completion and hover help for SC62015 assembly (
.asm, same syntax and bytes as e500asm) and PC-E500 BASIC (.bas)
- Running and debugging in the PC-E500 emulator (Windows): breakpoints, stepping, registers, flags, variables, memory, disassembly
- Tests (
*.e500test.json) in the Test Explorer
- Dot editors for screen pictures (
.lcd) and sprites (.spr), game templates and INCLUDE files
- BIN files for the real machine (
LOAD M), and the command e500 (Windows, Linux, macOS)
Requirements: editing needs only VS Code 1.95 or later. Running, debugging and tests need Windows 11 (x64), the .NET 10 runtime, the PC-E500 emulator and a ROM dumped from your own machine. Neither the ROM nor the emulator is included.
Run "PC-E500: Check the Setup" first. The user interface is in English unless VS Code is in Japanese. The manual is in Japanese.