Code Monkey home page Code Monkey logo

sh_pdp7_test's Introduction

SVGからそれを表示するsimhスクリプトを生成

注意事項

  • LibreOffice Drawの「直線」あるいは「直線コネクター」で作った画像をエクスポートしたSVGであること
    • 未確認だがおそらくImpressでも大丈夫
  • 幅と高さが同じであること
    • 動作確認時は幅と高さを共に7.47cmにしていた
  • このREADME.mdがあるディレクトリをカレントディレクトリにした状態で実行すること

生成手順

  1. SVGから直線が定義されたCSVを生成
    $ tools/svg2ld test.svg test.csv
  2. CSVからType 340命令列を生成
    $ tools/ld2ml test.csv test.340ml
  3. Type 340命令列を指定されたアドレス(8進数)以降に配置するsimhスクリプトを生成
    $ tools/ml2simh test.340ml test.340simh 1000
  4. Type 340命令列をロードして実行するプログラムをくっつけたsimhスクリプトを生成
    $ cat test.340simh type340/load_infexec_set_param_and_run.simh > test.simh

動作確認

生成されたtest.simhを以下のように実行すると、ベクタースキャンディスプレイをシミュレートしているウィンドウに生成した画像が描画される。

$ pdp7 test.simh

備考

  • 実行を停止する際はCtrl+e
  • 停止するとSimHのプロンプトに戻ってくるので、exitコマンド等で終了すること

sh_pdp7_test's People

Contributors

cupnes avatar

Watchers

 avatar

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.