独習mrubyバイトコード[OP_LOADSYM]

Bx:シンボル番号
How it works?
R(A) := Syms(Bx)
レジスタに実行中のmrb_irepに格納されているBx番目のシンボルオブジ ...
M5Stack/ESP32 Arduino向けのmruby/cライブラリを作る

Wio LTE Arduino用にライブラリ化したmruby/cを少しだけ改造して、ESP32 Arduino用にしてみました。
まだAPIの移植はほとんどできていませんが、M5StackのLCD用のサンプルスケ
独習mrubyバイトコード[OP_LOADI]

sBx:整数
How it works?
R(A) := sBx
レジスタにFixnumとしてsBxの値を代入する。
sBxは16bitの符号付き整数で ...
独習mrubyバイトコード[OP_LOADL]

Bx:リテラル番号
How it works?
R(A) := Pool(Bx)
レジスタに実行中のIREPに格納されているBx番目のリテラルのポインタを代入す ...
独習mrubyバイトコード[OP_MOVE]

B:レジスタ番号
How it works?
レジスタにレジスタのポインタを代入する
MOVEとあるが、実際はポインタのコピーを行っている。
独習mrubyバイトコード[OP_NOP]

なし
How it works?何もしないで、次の命令に移る。
When used?@miura1729 さんの記事にもあるが、grepしてみても、mrbgems/mrbgems/ ...
The Instruction set of mruby/c compared with mruby

(Japanese version is here)
Recently I’m studying mruby byte-code to understand mruby/c.
In mruby/c, i ...
mruby/cがサポートするmrubyバイトコード命令の範囲

mruby/cを理解するために、mrubyバイトコードを勉強している。
実装をコンパクトにするため(もしくは開発中のため)、mruby/cはmrubyのすべての命令をサポートしていない。
mruby/cのvm.cとmr ...
自作キーボード(ではない何かか)を作る

RaspberryPiとかのセットアップでUSBキーボードが欲しくなる場面が時々あるが、小型のものでも少し大きく感じるので、小さいキーボードに興味があった。
過去にはタクトスイッチとTeensyで、こんなの作って ...
Progress of mruby/c library for Wio LTE Arduino

I confirmed basic functionalities of mruby/c library for Wio LTE Arduino.
After implementing a glue code for a RT ...