Sprout68k 使い方Sprout68k Help

Sprout68kとはAbout 関数リファレンスReference アプリを開くOpen the app

1. はじめかた1. Getting started

  1. 左のエクスプローラーで「サンプル」からファイルを選びます。最初は短い hello.c がおすすめです。
  2. ビルドを押します。成功するとXDFが作られます。
  3. 実行を押すと、最新のソースをビルドしてX68000実行画面で起動します。

mainから戻ると、起動コード(crt0)が停止ループに入ります。そのため、表示するだけのプログラムにfor (;;)を書く必要はありません。

初回は約20MBのツールチェーンを読み込みます。読み込み後の実測目安は、短いstage_c相当で約1.9秒、breakout相当で約11秒です。端末や回線で変わります。

  1. In the Explorer, choose a file under Samples. The small hello.c sample is a good first step.
  2. Press ビルド (Build). A successful build produces an XDF.
  3. Press 実行 (Run) to build the latest source and start it on the X68000 screen.

After main returns, the startup code (crt0) enters its stop loop. A program that only prints a message does not need its own for (;;).

The first build also loads about 20 MB of toolchain data. After loading, measured times are about 1.9 seconds for a small stage_c-sized program and about 11 seconds for breakout. Device and connection speed will vary.

2. エラーが出たら2. When a build fails

診断欄にはGCC / ld 原文日本語の説明が並びます。原文は消したり置き換えたりしていません。

main.c:12:7 は「main.cの12行目、7桁目」です。まずその位置と日本語の説明を読み、直したらもう一度ビルドしてください。

The diagnostics panel shows GCC / ld 原文 (the original GCC/ld message) next to 日本語の説明 (a Japanese explanation). The original message is preserved, not replaced.

main.c:12:7 means line 12, column 7 of main.c. Check that location and the explanation, edit the source, and build again.

3. 動かなくなったら3. When the program stops responding

実行中は実行ボタンが停止に変わります。停止して実行し直すと、X68000をきれいな状態から作り直し、最後にビルドできたXDFを起動します。

暴走やビルド失敗から実行し直しても、編集中・未保存を含むソースは失われません。

While X68000 is running, the 実行 (Run) button changes to 停止 (Stop). Stop and run again to recreate a clean X68000 and start the most recently built XDF.

Running again after a runaway program or build failure never discards your source, including unsaved edits.

4. キーボード4. Keyboard input

実行画面をクリックすると入力が有効になり、表示がキーボード入力: X68000へ送信中に変わります。

使えるキーは、カーソル4方向、スペース、Enter、ESC、英数字です。キーを離す操作もX68000へ送られます。

ホストのキーボードにないX68000固有キーは届きません。対応状況の詳細は キーボード入力の実測資料 にあります。

Click the emulation screen to enable input. The status changes to キーボード入力: X68000へ送信中 (“Sending to X68000”).

Supported keys are the four cursor keys, Space, Enter, ESC, letters, and numbers. Key releases are sent too.

X68000-specific keys that do not exist on the host keyboard cannot be sent. See the keyboard input measurement notes for the detailed list.

5. 保存と持ち出し5. Saving and taking files with you

作業ファイルは、このブラウザの保存領域(IndexedDB)に保存されます。別のブラウザや端末には自動で移りません。

ビルド成功後はXDFをダウンロードでディスクイメージを保存できます。ソースファイルもエクスプローラーのダウンロード操作で持ち出せます。

Work files are stored in this browser using IndexedDB. They do not automatically move to another browser or device.

After a successful build, use XDFをダウンロード (Download XDF) to save the disk image. The Explorer also lets you download source files.

6. オフラインで使う6. Using Sprout68k offline

オンラインで一度開き、必要な資産の保存が完了すれば、次回からオフラインでも起動・編集・ビルド・実行できます。

  • オフライン: 準備中:必要な資産を確認・保存しています。
  • オフラインでも使えます:必要な資産がそろいました。

Open the app online once and wait for all required assets to be stored. Later visits can start, edit, build, and run offline.

  • オフライン: 準備中: offline assets are being checked and stored.
  • オフラインでも使えます: all required offline assets are ready.

7. 作ったものを配る7. Sharing what you made

生成した .xdf はX68000用のディスクイメージです。プログラムの配布物は、このXDF 1本にまとめられます。配布するコードやデータの権利とライセンスは、作成者が確認してください。

The generated .xdf is an X68000 disk image. Your program can be distributed as that single XDF file. You are responsible for checking the rights and licenses of the code and data you distribute.

8. ライセンスと情報提供8. License and contributions

Sprout68k全体は、px68k-libretroを含むためGNU GPL version 2(GPLv2)です。不具合報告、測定結果、コードを送る前に、受け取れない情報と寄稿条件を定めた CONTRIBUTING.md を確認してください。

Sprout68k as a whole is licensed under GNU GPL version 2 (GPLv2), because it includes px68k-libretro. Before sending a bug report, measurements, or code, read CONTRIBUTING.md for the information-source and contribution policy.