Giter Site home page Giter Site logo

run68mac's Introduction

run68mac

CMake

Human68k CUI Emulator

Human68k上の実行ファイル(*.x, *.r)をCUIで動かすツールrun68。run68を Mac 上で動作するようにしたものです。 (Mac以外の環境でも使えるようになりました。)

How to build

CMakeを使用してビルドするように変更しています。あらかじめ、brew install cmake などでインストールしておいてください。漢字コードを変換するライブラリには libiconv を使用しています。

$ brew install cmake
$ brew install libiconv
$ mkdir build
$ cd build
$ cmake ..
$ make
$ make install

make install で /usr/local/bin/ 等にインストールされます。

デバッグのためにXcodeでビルドする場合

$ mkdir build
$ cd build
$ cmake -G Xcode ..
$ open run68.xcodeproj

How to use

$ run68 [実行ファイル(*.x *.r)] [引数]

起動例

$ run68 mdx2mus.x bos14.mdx

標準出力(stdout)および標準エラー出力(strerr)は、Shift-JISは自動的にUTF-8に変換します。

$ ./run68 mxc.x bos14_.mus

MML converter for mxdrv2  version 1.01 (c)1989 MFS soft, milk.
MDXタイトル : "Blast Power ! 〜 from BOSCONIAN-X68"
PCMファイル : 'bos'
               ChA   ChB   ChC   ChD   ChE   ChF   ChG   ChH   ChP
Clock counts: 07872 07872 07872 07872 07872 07872 07872 07872 07872
Loop  counts: 07872 07872 07872 07872 07872 07872 07872 07872 07872
使用音色番号: 3 6 7 10 11 12 13 15
$ ./run68 HAS.X
X68k High-speed Assembler v3.09 Copyright 1990-94 by Y.Nakamura
使用法:as [スイッチ] ファイル名
	-t path		テンポラリパス指定
	-o name		オブジェクトファイル名
	-i path		インクルードパス指定
	-p [file]	リストファイル作成
	-n		最適化の禁止
(...省略)

TIPS

  • あたかもX68000のコマンドがMacのターミナル上で動いているように見せる方法
  1. /usr/local/x68/bin 以下にX68000形式の実行ファイルを置いておく
$ ls /usr/local/x68/bin
CV.x   HAS.X  hlk.x  note.x
  1. 同名のシェルスクリプトをパスが通っている場所に配置(/usr/local/binなど)

/usr/local/bin/has.x

#!/bin/sh
run68 /usr/local/x68/bin/has.x $@
  1. 実行属性(+x)を与える
$ chmod +x /usr/local/bin/has.x
  1. X68000のコマンドが動作可能
$ has.x
X68k High-speed Assembler v3.09 Copyright 1990-94 by Y.Nakamura
使用法:as [スイッチ] ファイル名
	-t path		テンポラリパス指定
	-o name		オブジェクトファイル名
	-i path		インクルードパス指定
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.