Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
It is time to build your mruby VM on the microcontroller? Photo by Johannes Plenio from Pexels
Slide 2
Slide 2 text
THE ENGINEER OF CREATIVE ࣌ ݭ @elct9620
Slide 3
Slide 3 text
No content
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
Does build a mruby VM is hard Question
Slide 6
Slide 6 text
Yes, but we can do it easier My Answer
Slide 7
Slide 7 text
This is my fi rst time trying it, how can I start it? Question
Slide 8
Slide 8 text
mruby-L1VM
Slide 9
Slide 9 text
A mruby VM running on the Web only ~1000 lines mruby-L1VM
Slide 10
Slide 10 text
Everyone can read it without spending a lot of time mruby-L1VM
Slide 11
Slide 11 text
How does it work? mruby-L1VM
Slide 12
Slide 12 text
Start Program End Program Read Byte Code Execute Exit? No Yes IREP OPCODE
Slide 13
Slide 13 text
No content
Slide 14
Slide 14 text
How to read the IREP from mrb binary? IREP
Slide 15
Slide 15 text
No content
Slide 16
Slide 16 text
No content
Slide 17
Slide 17 text
No content
Slide 18
Slide 18 text
example.mrb RITE Header IREP Debug Section
Slide 19
Slide 19 text
example.mrb RITE Header IREP Debug Section 34 bytes
Slide 20
Slide 20 text
No content
Slide 21
Slide 21 text
example.mrb RITE Header IREP Debug Section IREP Header
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
IREP ISEQ Pools Symbols Sub-IREP OPCODE
Slide 24
Slide 24 text
No content
Slide 25
Slide 25 text
No content
Slide 26
Slide 26 text
No content
Slide 27
Slide 27 text
Sample Code
Slide 28
Slide 28 text
IREP ISEQ Pools Symbols Sub-IREP Ex. String
Slide 29
Slide 29 text
No content
Slide 30
Slide 30 text
How does the "method" work in mruby? Call Method
Slide 31
Slide 31 text
IREP ISEQ Pools Symbols Sub-IREP Method Name
Slide 32
Slide 32 text
IREP ISEQ Pools Symbols Sub-IREP Method Body
Slide 33
Slide 33 text
No content
Slide 34
Slide 34 text
Pointer
Slide 35
Slide 35 text
No content
Slide 36
Slide 36 text
No content
Slide 37
Slide 37 text
No content
Slide 38
Slide 38 text
Sample Code
Slide 39
Slide 39 text
No content
Slide 40
Slide 40 text
No content
Slide 41
Slide 41 text
Run your VM on the microcontroller Demo
Slide 42
Slide 42 text
No content
Slide 43
Slide 43 text
Prototype Code Series Article (Chinese)
Slide 44
Slide 44 text
I am trying to build my own plant keeper IoT device The Next
Slide 45
Slide 45 text
Thanks