独習mrubyバイトコード[OP_LOADF]
![Ruby Logo](https://silentworlds.info/wp-content/uploads/2018/04/ruby-150x150.png)
How it works?
R(A) := true
レジスタにfalseオブジェクトを代入する
When used?falseを扱うときに用いられる。 ...
独習mrubyバイトコード[OP_LOADT]
![Ruby Logo](https://silentworlds.info/wp-content/uploads/2018/04/ruby-150x150.png)
How it works?
R(A) := true
レジスタにtrueオブジェクトを代入する
When used?trueを扱うときに用いられる。
独習mrubyバイトコード[OP_LOADSELF]
![Ruby Logo](https://silentworlds.info/wp-content/uploads/2018/04/ruby-150x150.png)
How it works?
R(A) := self
レジスタにselfオブジェクトを代入する
When used?selfに対して、何か処理をする ...
Let’s make apps on mruby/c for M5Stack(ESP32)
![mrubyc_logo](https://silentworlds.info/wp-content/uploads/2018/06/mrubyc_logo_04-150x150.png)
This article comes from 2nd M5Stack user meeting.
My intentionI think M5Stack is an awesome product becaus
M5Stack/ESP32 Arduino向けのmruby/cライブラリを作る
![M5Stack](https://silentworlds.info/wp-content/uploads/2018/06/C902256C-3AE0-40FB-8406-B243967565D6-150x150.jpeg)
Wio LTE Arduino用にライブラリ化したmruby/cを少しだけ改造して、ESP32 Arduino用にしてみました。
まだAPIの移植はほとんどできていませんが、M5StackのLCD用のサンプルスケ
独習mrubyバイトコード[OP_LOADI]
![Ruby Logo](https://silentworlds.info/wp-content/uploads/2018/04/ruby-150x150.png)
sBx:整数
How it works?
R(A) := sBx
レジスタにFixnumとしてsBxの値を代入する。
sBxは16bitの符号付き整数で ...
独習mrubyバイトコード[OP_LOADL]
![Ruby Logo](https://silentworlds.info/wp-content/uploads/2018/04/ruby-150x150.png)
Bx:リテラル番号
How it works?
R(A) := Pool(Bx)
レジスタに実行中のIREPに格納されているBx番目のリテラルのポインタを代入す ...
The Instruction set of mruby/c compared with mruby
![mrubyc_logo](https://silentworlds.info/wp-content/uploads/2018/06/mrubyc_logo_04-150x150.png)
(Japanese version is here)
Recently I’m studying mruby byte-code to understand mruby/c.
In mruby/c, i ...
mruby/cがサポートするmrubyバイトコード命令の範囲
![mrubyc_logo](https://silentworlds.info/wp-content/uploads/2018/06/mrubyc_logo_04-150x150.png)
mruby/cを理解するために、mrubyバイトコードを勉強している。
実装をコンパクトにするため(もしくは開発中のため)、mruby/cはmrubyのすべての命令をサポートしていない。
mruby/cのvm.cとmr ...
Progress of mruby/c library for Wio LTE Arduino
![mrubyc_logo](https://silentworlds.info/wp-content/uploads/2018/06/mrubyc_logo_04-150x150.png)
I confirmed basic functionalities of mruby/c library for Wio LTE Arduino.
After implementing a glue code for a RT ...