LoginSignup
0
0

More than 1 year has passed since last update.

stack machineを愛でる。 その4

Posted at

概要

stack machineが、好きだ。
俺仕様アセンブラで、helloworld書いてみた。

サンプルコード

  push  "x"
  push  "Hello World!"
  set

説明

変数xに、テキストを代入すると、表示される仕様です。
変数に、テキストを代入するには、setを使います。
setは、スタックの二番目を変数として、一番目の値をセットしますので
pushで、"x"と"Hello World!"をスタックに積んで、setを実行します。

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0